From fd2b82ae963178973117f75c2fe87eb32757a370 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 3 Mar 2016 10:47:28 +0100 Subject: php-pecl-memcached: 3.0.0-dev --- REFLECTION-PHP7 | 116 ++++++++++++++++++++++++-------------------- php-pecl-memcached-dev.spec | 32 +++++------- 2 files changed, 77 insertions(+), 71 deletions(-) diff --git a/REFLECTION-PHP7 b/REFLECTION-PHP7 index 94f1b1a..65506bc 100644 --- a/REFLECTION-PHP7 +++ b/REFLECTION-PHP7 @@ -1,26 +1,33 @@ -Extension [ extension #85 memcached version 2.2.1-dev ] { +Extension [ extension #85 memcached version 3.0.0-dev ] { + + - Dependencies { + Dependency [ session (Required) ] + Dependency [ igbinary (Required) ] + Dependency [ msgpack (Required) ] + Dependency [ spl (Required) ] + } - INI { Entry [ memcached.sess_locking ] Current = '1' } - Entry [ memcached.sess_consistent_hash ] - Current = '' - } - Entry [ memcached.sess_binary ] - Current = '' - } - Entry [ memcached.sess_lock_wait ] - Current = '150000' + Entry [ memcached.sess_lock_wait_min ] + Current = '0' } - Entry [ memcached.sess_lock_max_wait ] + Entry [ memcached.sess_lock_wait_max ] Current = '0' } + Entry [ memcached.sess_lock_retries ] + Current = '5' + } Entry [ memcached.sess_lock_expire ] Current = '0' } - Entry [ memcached.sess_prefix ] - Current = 'memc.sess.key.' + Entry [ memcached.sess_binary_protocol ] + Current = '1' + } + Entry [ memcached.sess_consistent_hash ] + Current = '' } Entry [ memcached.sess_number_of_replicas ] Current = '0' @@ -28,8 +35,11 @@ Extension [ extension #85 memcached version 2.2.1-dev ] { Entry [ memcached.sess_randomize_replica_read ] Current = '' } - Entry [ memcached.sess_remove_failed ] - Current = '1' + Entry [ memcached.sess_remove_failed_servers ] + Current = '0' + } + Entry [ memcached.sess_server_failure_limit ] + Current = '0' } Entry [ memcached.sess_connect_timeout ] Current = '1000' @@ -40,6 +50,18 @@ Extension [ extension #85 memcached version 2.2.1-dev ] { Entry [ memcached.sess_sasl_password ] Current = '' } + Entry [ memcached.sess_prefix ] + Current = 'memc.sess.key.' + } + Entry [ memcached.sess_persistent ] + Current = '0' + } + Entry [ memcached.sess_lock_wait ] + Current = 'not set' + } + Entry [ memcached.sess_lock_max_wait ] + Current = 'not set' + } Entry [ memcached.compression_type ] Current = 'fastlz' } @@ -52,23 +74,30 @@ Extension [ extension #85 memcached version 2.2.1-dev ] { Entry [ memcached.serializer ] Current = 'igbinary' } - Entry [ memcached.use_sasl ] - Current = '' - } Entry [ memcached.store_retry_count ] Current = '2' } + Entry [ memcached.default_consistent_hash ] + Current = '0' + } + Entry [ memcached.default_binary_protocol ] + Current = '0' + } + Entry [ memcached.default_connect_timeout ] + Current = '0' + } } - Classes [2] { Class [ class Memcached ] { - - Constants [99] { + - Constants [101] { Constant [ integer LIBMEMCACHED_VERSION_HEX ] { 16777240 } Constant [ integer OPT_COMPRESSION ] { -1001 } Constant [ integer OPT_COMPRESSION_TYPE ] { -1004 } Constant [ integer OPT_PREFIX_KEY ] { -1002 } Constant [ integer OPT_SERIALIZER ] { -1003 } + Constant [ integer OPT_USER_FLAGS ] { -1006 } Constant [ integer OPT_STORE_RETRY_COUNT ] { -1005 } Constant [ integer HAVE_IGBINARY ] { 1 } Constant [ integer HAVE_JSON ] { 1 } @@ -162,6 +191,7 @@ Extension [ extension #85 memcached version 2.2.1-dev ] { Constant [ integer COMPRESSION_FASTLZ ] { 2 } Constant [ integer COMPRESSION_ZLIB ] { 1 } Constant [ integer GET_PRESERVE_ORDER ] { 1 } + Constant [ integer GET_EXTENDED ] { 2 } Constant [ boolean GET_ERROR_RETURN_VALUE ] { } } @@ -197,43 +227,35 @@ Extension [ extension #85 memcached version 2.2.1-dev ] { Method [ public method get ] { - - Parameters [4] { + - Parameters [2] { Parameter #0 [ $key ] Parameter #1 [ $cache_cb ] - Parameter #2 [ &$cas_token ] - Parameter #3 [ &$udf_flags ] } } Method [ public method getByKey ] { - - Parameters [5] { + - Parameters [3] { Parameter #0 [ $server_key ] Parameter #1 [ $key ] Parameter #2 [ $cache_cb ] - Parameter #3 [ &$cas_token ] - Parameter #4 [ &$udf_flags ] } } Method [ public method getMulti ] { - - Parameters [4] { + - Parameters [2] { Parameter #0 [ array $keys ] - Parameter #1 [ &$cas_tokens ] - Parameter #2 [ $flags ] - Parameter #3 [ &$udf_flags ] + Parameter #1 [ $get_flags ] } } Method [ public method getMultiByKey ] { - - Parameters [5] { + - Parameters [3] { Parameter #0 [ $server_key ] Parameter #1 [ array $keys ] - Parameter #2 [ &$cas_tokens ] - Parameter #3 [ $flags ] - Parameter #4 [ &$udf_flags ] + Parameter #2 [ $get_flags ] } } @@ -270,22 +292,20 @@ Extension [ extension #85 memcached version 2.2.1-dev ] { Method [ public method set ] { - - Parameters [4] { + - Parameters [3] { Parameter #0 [ $key ] Parameter #1 [ $value ] Parameter #2 [ $expiration ] - Parameter #3 [ $udf_flags ] } } Method [ public method setByKey ] { - - Parameters [5] { + - Parameters [4] { Parameter #0 [ $server_key ] Parameter #1 [ $key ] Parameter #2 [ $value ] Parameter #3 [ $expiration ] - Parameter #4 [ $udf_flags ] } } @@ -308,64 +328,58 @@ Extension [ extension #85 memcached version 2.2.1-dev ] { Method [ public method setMulti ] { - - Parameters [3] { + - Parameters [2] { Parameter #0 [ array $items ] Parameter #1 [ $expiration ] - Parameter #2 [ $udf_flags ] } } Method [ public method setMultiByKey ] { - - Parameters [4] { + - Parameters [3] { Parameter #0 [ $server_key ] Parameter #1 [ array $items ] Parameter #2 [ $expiration ] - Parameter #3 [ $udf_flags ] } } Method [ public method cas ] { - - Parameters [5] { + - Parameters [4] { Parameter #0 [ $cas_token ] Parameter #1 [ $key ] Parameter #2 [ $value ] Parameter #3 [ $expiration ] - Parameter #4 [ $udf_flags ] } } Method [ public method casByKey ] { - - Parameters [6] { + - Parameters [5] { Parameter #0 [ $cas_token ] Parameter #1 [ $server_key ] Parameter #2 [ $key ] Parameter #3 [ $value ] Parameter #4 [ $expiration ] - Parameter #5 [ $udf_flags ] } } Method [ public method add ] { - - Parameters [4] { + - Parameters [3] { Parameter #0 [ $key ] Parameter #1 [ $value ] Parameter #2 [ $expiration ] - Parameter #3 [ $udf_flags ] } } Method [ public method addByKey ] { - - Parameters [5] { + - Parameters [4] { Parameter #0 [ $server_key ] Parameter #1 [ $key ] Parameter #2 [ $value ] Parameter #3 [ $expiration ] - Parameter #4 [ $udf_flags ] } } @@ -409,22 +423,20 @@ Extension [ extension #85 memcached version 2.2.1-dev ] { Method [ public method replace ] { - - Parameters [4] { + - Parameters [3] { Parameter #0 [ $key ] Parameter #1 [ $value ] Parameter #2 [ $expiration ] - Parameter #3 [ $udf_flags ] } } Method [ public method replaceByKey ] { - - Parameters [5] { + - Parameters [4] { Parameter #0 [ $server_key ] Parameter #1 [ $key ] Parameter #2 [ $value ] Parameter #3 [ $expiration ] - Parameter #4 [ $udf_flags ] } } diff --git a/php-pecl-memcached-dev.spec b/php-pecl-memcached-dev.spec index c0c08b0..146107f 100644 --- a/php-pecl-memcached-dev.spec +++ b/php-pecl-memcached-dev.spec @@ -28,13 +28,11 @@ %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global with_tests %{?_with_tests:1}%{!?_with_tests:0} %global pecl_name memcached -# https://github.com/rlerdorf/php-memcached/commits/php7 -%global gh_commit 3c79a97aeb6e8c946116c536831816a36eb4eb0f +# https://github.com/php-memcached-dev/php-memcached/commits/php7 +%global gh_commit 6ace07da69a5ebc021e56a9d2f52cdc8897b4f23 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_date 20150628 -#global gh_owner php-memcached-dev -# Temporarily use Rasmus fork -%global gh_owner rlerdorf +%global gh_date 20160217 +%global gh_owner php-memcached-dev %global gh_project php-memcached #global prever RC1 #global intver rc1 @@ -48,17 +46,14 @@ Summary: Extension to work with the Memcached caching daemon Name: %{?sub_prefix}php-pecl-memcached -Version: 2.2.1 -Release: 0.2.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Version: 3.0.0 +Release: 0.1.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: PHP Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}%{?prever}-%{gh_short}.tar.gz -# https://github.com/rlerdorf/php-memcached/pull/3 -Patch0: %{pecl_name}-pr3.patch - BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # 5.2.10 required to HAVE_JSON enabled BuildRequires: %{?scl_prefix}php-devel >= 5.2.10 @@ -156,7 +151,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -c -q mv %{gh_project}-%{gh_commit} NTS -sed -e '/PHP_MEMCACHED_VERSION/s/2.2.0/%{version}-dev/' -i NTS/php_memcached.h +sed -e '/PHP_MEMCACHED_VERSION/s/3.0.0b1/%{version}-dev/' -i NTS/php_memcached.h %{__php} -r ' $pkg = simplexml_load_file("NTS/package.xml"); $pkg->date = substr("%{gh_date}",0,4)."-".substr("%{gh_date}",4,2)."-".substr("%{gh_date}",6,2); @@ -171,8 +166,6 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml cd NTS -%patch0 -p1 -b .pr3 - %if %{with_fastlz} rm -r fastlz sed -e '/name=.fastlz/d' -i ../package.xml @@ -324,9 +317,6 @@ ret=0 : Launch the Memcached service memcached -p 11211 -U 11211 -d -P $PWD/memcached.pid -rm ?TS/tests/experimental/serializer_json.phpt -rm ?TS/tests/experimental/serializer_igbinary.phpt - : Run the upstream test Suite for NTS extension pushd NTS rm tests/flush_buffers.phpt tests/touch_binary.phpt @@ -334,7 +324,7 @@ TEST_PHP_EXECUTABLE=%{__php} \ TEST_PHP_ARGS="$OPT -d extension=$PWD/modules/%{pecl_name}.so" \ NO_INTERACTION=1 \ REPORT_EXIT_STATUS=1 \ -%{__php} -n run-tests.php --show-diff || ret=1 +%{__php} -n run-tests.php --show-diff tests/*phpt || ret=1 popd %if %{with_zts} @@ -345,7 +335,7 @@ TEST_PHP_EXECUTABLE=%{__ztsphp} \ TEST_PHP_ARGS="$OPT -d extension=$PWD/modules/%{pecl_name}.so" \ NO_INTERACTION=1 \ REPORT_EXIT_STATUS=1 \ -%{__ztsphp} -n run-tests.php --show-diff || ret=1 +%{__ztsphp} -n run-tests.php --show-diff tests/*phpt || ret=1 popd %endif @@ -374,6 +364,10 @@ exit $ret %changelog +* Thu Mar 3 2016 Remi Collet - 3.0.0-0.1.20160217git6ace07d +- update to 3.0.0-dev +- switch back to php-memcached-dev sources + * Wed Mar 2 2016 Remi Collet - 2.2.1-0.2.20150628git3c79a97 - add patch for igbinary, see https://github.com/rlerdorf/php-memcached/pull/3 -- cgit