From 072d145521245754507f67cbed38e101e53f9cef Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 2 Mar 2016 13:38:40 +0100 Subject: php-pecl-memcached: enable igbinary --- REFLECTION-PHP7 | 714 +++++++++++++++++++++++++++++++++++++++++ memcached-pr3.patch | 42 +++ php-pecl-memcached-dev.spec | 25 +- php-pecl-memcached.spec | 2 + reflection-2.1.0 | 624 ------------------------------------ reflection-2.2.0 | 765 -------------------------------------------- 6 files changed, 778 insertions(+), 1394 deletions(-) create mode 100644 REFLECTION-PHP7 create mode 100644 memcached-pr3.patch delete mode 100644 reflection-2.1.0 delete mode 100644 reflection-2.2.0 diff --git a/REFLECTION-PHP7 b/REFLECTION-PHP7 new file mode 100644 index 0000000..94f1b1a --- /dev/null +++ b/REFLECTION-PHP7 @@ -0,0 +1,714 @@ +Extension [ extension #85 memcached version 2.2.1-dev ] { + + - 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_max_wait ] + Current = '0' + } + Entry [ memcached.sess_lock_expire ] + Current = '0' + } + Entry [ memcached.sess_prefix ] + Current = 'memc.sess.key.' + } + Entry [ memcached.sess_number_of_replicas ] + Current = '0' + } + Entry [ memcached.sess_randomize_replica_read ] + Current = '' + } + Entry [ memcached.sess_remove_failed ] + Current = '1' + } + Entry [ memcached.sess_connect_timeout ] + Current = '1000' + } + Entry [ memcached.sess_sasl_username ] + Current = '' + } + Entry [ memcached.sess_sasl_password ] + Current = '' + } + Entry [ memcached.compression_type ] + Current = 'fastlz' + } + Entry [ memcached.compression_factor ] + Current = '1.3' + } + Entry [ memcached.compression_threshold ] + Current = '2000' + } + Entry [ memcached.serializer ] + Current = 'igbinary' + } + Entry [ memcached.use_sasl ] + Current = '' + } + Entry [ memcached.store_retry_count ] + Current = '2' + } + } + + - Classes [2] { + Class [ class Memcached ] { + + - Constants [99] { + 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_STORE_RETRY_COUNT ] { -1005 } + Constant [ integer HAVE_IGBINARY ] { 1 } + Constant [ integer HAVE_JSON ] { 1 } + Constant [ integer HAVE_MSGPACK ] { 1 } + Constant [ integer HAVE_SESSION ] { 1 } + Constant [ integer HAVE_SASL ] { 1 } + Constant [ integer OPT_HASH ] { 2 } + Constant [ integer HASH_DEFAULT ] { 0 } + Constant [ integer HASH_MD5 ] { 1 } + Constant [ integer HASH_CRC ] { 2 } + Constant [ integer HASH_FNV1_64 ] { 3 } + Constant [ integer HASH_FNV1A_64 ] { 4 } + Constant [ integer HASH_FNV1_32 ] { 5 } + Constant [ integer HASH_FNV1A_32 ] { 6 } + Constant [ integer HASH_HSIEH ] { 7 } + Constant [ integer HASH_MURMUR ] { 8 } + Constant [ integer OPT_DISTRIBUTION ] { 9 } + Constant [ integer DISTRIBUTION_MODULA ] { 0 } + Constant [ integer DISTRIBUTION_CONSISTENT ] { 1 } + Constant [ integer DISTRIBUTION_VIRTUAL_BUCKET ] { 6 } + Constant [ integer OPT_LIBKETAMA_COMPATIBLE ] { 16 } + Constant [ integer OPT_LIBKETAMA_HASH ] { 17 } + Constant [ integer OPT_TCP_KEEPALIVE ] { 32 } + Constant [ integer OPT_BUFFER_WRITES ] { 10 } + Constant [ integer OPT_BINARY_PROTOCOL ] { 18 } + Constant [ integer OPT_NO_BLOCK ] { 0 } + Constant [ integer OPT_TCP_NODELAY ] { 1 } + Constant [ integer OPT_SOCKET_SEND_SIZE ] { 4 } + Constant [ integer OPT_SOCKET_RECV_SIZE ] { 5 } + Constant [ integer OPT_CONNECT_TIMEOUT ] { 14 } + Constant [ integer OPT_RETRY_TIMEOUT ] { 15 } + Constant [ integer OPT_DEAD_TIMEOUT ] { 36 } + Constant [ integer OPT_SEND_TIMEOUT ] { 19 } + Constant [ integer OPT_RECV_TIMEOUT ] { 20 } + Constant [ integer OPT_POLL_TIMEOUT ] { 8 } + Constant [ integer OPT_CACHE_LOOKUPS ] { 6 } + Constant [ integer OPT_SERVER_FAILURE_LIMIT ] { 21 } + Constant [ integer OPT_AUTO_EJECT_HOSTS ] { 28 } + Constant [ integer OPT_HASH_WITH_PREFIX_KEY ] { 25 } + Constant [ integer OPT_NOREPLY ] { 26 } + Constant [ integer OPT_SORT_HOSTS ] { 12 } + Constant [ integer OPT_VERIFY_KEY ] { 13 } + Constant [ integer OPT_USE_UDP ] { 27 } + Constant [ integer OPT_NUMBER_OF_REPLICAS ] { 29 } + Constant [ integer OPT_RANDOMIZE_REPLICA_READ ] { 30 } + Constant [ integer OPT_REMOVE_FAILED_SERVERS ] { 35 } + Constant [ integer OPT_SERVER_TIMEOUT_LIMIT ] { 37 } + Constant [ integer RES_SUCCESS ] { 0 } + Constant [ integer RES_FAILURE ] { 1 } + Constant [ integer RES_HOST_LOOKUP_FAILURE ] { 2 } + Constant [ integer RES_UNKNOWN_READ_FAILURE ] { 7 } + Constant [ integer RES_PROTOCOL_ERROR ] { 8 } + Constant [ integer RES_CLIENT_ERROR ] { 9 } + Constant [ integer RES_SERVER_ERROR ] { 10 } + Constant [ integer RES_WRITE_FAILURE ] { 5 } + Constant [ integer RES_DATA_EXISTS ] { 12 } + Constant [ integer RES_NOTSTORED ] { 14 } + Constant [ integer RES_NOTFOUND ] { 16 } + Constant [ integer RES_PARTIAL_READ ] { 18 } + Constant [ integer RES_SOME_ERRORS ] { 19 } + Constant [ integer RES_NO_SERVERS ] { 20 } + Constant [ integer RES_END ] { 21 } + Constant [ integer RES_ERRNO ] { 26 } + Constant [ integer RES_BUFFERED ] { 32 } + Constant [ integer RES_TIMEOUT ] { 31 } + Constant [ integer RES_BAD_KEY_PROVIDED ] { 33 } + Constant [ integer RES_STORED ] { 15 } + Constant [ integer RES_DELETED ] { 22 } + Constant [ integer RES_STAT ] { 24 } + Constant [ integer RES_ITEM ] { 25 } + Constant [ integer RES_NOT_SUPPORTED ] { 28 } + Constant [ integer RES_FETCH_NOTFINISHED ] { 30 } + Constant [ integer RES_SERVER_MARKED_DEAD ] { 35 } + Constant [ integer RES_UNKNOWN_STAT_KEY ] { 36 } + Constant [ integer RES_INVALID_HOST_PROTOCOL ] { 34 } + Constant [ integer RES_MEMORY_ALLOCATION_FAILURE ] { 17 } + Constant [ integer RES_CONNECTION_SOCKET_CREATE_FAILURE ] { 11 } + Constant [ integer RES_E2BIG ] { 37 } + Constant [ integer RES_KEY_TOO_BIG ] { 39 } + Constant [ integer RES_SERVER_TEMPORARILY_DISABLED ] { 47 } + Constant [ integer RES_SERVER_MEMORY_ALLOCATION_FAILURE ] { 48 } + Constant [ integer RES_AUTH_PROBLEM ] { 40 } + Constant [ integer RES_AUTH_FAILURE ] { 41 } + Constant [ integer RES_AUTH_CONTINUE ] { 42 } + Constant [ integer RES_PAYLOAD_FAILURE ] { -1001 } + Constant [ integer SERIALIZER_PHP ] { 1 } + Constant [ integer SERIALIZER_IGBINARY ] { 2 } + Constant [ integer SERIALIZER_JSON ] { 3 } + Constant [ integer SERIALIZER_JSON_ARRAY ] { 4 } + Constant [ integer SERIALIZER_MSGPACK ] { 5 } + Constant [ integer COMPRESSION_FASTLZ ] { 2 } + Constant [ integer COMPRESSION_ZLIB ] { 1 } + Constant [ integer GET_PRESERVE_ORDER ] { 1 } + Constant [ boolean GET_ERROR_RETURN_VALUE ] { } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [57] { + Method [ public method __construct ] { + + - Parameters [2] { + Parameter #0 [ $persistent_id ] + Parameter #1 [ $callback ] + } + } + + Method [ public method getResultCode ] { + + - Parameters [0] { + } + } + + Method [ public method getResultMessage ] { + + - Parameters [0] { + } + } + + Method [ public method get ] { + + - Parameters [4] { + Parameter #0 [ $key ] + Parameter #1 [ $cache_cb ] + Parameter #2 [ &$cas_token ] + Parameter #3 [ &$udf_flags ] + } + } + + Method [ public method getByKey ] { + + - Parameters [5] { + 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] { + Parameter #0 [ array $keys ] + Parameter #1 [ &$cas_tokens ] + Parameter #2 [ $flags ] + Parameter #3 [ &$udf_flags ] + } + } + + Method [ public method getMultiByKey ] { + + - Parameters [5] { + Parameter #0 [ $server_key ] + Parameter #1 [ array $keys ] + Parameter #2 [ &$cas_tokens ] + Parameter #3 [ $flags ] + Parameter #4 [ &$udf_flags ] + } + } + + Method [ public method getDelayed ] { + + - Parameters [3] { + Parameter #0 [ array $keys ] + Parameter #1 [ $with_cas ] + Parameter #2 [ $value_cb ] + } + } + + Method [ public method getDelayedByKey ] { + + - Parameters [4] { + Parameter #0 [ $server_key ] + Parameter #1 [ array $keys ] + Parameter #2 [ $with_cas ] + Parameter #3 [ $value_cb ] + } + } + + Method [ public method fetch ] { + + - Parameters [0] { + } + } + + Method [ public method fetchAll ] { + + - Parameters [0] { + } + } + + Method [ public method set ] { + + - Parameters [4] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + Parameter #2 [ $expiration ] + Parameter #3 [ $udf_flags ] + } + } + + Method [ public method setByKey ] { + + - Parameters [5] { + Parameter #0 [ $server_key ] + Parameter #1 [ $key ] + Parameter #2 [ $value ] + Parameter #3 [ $expiration ] + Parameter #4 [ $udf_flags ] + } + } + + Method [ public method touch ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $expiration ] + } + } + + Method [ public method touchByKey ] { + + - Parameters [3] { + Parameter #0 [ $server_key ] + Parameter #1 [ $key ] + Parameter #2 [ $expiration ] + } + } + + Method [ public method setMulti ] { + + - Parameters [3] { + Parameter #0 [ array $items ] + Parameter #1 [ $expiration ] + Parameter #2 [ $udf_flags ] + } + } + + Method [ public method setMultiByKey ] { + + - Parameters [4] { + Parameter #0 [ $server_key ] + Parameter #1 [ array $items ] + Parameter #2 [ $expiration ] + Parameter #3 [ $udf_flags ] + } + } + + Method [ public method cas ] { + + - Parameters [5] { + Parameter #0 [ $cas_token ] + Parameter #1 [ $key ] + Parameter #2 [ $value ] + Parameter #3 [ $expiration ] + Parameter #4 [ $udf_flags ] + } + } + + Method [ public method casByKey ] { + + - Parameters [6] { + 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] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + Parameter #2 [ $expiration ] + Parameter #3 [ $udf_flags ] + } + } + + Method [ public method addByKey ] { + + - Parameters [5] { + Parameter #0 [ $server_key ] + Parameter #1 [ $key ] + Parameter #2 [ $value ] + Parameter #3 [ $expiration ] + Parameter #4 [ $udf_flags ] + } + } + + Method [ public method append ] { + + - Parameters [3] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + Parameter #2 [ $expiration ] + } + } + + Method [ public method appendByKey ] { + + - Parameters [4] { + Parameter #0 [ $server_key ] + Parameter #1 [ $key ] + Parameter #2 [ $value ] + Parameter #3 [ $expiration ] + } + } + + Method [ public method prepend ] { + + - Parameters [3] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + Parameter #2 [ $expiration ] + } + } + + Method [ public method prependByKey ] { + + - Parameters [4] { + Parameter #0 [ $server_key ] + Parameter #1 [ $key ] + Parameter #2 [ $value ] + Parameter #3 [ $expiration ] + } + } + + Method [ public method replace ] { + + - Parameters [4] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + Parameter #2 [ $expiration ] + Parameter #3 [ $udf_flags ] + } + } + + Method [ public method replaceByKey ] { + + - Parameters [5] { + Parameter #0 [ $server_key ] + Parameter #1 [ $key ] + Parameter #2 [ $value ] + Parameter #3 [ $expiration ] + Parameter #4 [ $udf_flags ] + } + } + + Method [ public method delete ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $time ] + } + } + + Method [ public method deleteMulti ] { + + - Parameters [2] { + Parameter #0 [ $keys ] + Parameter #1 [ $time ] + } + } + + Method [ public method deleteByKey ] { + + - Parameters [3] { + Parameter #0 [ $server_key ] + Parameter #1 [ $key ] + Parameter #2 [ $time ] + } + } + + Method [ public method deleteMultiByKey ] { + + - Parameters [3] { + Parameter #0 [ $server_key ] + Parameter #1 [ $keys ] + Parameter #2 [ $time ] + } + } + + Method [ public method increment ] { + + - Parameters [4] { + Parameter #0 [ $key ] + Parameter #1 [ $offset ] + Parameter #2 [ $initial_value ] + Parameter #3 [ $expiry ] + } + } + + Method [ public method decrement ] { + + - Parameters [4] { + Parameter #0 [ $key ] + Parameter #1 [ $offset ] + Parameter #2 [ $initial_value ] + Parameter #3 [ $expiry ] + } + } + + Method [ public method incrementByKey ] { + + - Parameters [5] { + Parameter #0 [ $server_key ] + Parameter #1 [ $key ] + Parameter #2 [ $offset ] + Parameter #3 [ $initial_value ] + Parameter #4 [ $expiry ] + } + } + + Method [ public method decrementByKey ] { + + - Parameters [5] { + Parameter #0 [ $server_key ] + Parameter #1 [ $key ] + Parameter #2 [ $offset ] + Parameter #3 [ $initial_value ] + Parameter #4 [ $expiry ] + } + } + + Method [ public method addServer ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $weight ] + } + } + + Method [ public method addServers ] { + + - Parameters [1] { + Parameter #0 [ array $servers ] + } + } + + Method [ public method getServerList ] { + + - Parameters [0] { + } + } + + Method [ public method getServerByKey ] { + + - Parameters [1] { + Parameter #0 [ $server_key ] + } + } + + Method [ public method resetServerList ] { + + - Parameters [0] { + } + } + + Method [ public method quit ] { + + - Parameters [0] { + } + } + + Method [ public method flushBuffers ] { + + - Parameters [0] { + } + } + + Method [ public method getLastErrorMessage ] { + + - Parameters [0] { + } + } + + Method [ public method getLastErrorCode ] { + + - Parameters [0] { + } + } + + Method [ public method getLastErrorErrno ] { + + - Parameters [0] { + } + } + + Method [ public method getLastDisconnectedServer ] { + + - Parameters [0] { + } + } + + Method [ public method getStats ] { + + - Parameters [0] { + } + } + + Method [ public method getVersion ] { + + - Parameters [0] { + } + } + + Method [ public method getAllKeys ] { + + - Parameters [0] { + } + } + + Method [ public method flush ] { + + - Parameters [1] { + Parameter #0 [ $delay ] + } + } + + Method [ public method getOption ] { + + - Parameters [1] { + Parameter #0 [ $option ] + } + } + + Method [ public method setOption ] { + + - Parameters [2] { + Parameter #0 [ $option ] + Parameter #1 [ $value ] + } + } + + Method [ public method setOptions ] { + + - Parameters [1] { + Parameter #0 [ $options ] + } + } + + Method [ public method setBucket ] { + + - Parameters [3] { + Parameter #0 [ $host_map ] + Parameter #1 [ $forward_map ] + Parameter #2 [ $replicas ] + } + } + + Method [ public method setSaslAuthData ] { + + - Parameters [2] { + Parameter #0 [ $username ] + Parameter #1 [ $password ] + } + } + + Method [ public method isPersistent ] { + + - Parameters [0] { + } + } + + Method [ public method isPristine ] { + + - Parameters [0] { + } + } + } + } + + Class [ class MemcachedException extends RuntimeException implements Throwable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ public method __wakeup ] { + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + } +} + diff --git a/memcached-pr3.patch b/memcached-pr3.patch new file mode 100644 index 0000000..5e0e194 --- /dev/null +++ b/memcached-pr3.patch @@ -0,0 +1,42 @@ +From 5c49c02dfd0b12f46ba2909aaec31938c6e96728 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Wed, 2 Mar 2016 11:37:50 +0100 +Subject: [PATCH] Fix build with igbinary + +Using https://github.com/igbinary/igbinary7 +--- + php_memcached.c | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +diff --git a/php_memcached.c b/php_memcached.c +index 9195bfc..09df000 100644 +--- a/php_memcached.c ++++ b/php_memcached.c +@@ -3088,11 +3088,17 @@ zend_bool s_serialize_value (enum memcached_serializer serializer, zval *value, + */ + #ifdef HAVE_MEMCACHED_IGBINARY + case SERIALIZER_IGBINARY: +- if (igbinary_serialize((uint8_t **) &buf->c, &buf->len, value) != 0) { ++ { ++ char *s; ++ size_t l; ++ if (igbinary_serialize((uint8_t **) &s, &l, value) != 0) { + php_error_docref(NULL, E_WARNING, "could not serialize value with igbinary"); + return 0; + } ++ smart_str_setl(buf, s, l); ++ efree(s); + MEMC_VAL_SET_TYPE(*flags, MEMC_VAL_IS_IGBINARY); ++ } + break; + #endif + +@@ -3306,7 +3312,7 @@ zend_bool s_unserialize_value (enum memcached_serializer serializer, int val_typ + + case MEMC_VAL_IS_IGBINARY: + #ifdef HAVE_MEMCACHED_IGBINARY +- if (igbinary_unserialize((uint8_t *)payload, payload_len, &value)) { ++ if (igbinary_unserialize((const uint8_t *)payload, payload_len, value)) { + ZVAL_FALSE(value); + php_error_docref(NULL, E_WARNING, "could not unserialize value with igbinary"); + return 0; diff --git a/php-pecl-memcached-dev.spec b/php-pecl-memcached-dev.spec index aaaf8be..c0c08b0 100644 --- a/php-pecl-memcached-dev.spec +++ b/php-pecl-memcached-dev.spec @@ -24,7 +24,7 @@ %{!?__php: %global __php %{_bindir}/php} %global with_fastlz 1 -%global with_igbin 0 +%global with_igbin 1 %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global with_tests %{?_with_tests:1}%{!?_with_tests:0} %global pecl_name memcached @@ -49,13 +49,16 @@ Summary: Extension to work with the Memcached caching daemon Name: %{?sub_prefix}php-pecl-memcached Version: 2.2.1 -Release: 0.1.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 0.2.%{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 @@ -163,9 +166,12 @@ sed -e '/PHP_MEMCACHED_VERSION/s/2.2.0/%{version}-dev/' -i NTS/php_memcached.h ' # Don't install/register tests -sed -e 's/role="test"/role="src"/' -i package.xml +sed -e 's/role="test"/role="src"/' \ + %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ + -i package.xml cd NTS +%patch0 -p1 -b .pr3 %if %{with_fastlz} rm -r fastlz @@ -274,6 +280,7 @@ done rm -rf %{buildroot} +%if 0%{?fedora} < 24 # when pear installed alone, after us %triggerin -- %{?scl_prefix}php-pear if [ -x %{__pecl} ] ; then @@ -290,6 +297,7 @@ fi if [ $1 -eq 0 -a -x %{__pecl} ] ; then %{pecl_uninstall} %{pecl_name} >/dev/null || : fi +%endif %check @@ -316,6 +324,9 @@ 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 @@ -323,7 +334,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 || ret=1 +%{__php} -n run-tests.php --show-diff || ret=1 popd %if %{with_zts} @@ -334,7 +345,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 || ret=1 +%{__ztsphp} -n run-tests.php --show-diff || ret=1 popd %endif @@ -363,6 +374,10 @@ exit $ret %changelog +* 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 + * Sun Jan 10 2016 Remi Collet - 2.2.1-0.1.20150628git3c79a97 - bump version to 2.2.1-dev, stability=devel diff --git a/php-pecl-memcached.spec b/php-pecl-memcached.spec index c6fd2e9..5ba3518 100644 --- a/php-pecl-memcached.spec +++ b/php-pecl-memcached.spec @@ -256,6 +256,7 @@ done rm -rf %{buildroot} +%if 0%{?fedora} < 24 # when pear installed alone, after us %triggerin -- %{?scl_prefix}php-pear if [ -x %{__pecl} ] ; then @@ -272,6 +273,7 @@ fi if [ $1 -eq 0 -a -x %{__pecl} ] ; then %{pecl_uninstall} %{pecl_name} >/dev/null || : fi +%endif %check diff --git a/reflection-2.1.0 b/reflection-2.1.0 deleted file mode 100644 index 6c16b0d..0000000 --- a/reflection-2.1.0 +++ /dev/null @@ -1,624 +0,0 @@ -Extension [ extension #60 memcached version 2.1.0 ] { - - - Dependencies { - Dependency [ session (Required) ] - Dependency [ igbinary (Required) ] - Dependency [ spl (Required) ] - } - - - INI { - Entry [ memcached.sess_locking ] - Current = '1' - } - Entry [ memcached.sess_binary ] - Current = '0' - } - Entry [ memcached.sess_lock_wait ] - Current = '150000' - } - Entry [ memcached.sess_prefix ] - Current = 'memc.sess.key.' - } - Entry [ memcached.compression_type ] - Current = 'fastlz' - } - Entry [ memcached.compression_factor ] - Current = '1.3' - } - Entry [ memcached.compression_threshold ] - Current = '2000' - } - Entry [ memcached.serializer ] - Current = 'igbinary' - } - Entry [ memcached.use_sasl ] - Current = '0' - } - } - - - Classes [2] { - Class [ class Memcached ] { - - - Constants [89] { - Constant [ integer OPT_COMPRESSION ] { -1001 } - Constant [ integer OPT_COMPRESSION_TYPE ] { -1004 } - Constant [ integer OPT_PREFIX_KEY ] { -1002 } - Constant [ integer OPT_SERIALIZER ] { -1003 } - Constant [ integer HAVE_IGBINARY ] { 1 } - Constant [ integer HAVE_JSON ] { 1 } - Constant [ integer HAVE_SESSION ] { 1 } - Constant [ integer HAVE_SASL ] { 1 } - Constant [ integer OPT_HASH ] { 2 } - Constant [ integer HASH_DEFAULT ] { 0 } - Constant [ integer HASH_MD5 ] { 1 } - Constant [ integer HASH_CRC ] { 2 } - Constant [ integer HASH_FNV1_64 ] { 3 } - Constant [ integer HASH_FNV1A_64 ] { 4 } - Constant [ integer HASH_FNV1_32 ] { 5 } - Constant [ integer HASH_FNV1A_32 ] { 6 } - Constant [ integer HASH_HSIEH ] { 7 } - Constant [ integer HASH_MURMUR ] { 8 } - Constant [ integer OPT_DISTRIBUTION ] { 9 } - Constant [ integer DISTRIBUTION_MODULA ] { 0 } - Constant [ integer DISTRIBUTION_CONSISTENT ] { 1 } - Constant [ integer DISTRIBUTION_VIRTUAL_BUCKET ] { 6 } - Constant [ integer OPT_LIBKETAMA_COMPATIBLE ] { 16 } - Constant [ integer OPT_LIBKETAMA_HASH ] { 17 } - Constant [ integer OPT_TCP_KEEPALIVE ] { 32 } - Constant [ integer OPT_BUFFER_WRITES ] { 10 } - Constant [ integer OPT_BINARY_PROTOCOL ] { 18 } - Constant [ integer OPT_NO_BLOCK ] { 0 } - Constant [ integer OPT_TCP_NODELAY ] { 1 } - Constant [ integer OPT_SOCKET_SEND_SIZE ] { 4 } - Constant [ integer OPT_SOCKET_RECV_SIZE ] { 5 } - Constant [ integer OPT_CONNECT_TIMEOUT ] { 14 } - Constant [ integer OPT_RETRY_TIMEOUT ] { 15 } - Constant [ integer OPT_SEND_TIMEOUT ] { 19 } - Constant [ integer OPT_RECV_TIMEOUT ] { 20 } - Constant [ integer OPT_POLL_TIMEOUT ] { 8 } - Constant [ integer OPT_CACHE_LOOKUPS ] { 6 } - Constant [ integer OPT_SERVER_FAILURE_LIMIT ] { 21 } - Constant [ integer OPT_AUTO_EJECT_HOSTS ] { 28 } - Constant [ integer OPT_HASH_WITH_PREFIX_KEY ] { 25 } - Constant [ integer OPT_NOREPLY ] { 26 } - Constant [ integer OPT_SORT_HOSTS ] { 12 } - Constant [ integer OPT_VERIFY_KEY ] { 13 } - Constant [ integer OPT_USE_UDP ] { 27 } - Constant [ integer OPT_NUMBER_OF_REPLICAS ] { 29 } - Constant [ integer OPT_RANDOMIZE_REPLICA_READ ] { 30 } - Constant [ integer OPT_REMOVE_FAILED_SERVERS ] { 35 } - Constant [ integer RES_SUCCESS ] { 0 } - Constant [ integer RES_FAILURE ] { 1 } - Constant [ integer RES_HOST_LOOKUP_FAILURE ] { 2 } - Constant [ integer RES_UNKNOWN_READ_FAILURE ] { 7 } - Constant [ integer RES_PROTOCOL_ERROR ] { 8 } - Constant [ integer RES_CLIENT_ERROR ] { 9 } - Constant [ integer RES_SERVER_ERROR ] { 10 } - Constant [ integer RES_WRITE_FAILURE ] { 5 } - Constant [ integer RES_DATA_EXISTS ] { 12 } - Constant [ integer RES_NOTSTORED ] { 14 } - Constant [ integer RES_NOTFOUND ] { 16 } - Constant [ integer RES_PARTIAL_READ ] { 18 } - Constant [ integer RES_SOME_ERRORS ] { 19 } - Constant [ integer RES_NO_SERVERS ] { 20 } - Constant [ integer RES_END ] { 21 } - Constant [ integer RES_ERRNO ] { 26 } - Constant [ integer RES_BUFFERED ] { 32 } - Constant [ integer RES_TIMEOUT ] { 31 } - Constant [ integer RES_BAD_KEY_PROVIDED ] { 33 } - Constant [ integer RES_STORED ] { 15 } - Constant [ integer RES_DELETED ] { 22 } - Constant [ integer RES_STAT ] { 24 } - Constant [ integer RES_ITEM ] { 25 } - Constant [ integer RES_NOT_SUPPORTED ] { 28 } - Constant [ integer RES_FETCH_NOTFINISHED ] { 30 } - Constant [ integer RES_SERVER_MARKED_DEAD ] { 35 } - Constant [ integer RES_UNKNOWN_STAT_KEY ] { 36 } - Constant [ integer RES_INVALID_HOST_PROTOCOL ] { 34 } - Constant [ integer RES_MEMORY_ALLOCATION_FAILURE ] { 17 } - Constant [ integer RES_CONNECTION_SOCKET_CREATE_FAILURE ] { 11 } - Constant [ integer RES_AUTH_PROBLEM ] { 40 } - Constant [ integer RES_AUTH_FAILURE ] { 41 } - Constant [ integer RES_AUTH_CONTINUE ] { 42 } - Constant [ integer RES_PAYLOAD_FAILURE ] { -1001 } - Constant [ integer SERIALIZER_PHP ] { 1 } - Constant [ integer SERIALIZER_IGBINARY ] { 2 } - Constant [ integer SERIALIZER_JSON ] { 3 } - Constant [ integer SERIALIZER_JSON_ARRAY ] { 4 } - Constant [ integer COMPRESSION_FASTLZ ] { 2 } - Constant [ integer COMPRESSION_ZLIB ] { 1 } - Constant [ integer GET_PRESERVE_ORDER ] { 1 } - Constant [ boolean GET_ERROR_RETURN_VALUE ] { } - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [51] { - Method [ public method __construct ] { - - - Parameters [2] { - Parameter #0 [ $persistent_id ] - Parameter #1 [ $callback ] - } - } - - Method [ public method getResultCode ] { - - - Parameters [0] { - } - } - - Method [ public method getResultMessage ] { - - - Parameters [0] { - } - } - - Method [ public method get ] { - - - Parameters [3] { - Parameter #0 [ $key ] - Parameter #1 [ $cache_cb ] - Parameter #2 [ &$cas_token ] - } - } - - Method [ public method getByKey ] { - - - Parameters [4] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $cache_cb ] - Parameter #3 [ &$cas_token ] - } - } - - Method [ public method getMulti ] { - - - Parameters [3] { - Parameter #0 [ array $keys ] - Parameter #1 [ &$cas_tokens ] - Parameter #2 [ $flags ] - } - } - - Method [ public method getMultiByKey ] { - - - Parameters [4] { - Parameter #0 [ $server_key ] - Parameter #1 [ array $keys ] - Parameter #2 [ &$cas_tokens ] - Parameter #3 [ $flags ] - } - } - - Method [ public method getDelayed ] { - - - Parameters [3] { - Parameter #0 [ array $keys ] - Parameter #1 [ $with_cas ] - Parameter #2 [ $value_cb ] - } - } - - Method [ public method getDelayedByKey ] { - - - Parameters [4] { - Parameter #0 [ $server_key ] - Parameter #1 [ array $keys ] - Parameter #2 [ $with_cas ] - Parameter #3 [ $value_cb ] - } - } - - Method [ public method fetch ] { - - - Parameters [0] { - } - } - - Method [ public method fetchAll ] { - - - Parameters [0] { - } - } - - Method [ public method set ] { - - - Parameters [3] { - Parameter #0 [ $key ] - Parameter #1 [ $value ] - Parameter #2 [ $expiration ] - } - } - - Method [ public method setByKey ] { - - - Parameters [4] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $value ] - Parameter #3 [ $expiration ] - } - } - - Method [ public method touch ] { - - - Parameters [2] { - Parameter #0 [ $key ] - Parameter #1 [ $expiration ] - } - } - - Method [ public method touchByKey ] { - - - Parameters [3] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $expiration ] - } - } - - Method [ public method setMulti ] { - - - Parameters [2] { - Parameter #0 [ array $items ] - Parameter #1 [ $expiration ] - } - } - - Method [ public method setMultiByKey ] { - - - Parameters [3] { - Parameter #0 [ $server_key ] - Parameter #1 [ array $items ] - Parameter #2 [ $expiration ] - } - } - - Method [ public method cas ] { - - - Parameters [4] { - Parameter #0 [ $cas_token ] - Parameter #1 [ $key ] - Parameter #2 [ $value ] - Parameter #3 [ $expiration ] - } - } - - Method [ public method casByKey ] { - - - Parameters [5] { - Parameter #0 [ $cas_token ] - Parameter #1 [ $server_key ] - Parameter #2 [ $key ] - Parameter #3 [ $value ] - Parameter #4 [ $expiration ] - } - } - - Method [ public method add ] { - - - Parameters [3] { - Parameter #0 [ $key ] - Parameter #1 [ $value ] - Parameter #2 [ $expiration ] - } - } - - Method [ public method addByKey ] { - - - Parameters [4] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $value ] - Parameter #3 [ $expiration ] - } - } - - Method [ public method append ] { - - - Parameters [3] { - Parameter #0 [ $key ] - Parameter #1 [ $value ] - Parameter #2 [ $expiration ] - } - } - - Method [ public method appendByKey ] { - - - Parameters [4] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $value ] - Parameter #3 [ $expiration ] - } - } - - Method [ public method prepend ] { - - - Parameters [3] { - Parameter #0 [ $key ] - Parameter #1 [ $value ] - Parameter #2 [ $expiration ] - } - } - - Method [ public method prependByKey ] { - - - Parameters [4] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $value ] - Parameter #3 [ $expiration ] - } - } - - Method [ public method replace ] { - - - Parameters [3] { - Parameter #0 [ $key ] - Parameter #1 [ $value ] - Parameter #2 [ $expiration ] - } - } - - Method [ public method replaceByKey ] { - - - Parameters [4] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $value ] - Parameter #3 [ $expiration ] - } - } - - Method [ public method delete ] { - - - Parameters [2] { - Parameter #0 [ $key ] - Parameter #1 [ $time ] - } - } - - Method [ public method deleteMulti ] { - - - Parameters [2] { - Parameter #0 [ $keys ] - Parameter #1 [ $time ] - } - } - - Method [ public method deleteByKey ] { - - - Parameters [3] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $time ] - } - } - - Method [ public method deleteMultiByKey ] { - - - Parameters [3] { - Parameter #0 [ $server_key ] - Parameter #1 [ $keys ] - Parameter #2 [ $time ] - } - } - - Method [ public method increment ] { - - - Parameters [4] { - Parameter #0 [ $key ] - Parameter #1 [ $offset ] - Parameter #2 [ $initial_value ] - Parameter #3 [ $expiry ] - } - } - - Method [ public method decrement ] { - - - Parameters [4] { - Parameter #0 [ $key ] - Parameter #1 [ $offset ] - Parameter #2 [ $initial_value ] - Parameter #3 [ $expiry ] - } - } - - Method [ public method incrementByKey ] { - - - Parameters [5] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $offset ] - Parameter #3 [ $initial_value ] - Parameter #4 [ $expiry ] - } - } - - Method [ public method decrementByKey ] { - - - Parameters [5] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $offset ] - Parameter #3 [ $initial_value ] - Parameter #4 [ $expiry ] - } - } - - Method [ public method addServer ] { - - - Parameters [3] { - Parameter #0 [ $host ] - Parameter #1 [ $port ] - Parameter #2 [ $weight ] - } - } - - Method [ public method addServers ] { - - - Parameters [1] { - Parameter #0 [ array $servers ] - } - } - - Method [ public method getServerList ] { - - - Parameters [0] { - } - } - - Method [ public method getServerByKey ] { - - - Parameters [1] { - Parameter #0 [ $server_key ] - } - } - - Method [ public method resetServerList ] { - - - Parameters [0] { - } - } - - Method [ public method quit ] { - - - Parameters [0] { - } - } - - Method [ public method getStats ] { - - - Parameters [0] { - } - } - - Method [ public method getVersion ] { - - - Parameters [0] { - } - } - - Method [ public method getAllKeys ] { - - - Parameters [0] { - } - } - - Method [ public method flush ] { - - - Parameters [1] { - Parameter #0 [ $delay ] - } - } - - Method [ public method getOption ] { - - - Parameters [1] { - Parameter #0 [ $option ] - } - } - - Method [ public method setOption ] { - - - Parameters [2] { - Parameter #0 [ $option ] - Parameter #1 [ $value ] - } - } - - Method [ public method setOptions ] { - - - Parameters [1] { - Parameter #0 [ $options ] - } - } - - Method [ public method setSaslAuthData ] { - - - Parameters [2] { - Parameter #0 [ $username ] - Parameter #1 [ $password ] - } - } - - Method [ public method isPersistent ] { - - - Parameters [0] { - } - } - - Method [ public method isPristine ] { - - - Parameters [0] { - } - } - } - } - - Class [ class MemcachedException extends RuntimeException ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [4] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] - } - - - Methods [9] { - Method [ public method __construct ] { - - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] - } - } - - Method [ final public method getMessage ] { - } - - Method [ final public method getCode ] { - } - - Method [ final public method getFile ] { - } - - Method [ final public method getLine ] { - } - - Method [ final public method getTrace ] { - } - - Method [ final public method getPrevious ] { - } - - Method [ final public method getTraceAsString ] { - } - - Method [ public method __toString ] { - } - } - } - } -} - diff --git a/reflection-2.2.0 b/reflection-2.2.0 deleted file mode 100644 index 48dec61..0000000 --- a/reflection-2.2.0 +++ /dev/null @@ -1,765 +0,0 @@ -Extension [ extension #156 memcached version 2.2.0 ] { - - - INI { - Entry [ memcached.sess_locking ] - Current = '1' - } - Entry [ memcached.sess_consistent_hash ] - Current = '0' - } - Entry [ memcached.sess_binary ] - Current = '0' - } - Entry [ memcached.sess_lock_wait ] - Current = '150000' - } - Entry [ memcached.sess_lock_max_wait ] - Current = '0' - } - Entry [ memcached.sess_lock_expire ] - Current = '0' - } - Entry [ memcached.sess_prefix ] - Current = 'memc.sess.key.' - } - Entry [ memcached.sess_number_of_replicas ] - Current = '0' - } - Entry [ memcached.sess_randomize_replica_read ] - Current = '0' - } - Entry [ memcached.sess_remove_failed ] - Current = '0' - } - Entry [ memcached.sess_connect_timeout ] - Current = '1000' - } - Entry [ memcached.sess_sasl_username ] - Current = '' - } - Entry [ memcached.sess_sasl_password ] - Current = '' - } - Entry [ memcached.compression_type ] - Current = 'fastlz' - } - Entry [ memcached.compression_factor ] - Current = '1.3' - } - Entry [ memcached.compression_threshold ] - Current = '2000' - } - Entry [ memcached.serializer ] - Current = 'igbinary' - } - Entry [ memcached.use_sasl ] - Current = '0' - } - Entry [ memcached.store_retry_count ] - Current = '2' - } - } - - - Classes [3] { - Class [ class Memcached ] { - - - Constants [130] { - 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_STORE_RETRY_COUNT ] { -1005 } - Constant [ integer HAVE_IGBINARY ] { 1 } - Constant [ integer HAVE_JSON ] { 1 } - Constant [ integer HAVE_MSGPACK ] { 1 } - Constant [ integer HAVE_SESSION ] { 1 } - Constant [ integer HAVE_SASL ] { 1 } - Constant [ integer OPT_HASH ] { 2 } - Constant [ integer HASH_DEFAULT ] { 0 } - Constant [ integer HASH_MD5 ] { 1 } - Constant [ integer HASH_CRC ] { 2 } - Constant [ integer HASH_FNV1_64 ] { 3 } - Constant [ integer HASH_FNV1A_64 ] { 4 } - Constant [ integer HASH_FNV1_32 ] { 5 } - Constant [ integer HASH_FNV1A_32 ] { 6 } - Constant [ integer HASH_HSIEH ] { 7 } - Constant [ integer HASH_MURMUR ] { 8 } - Constant [ integer OPT_DISTRIBUTION ] { 9 } - Constant [ integer DISTRIBUTION_MODULA ] { 0 } - Constant [ integer DISTRIBUTION_CONSISTENT ] { 1 } - Constant [ integer DISTRIBUTION_VIRTUAL_BUCKET ] { 6 } - Constant [ integer OPT_LIBKETAMA_COMPATIBLE ] { 16 } - Constant [ integer OPT_LIBKETAMA_HASH ] { 17 } - Constant [ integer OPT_TCP_KEEPALIVE ] { 32 } - Constant [ integer OPT_BUFFER_WRITES ] { 10 } - Constant [ integer OPT_BINARY_PROTOCOL ] { 18 } - Constant [ integer OPT_NO_BLOCK ] { 0 } - Constant [ integer OPT_TCP_NODELAY ] { 1 } - Constant [ integer OPT_SOCKET_SEND_SIZE ] { 4 } - Constant [ integer OPT_SOCKET_RECV_SIZE ] { 5 } - Constant [ integer OPT_CONNECT_TIMEOUT ] { 14 } - Constant [ integer OPT_RETRY_TIMEOUT ] { 15 } - Constant [ integer OPT_DEAD_TIMEOUT ] { 36 } - Constant [ integer OPT_SEND_TIMEOUT ] { 19 } - Constant [ integer OPT_RECV_TIMEOUT ] { 20 } - Constant [ integer OPT_POLL_TIMEOUT ] { 8 } - Constant [ integer OPT_CACHE_LOOKUPS ] { 6 } - Constant [ integer OPT_SERVER_FAILURE_LIMIT ] { 21 } - Constant [ integer OPT_AUTO_EJECT_HOSTS ] { 28 } - Constant [ integer OPT_HASH_WITH_PREFIX_KEY ] { 25 } - Constant [ integer OPT_NOREPLY ] { 26 } - Constant [ integer OPT_SORT_HOSTS ] { 12 } - Constant [ integer OPT_VERIFY_KEY ] { 13 } - Constant [ integer OPT_USE_UDP ] { 27 } - Constant [ integer OPT_NUMBER_OF_REPLICAS ] { 29 } - Constant [ integer OPT_RANDOMIZE_REPLICA_READ ] { 30 } - Constant [ integer OPT_REMOVE_FAILED_SERVERS ] { 35 } - Constant [ integer OPT_SERVER_TIMEOUT_LIMIT ] { 37 } - Constant [ integer RES_SUCCESS ] { 0 } - Constant [ integer RES_FAILURE ] { 1 } - Constant [ integer RES_HOST_LOOKUP_FAILURE ] { 2 } - Constant [ integer RES_UNKNOWN_READ_FAILURE ] { 7 } - Constant [ integer RES_PROTOCOL_ERROR ] { 8 } - Constant [ integer RES_CLIENT_ERROR ] { 9 } - Constant [ integer RES_SERVER_ERROR ] { 10 } - Constant [ integer RES_WRITE_FAILURE ] { 5 } - Constant [ integer RES_DATA_EXISTS ] { 12 } - Constant [ integer RES_NOTSTORED ] { 14 } - Constant [ integer RES_NOTFOUND ] { 16 } - Constant [ integer RES_PARTIAL_READ ] { 18 } - Constant [ integer RES_SOME_ERRORS ] { 19 } - Constant [ integer RES_NO_SERVERS ] { 20 } - Constant [ integer RES_END ] { 21 } - Constant [ integer RES_ERRNO ] { 26 } - Constant [ integer RES_BUFFERED ] { 32 } - Constant [ integer RES_TIMEOUT ] { 31 } - Constant [ integer RES_BAD_KEY_PROVIDED ] { 33 } - Constant [ integer RES_STORED ] { 15 } - Constant [ integer RES_DELETED ] { 22 } - Constant [ integer RES_STAT ] { 24 } - Constant [ integer RES_ITEM ] { 25 } - Constant [ integer RES_NOT_SUPPORTED ] { 28 } - Constant [ integer RES_FETCH_NOTFINISHED ] { 30 } - Constant [ integer RES_SERVER_MARKED_DEAD ] { 35 } - Constant [ integer RES_UNKNOWN_STAT_KEY ] { 36 } - Constant [ integer RES_INVALID_HOST_PROTOCOL ] { 34 } - Constant [ integer RES_MEMORY_ALLOCATION_FAILURE ] { 17 } - Constant [ integer RES_CONNECTION_SOCKET_CREATE_FAILURE ] { 11 } - Constant [ integer RES_E2BIG ] { 37 } - Constant [ integer RES_KEY_TOO_BIG ] { 39 } - Constant [ integer RES_SERVER_TEMPORARILY_DISABLED ] { 47 } - Constant [ integer RES_SERVER_MEMORY_ALLOCATION_FAILURE ] { 48 } - Constant [ integer RES_AUTH_PROBLEM ] { 40 } - Constant [ integer RES_AUTH_FAILURE ] { 41 } - Constant [ integer RES_AUTH_CONTINUE ] { 42 } - Constant [ integer RES_PAYLOAD_FAILURE ] { -1001 } - Constant [ integer SERIALIZER_PHP ] { 1 } - Constant [ integer SERIALIZER_IGBINARY ] { 2 } - Constant [ integer SERIALIZER_JSON ] { 3 } - Constant [ integer SERIALIZER_JSON_ARRAY ] { 4 } - Constant [ integer SERIALIZER_MSGPACK ] { 5 } - Constant [ integer COMPRESSION_FASTLZ ] { 2 } - Constant [ integer COMPRESSION_ZLIB ] { 1 } - Constant [ integer GET_PRESERVE_ORDER ] { 1 } - Constant [ integer ON_CONNECT ] { 0 } - Constant [ integer ON_ADD ] { 1 } - Constant [ integer ON_APPEND ] { 2 } - Constant [ integer ON_DECREMENT ] { 3 } - Constant [ integer ON_DELETE ] { 4 } - Constant [ integer ON_FLUSH ] { 5 } - Constant [ integer ON_GET ] { 6 } - Constant [ integer ON_INCREMENT ] { 7 } - Constant [ integer ON_NOOP ] { 8 } - Constant [ integer ON_PREPEND ] { 9 } - Constant [ integer ON_QUIT ] { 10 } - Constant [ integer ON_REPLACE ] { 11 } - Constant [ integer ON_SET ] { 12 } - Constant [ integer ON_STAT ] { 13 } - Constant [ integer ON_VERSION ] { 14 } - Constant [ integer RESPONSE_SUCCESS ] { 0 } - Constant [ integer RESPONSE_KEY_ENOENT ] { 1 } - Constant [ integer RESPONSE_KEY_EEXISTS ] { 2 } - Constant [ integer RESPONSE_E2BIG ] { 3 } - Constant [ integer RESPONSE_EINVAL ] { 4 } - Constant [ integer RESPONSE_NOT_STORED ] { 5 } - Constant [ integer RESPONSE_DELTA_BADVAL ] { 6 } - Constant [ integer RESPONSE_NOT_MY_VBUCKET ] { 7 } - Constant [ integer RESPONSE_AUTH_ERROR ] { 32 } - Constant [ integer RESPONSE_AUTH_CONTINUE ] { 33 } - Constant [ integer RESPONSE_UNKNOWN_COMMAND ] { 129 } - Constant [ integer RESPONSE_ENOMEM ] { 130 } - Constant [ integer RESPONSE_NOT_SUPPORTED ] { 131 } - Constant [ integer RESPONSE_EINTERNAL ] { 132 } - Constant [ integer RESPONSE_EBUSY ] { 133 } - Constant [ integer RESPONSE_ETMPFAIL ] { 134 } - Constant [ boolean GET_ERROR_RETURN_VALUE ] { } - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [57] { - Method [ public method __construct ] { - - - Parameters [2] { - Parameter #0 [ $persistent_id ] - Parameter #1 [ $callback ] - } - } - - Method [ public method getResultCode ] { - - - Parameters [0] { - } - } - - Method [ public method getResultMessage ] { - - - Parameters [0] { - } - } - - Method [ public method get ] { - - - Parameters [4] { - Parameter #0 [ $key ] - Parameter #1 [ $cache_cb ] - Parameter #2 [ &$cas_token ] - Parameter #3 [ &$udf_flags ] - } - } - - Method [ public method getByKey ] { - - - Parameters [5] { - 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] { - Parameter #0 [ array $keys ] - Parameter #1 [ &$cas_tokens ] - Parameter #2 [ $flags ] - Parameter #3 [ &$udf_flags ] - } - } - - Method [ public method getMultiByKey ] { - - - Parameters [5] { - Parameter #0 [ $server_key ] - Parameter #1 [ array $keys ] - Parameter #2 [ &$cas_tokens ] - Parameter #3 [ $flags ] - Parameter #4 [ &$udf_flags ] - } - } - - Method [ public method getDelayed ] { - - - Parameters [3] { - Parameter #0 [ array $keys ] - Parameter #1 [ $with_cas ] - Parameter #2 [ $value_cb ] - } - } - - Method [ public method getDelayedByKey ] { - - - Parameters [4] { - Parameter #0 [ $server_key ] - Parameter #1 [ array $keys ] - Parameter #2 [ $with_cas ] - Parameter #3 [ $value_cb ] - } - } - - Method [ public method fetch ] { - - - Parameters [0] { - } - } - - Method [ public method fetchAll ] { - - - Parameters [0] { - } - } - - Method [ public method set ] { - - - Parameters [4] { - Parameter #0 [ $key ] - Parameter #1 [ $value ] - Parameter #2 [ $expiration ] - Parameter #3 [ $udf_flags ] - } - } - - Method [ public method setByKey ] { - - - Parameters [5] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $value ] - Parameter #3 [ $expiration ] - Parameter #4 [ $udf_flags ] - } - } - - Method [ public method touch ] { - - - Parameters [2] { - Parameter #0 [ $key ] - Parameter #1 [ $expiration ] - } - } - - Method [ public method touchByKey ] { - - - Parameters [3] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $expiration ] - } - } - - Method [ public method setMulti ] { - - - Parameters [3] { - Parameter #0 [ array $items ] - Parameter #1 [ $expiration ] - Parameter #2 [ $udf_flags ] - } - } - - Method [ public method setMultiByKey ] { - - - Parameters [4] { - Parameter #0 [ $server_key ] - Parameter #1 [ array $items ] - Parameter #2 [ $expiration ] - Parameter #3 [ $udf_flags ] - } - } - - Method [ public method cas ] { - - - Parameters [5] { - Parameter #0 [ $cas_token ] - Parameter #1 [ $key ] - Parameter #2 [ $value ] - Parameter #3 [ $expiration ] - Parameter #4 [ $udf_flags ] - } - } - - Method [ public method casByKey ] { - - - Parameters [6] { - 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] { - Parameter #0 [ $key ] - Parameter #1 [ $value ] - Parameter #2 [ $expiration ] - Parameter #3 [ $udf_flags ] - } - } - - Method [ public method addByKey ] { - - - Parameters [5] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $value ] - Parameter #3 [ $expiration ] - Parameter #4 [ $udf_flags ] - } - } - - Method [ public method append ] { - - - Parameters [3] { - Parameter #0 [ $key ] - Parameter #1 [ $value ] - Parameter #2 [ $expiration ] - } - } - - Method [ public method appendByKey ] { - - - Parameters [4] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $value ] - Parameter #3 [ $expiration ] - } - } - - Method [ public method prepend ] { - - - Parameters [3] { - Parameter #0 [ $key ] - Parameter #1 [ $value ] - Parameter #2 [ $expiration ] - } - } - - Method [ public method prependByKey ] { - - - Parameters [4] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $value ] - Parameter #3 [ $expiration ] - } - } - - Method [ public method replace ] { - - - Parameters [4] { - Parameter #0 [ $key ] - Parameter #1 [ $value ] - Parameter #2 [ $expiration ] - Parameter #3 [ $udf_flags ] - } - } - - Method [ public method replaceByKey ] { - - - Parameters [5] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $value ] - Parameter #3 [ $expiration ] - Parameter #4 [ $udf_flags ] - } - } - - Method [ public method delete ] { - - - Parameters [2] { - Parameter #0 [ $key ] - Parameter #1 [ $time ] - } - } - - Method [ public method deleteMulti ] { - - - Parameters [2] { - Parameter #0 [ $keys ] - Parameter #1 [ $time ] - } - } - - Method [ public method deleteByKey ] { - - - Parameters [3] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $time ] - } - } - - Method [ public method deleteMultiByKey ] { - - - Parameters [3] { - Parameter #0 [ $server_key ] - Parameter #1 [ $keys ] - Parameter #2 [ $time ] - } - } - - Method [ public method increment ] { - - - Parameters [4] { - Parameter #0 [ $key ] - Parameter #1 [ $offset ] - Parameter #2 [ $initial_value ] - Parameter #3 [ $expiry ] - } - } - - Method [ public method decrement ] { - - - Parameters [4] { - Parameter #0 [ $key ] - Parameter #1 [ $offset ] - Parameter #2 [ $initial_value ] - Parameter #3 [ $expiry ] - } - } - - Method [ public method incrementByKey ] { - - - Parameters [5] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $offset ] - Parameter #3 [ $initial_value ] - Parameter #4 [ $expiry ] - } - } - - Method [ public method decrementByKey ] { - - - Parameters [5] { - Parameter #0 [ $server_key ] - Parameter #1 [ $key ] - Parameter #2 [ $offset ] - Parameter #3 [ $initial_value ] - Parameter #4 [ $expiry ] - } - } - - Method [ public method addServer ] { - - - Parameters [3] { - Parameter #0 [ $host ] - Parameter #1 [ $port ] - Parameter #2 [ $weight ] - } - } - - Method [ public method addServers ] { - - - Parameters [1] { - Parameter #0 [ array $servers ] - } - } - - Method [ public method getServerList ] { - - - Parameters [0] { - } - } - - Method [ public method getServerByKey ] { - - - Parameters [1] { - Parameter #0 [ $server_key ] - } - } - - Method [ public method resetServerList ] { - - - Parameters [0] { - } - } - - Method [ public method quit ] { - - - Parameters [0] { - } - } - - Method [ public method flushBuffers ] { - - - Parameters [0] { - } - } - - Method [ public method getLastErrorMessage ] { - - - Parameters [0] { - } - } - - Method [ public method getLastErrorCode ] { - - - Parameters [0] { - } - } - - Method [ public method getLastErrorErrno ] { - - - Parameters [0] { - } - } - - Method [ public method getLastDisconnectedServer ] { - - - Parameters [0] { - } - } - - Method [ public method getStats ] { - - - Parameters [0] { - } - } - - Method [ public method getVersion ] { - - - Parameters [0] { - } - } - - Method [ public method getAllKeys ] { - - - Parameters [0] { - } - } - - Method [ public method flush ] { - - - Parameters [1] { - Parameter #0 [ $delay ] - } - } - - Method [ public method getOption ] { - - - Parameters [1] { - Parameter #0 [ $option ] - } - } - - Method [ public method setOption ] { - - - Parameters [2] { - Parameter #0 [ $option ] - Parameter #1 [ $value ] - } - } - - Method [ public method setOptions ] { - - - Parameters [1] { - Parameter #0 [ $options ] - } - } - - Method [ public method setBucket ] { - - - Parameters [3] { - Parameter #0 [ $host_map ] - Parameter #1 [ $forward_map ] - Parameter #2 [ $replicas ] - } - } - - Method [ public method setSaslAuthData ] { - - - Parameters [2] { - Parameter #0 [ $username ] - Parameter #1 [ $password ] - } - } - - Method [ public method isPersistent ] { - - - Parameters [0] { - } - } - - Method [ public method isPristine ] { - - - Parameters [0] { - } - } - } - } - - Class [ class MemcachedServer ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [2] { - Method [ public method run ] { - } - - Method [ public method on ] { - } - } - } - - Class [ class MemcachedException extends RuntimeException ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [4] { - Property [ protected $message ] - Property [ protected $code ] - Property [ protected $file ] - Property [ protected $line ] - } - - - Methods [9] { - Method [ public method __construct ] { - - - Parameters [3] { - Parameter #0 [ $message ] - Parameter #1 [ $code ] - Parameter #2 [ $previous ] - } - } - - Method [ final public method getMessage ] { - } - - Method [ final public method getCode ] { - } - - Method [ final public method getFile ] { - } - - Method [ final public method getLine ] { - } - - Method [ final public method getTrace ] { - } - - Method [ final public method getPrevious ] { - } - - Method [ final public method getTraceAsString ] { - } - - Method [ public method __toString ] { - } - } - } - } -} - -- cgit