From 01081af1f534e6885bb9a6f31bb0c2cda32d5b33 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 10 Mar 2021 08:25:57 +0100 Subject: update to 4.0.1 (no change) --- .gitignore | 2 ++ REFLECTION | 2 +- luasandbox_compat.h | 36 ------------------------------------ php-pecl-luasandbox.spec | 8 ++++---- 4 files changed, 7 insertions(+), 41 deletions(-) delete mode 100644 luasandbox_compat.h diff --git a/.gitignore b/.gitignore index 1ab5c4f..01f0400 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ +clog package-*.xml *.tgz +*.tar.bz2 *.tar.gz *.tar.xz *.tar.xz.asc diff --git a/REFLECTION b/REFLECTION index 28fc5f7..6d31325 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #80 luasandbox version 4.0.0 ] { +Extension [ extension #80 luasandbox version 4.0.1 ] { - Classes [10] { Class [ class LuaSandbox ] { diff --git a/luasandbox_compat.h b/luasandbox_compat.h deleted file mode 100644 index b0a13c2..0000000 --- a/luasandbox_compat.h +++ /dev/null @@ -1,36 +0,0 @@ -// Macros to hide the differences between PHP versions -// Implementation details, include only from .c files -#ifndef LUASANDBOX_COMPAT_H -#define LUASANDBOX_COMPAT_H - -#if PHP_VERSION_ID < 80000 - - #define luasandbox_update_property(scope, object, name, name_length, value) \ - zend_update_property(scope, object, name, name_length, value) - - #define luasandbox_update_property_string(scope, object, name, name_length, value) \ - zend_update_property_string(scope, object, name, name_length, value) - - #define luasandbox_update_property_long(scope, object, name, name_length, value) \ - zend_update_property_long(scope, object, name, name_length, value) - - #define luasandbox_read_property(scope, object, name, name_length, silent, rv) \ - zend_read_property(scope, object, name, name_length, silent, rv) - -#else - - #define luasandbox_update_property(scope, object, name, name_length, value) \ - zend_update_property(scope, Z_OBJ_P(object), name, name_length, value) - - #define luasandbox_update_property_string(scope, object, name, name_length, value) \ - zend_update_property_string(scope, Z_OBJ_P(object), name, name_length, value) - - #define luasandbox_update_property_long(scope, object, name, name_length, value) \ - zend_update_property_long(scope, Z_OBJ_P(object), name, name_length, value) - - #define luasandbox_read_property(scope, object, name, name_length, silent, rv) \ - zend_read_property(scope, Z_OBJ_P(object), name, name_length, silent, rv) - -#endif - -#endif // LUASANDBOX_COMPAT_H diff --git a/php-pecl-luasandbox.spec b/php-pecl-luasandbox.spec index af8e1c9..5687404 100644 --- a/php-pecl-luasandbox.spec +++ b/php-pecl-luasandbox.spec @@ -25,12 +25,11 @@ Summary: Lua interpreter with limits and safe environment Name: %{?sub_prefix}php-pecl-%{pecl_name} -Version: 4.0.0 +Version: 4.0.1 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: MIT URL: https://pecl.php.net/package/%{proj_name} Source0: https://pecl.php.net/get/%{proj_name}-%{version}.tgz -Source1: https://phab.wmfusercontent.org/file/download/jkix723fmmopugebtkh2/PHID-FILE-6sdx6iccvk4muq2kolg7/luasandbox_compat.h BuildRequires: make BuildRequires: %{?dtsprefix}gcc @@ -89,8 +88,6 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS -cp %{SOURCE1} . - : Sanity check, really often broken extver=$(sed -n '/#define LUASANDBOX_VERSION /{s/.* "//;s/".*$//;p}' luasandbox_version.h) if test "x${extver}" != "x%{version}"; then @@ -222,6 +219,9 @@ fi %changelog +* Wed Mar 10 2021 Remi Collet - 4.0.1-1 +- update to 4.0.1 (no change) + * Thu Mar 4 2021 Remi Collet - 4.0.0-1 - update to 4.0.0 - raise dependency on PHP 7.2 -- cgit