From 2506905379819d18a133296422f3ea799b7a168a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 6 Nov 2024 09:12:16 +0100 Subject: update to 0.14.0 --- PHPINFO | 9 +++++++-- REFLECTION | 26 +++++++++++++++++++++++--- php-zstd.spec | 19 ++++++++++--------- 3 files changed, 40 insertions(+), 14 deletions(-) diff --git a/PHPINFO b/PHPINFO index 632bfeb..b89029b 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,6 +2,11 @@ zstd Zstd support => enabled -Extension Version => 0.13.3 -Interface Version => 1.5.5 +Extension Version => 0.14.0 +Interface Version => 1.5.6 APCu serializer ABI => 0 + +Directive => Local Value => Master Value +zstd.output_compression => Off => Off +zstd.output_compression_level => -1 => -1 +zstd.output_compression_dict => no value => no value diff --git a/REFLECTION b/REFLECTION index c0a9903..d6b83f4 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,15 +1,27 @@ -Extension [ extension #81 zstd version 0.13.3 ] { +Extension [ extension #114 zstd version 0.14.0 ] { - Dependencies { Dependency [ apcu (Optional) ] } + - INI { + Entry [ zstd.output_compression ] + Current = '0' + } + Entry [ zstd.output_compression_level ] + Current = '-1' + } + Entry [ zstd.output_compression_dict ] + Current = '' + } + } + - Constants [5] { Constant [ int ZSTD_COMPRESS_LEVEL_MIN ] { 1 } Constant [ int ZSTD_COMPRESS_LEVEL_MAX ] { 22 } Constant [ int ZSTD_COMPRESS_LEVEL_DEFAULT ] { 3 } - Constant [ int LIBZSTD_VERSION_NUMBER ] { 10505 } - Constant [ string LIBZSTD_VERSION_STRING ] { 1.5.5 } + Constant [ int LIBZSTD_VERSION_NUMBER ] { 10506 } + Constant [ string LIBZSTD_VERSION_STRING ] { 1.5.6 } } - Functions { @@ -139,6 +151,14 @@ Extension [ extension #81 zstd version 0.13.3 ] { Parameter #1 [ $dictBuffer ] } } + Function [ function ob_zstd_handler ] { + + - Parameters [2] { + Parameter #0 [ string $data ] + Parameter #1 [ int $flags ] + } + - Return [ string|false ] + } } } diff --git a/php-zstd.spec b/php-zstd.spec index 4d18d72..95d194e 100644 --- a/php-zstd.spec +++ b/php-zstd.spec @@ -13,7 +13,7 @@ %bcond_without apcu %bcond_without libzstd -%global zstdver 1.5.5 +%global zstdver 1.5.6 %global pecl_name zstd %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} @@ -24,7 +24,7 @@ Summary: Zstandard extension Name: %{?scl_prefix}php-%{pecl_name} -Version: 0.13.3 +Version: 0.14.0 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} %if %{with libzstd} License: MIT @@ -105,6 +105,11 @@ mkdir ZTS cat << 'EOF' | tee %{ini_name} ; Enable '%{summary}' extension module extension = %{pecl_name}.so + +; Configuration +;zstd.output_compression = Off +;zstd.output_compression_level = -1 +;zstd.output_compression_dict = EOF @@ -206,13 +211,6 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_extdir}/%{pecl_name}.so" \ %{__ztsphp} --no-php-ini \ --define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \ --modules | grep '^%{pecl_name}$' - -%if %{with tests} -: Upstream test suite for ZTS extension -TEST_PHP_EXECUTABLE=%{__ztsphp} \ -TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \ -%{__ztsphp} -n run-tests.php -q --offline --show-diff -%endif %endif @@ -243,6 +241,9 @@ TEST_PHP_ARGS="-n -d extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so" \ %changelog +* Wed Nov 6 2024 Remi Collet - 0.14.0-1 +- update to 0.14.0 + * Mon Jan 29 2024 Remi Collet - 0.13.3-1 - update to 0.13.3 -- cgit