diff options
-rw-r--r-- | PHPINFO | 2 | ||||
-rw-r--r-- | REFLECTION | 346 | ||||
-rw-r--r-- | php-pecl-memcached.spec | 9 |
3 files changed, 232 insertions, 125 deletions
@@ -3,7 +3,7 @@ memcached memcached support => enabled Version => 3.1.5 -libmemcached-awesome version => 1.1.0 +libmemcached-awesome version => 1.1.1 SASL support => yes Session support => yes igbinary support => yes @@ -1,9 +1,10 @@ -Extension [ <persistent> extension #116 memcached version 3.1.5 ] { +Extension [ <persistent> extension #113 memcached version 3.1.5 ] { - Dependencies { Dependency [ session (Required) ] Dependency [ igbinary (Required) ] Dependency [ msgpack (Required) ] + Dependency [ spl (Required) ] } - INI { @@ -94,7 +95,7 @@ Extension [ <persistent> extension #116 memcached version 3.1.5 ] { Class [ <internal:memcached> class Memcached ] { - Constants [133] { - Constant [ public int LIBMEMCACHED_VERSION_HEX ] { 16781312 } + Constant [ public int LIBMEMCACHED_VERSION_HEX ] { 16781313 } Constant [ public int OPT_COMPRESSION ] { -1001 } Constant [ public int OPT_COMPRESSION_TYPE ] { -1004 } Constant [ public int OPT_PREFIX_KEY ] { -1002 } @@ -241,9 +242,10 @@ Extension [ <persistent> extension #116 memcached version 3.1.5 ] { - Methods [58] { Method [ <internal:memcached, ctor> public method __construct ] { - - Parameters [2] { - Parameter #0 [ <optional> $persistent_id ] - Parameter #1 [ <optional> $callback ] + - Parameters [3] { + Parameter #0 [ <optional> ?string $persistent_id = null ] + Parameter #1 [ <optional> ?callable $callback = null ] + Parameter #2 [ <optional> ?string $connection_str = null ] } } @@ -251,310 +253,345 @@ Extension [ <persistent> extension #116 memcached version 3.1.5 ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:memcached> public method getResultMessage ] { - Parameters [0] { } + - Return [ string ] } Method [ <internal:memcached> public method get ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <optional> $cache_cb ] - Parameter #2 [ <optional> $get_flags ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> ?callable $cache_cb = null ] + Parameter #2 [ <optional> int $get_flags = 0 ] } + - Return [ mixed ] } Method [ <internal:memcached> public method getByKey ] { - Parameters [4] { - Parameter #0 [ <required> $server_key ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <optional> $cache_cb ] - Parameter #3 [ <optional> $get_flags ] + Parameter #0 [ <required> string $server_key ] + Parameter #1 [ <required> string $key ] + Parameter #2 [ <optional> ?callable $cache_cb = null ] + Parameter #3 [ <optional> int $get_flags = 0 ] } + - Return [ mixed ] } Method [ <internal:memcached> public method getMulti ] { - Parameters [2] { Parameter #0 [ <required> array $keys ] - Parameter #1 [ <optional> $get_flags ] + Parameter #1 [ <optional> int $get_flags = 0 ] } + - Return [ array|false ] } Method [ <internal:memcached> public method getMultiByKey ] { - Parameters [3] { - Parameter #0 [ <required> $server_key ] + Parameter #0 [ <required> string $server_key ] Parameter #1 [ <required> array $keys ] - Parameter #2 [ <optional> $get_flags ] + Parameter #2 [ <optional> int $get_flags = 0 ] } + - Return [ array|false ] } Method [ <internal:memcached> public method getDelayed ] { - Parameters [3] { Parameter #0 [ <required> array $keys ] - Parameter #1 [ <optional> $with_cas ] - Parameter #2 [ <optional> $value_cb ] + Parameter #1 [ <optional> bool $with_cas = false ] + Parameter #2 [ <optional> ?callable $value_cb = null ] } + - Return [ bool ] } Method [ <internal:memcached> public method getDelayedByKey ] { - Parameters [4] { - Parameter #0 [ <required> $server_key ] + Parameter #0 [ <required> string $server_key ] Parameter #1 [ <required> array $keys ] - Parameter #2 [ <optional> $with_cas ] - Parameter #3 [ <optional> $value_cb ] + Parameter #2 [ <optional> bool $with_cas = false ] + Parameter #3 [ <optional> ?callable $value_cb = null ] } + - Return [ bool ] } Method [ <internal:memcached> public method fetch ] { - Parameters [0] { } + - Return [ array|false ] } Method [ <internal:memcached> public method fetchAll ] { - Parameters [0] { } + - Return [ array|false ] } Method [ <internal:memcached> public method set ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] - Parameter #2 [ <optional> $expiration ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $value ] + Parameter #2 [ <optional> int $expiration = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method setByKey ] { - Parameters [4] { - Parameter #0 [ <required> $server_key ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <required> $value ] - Parameter #3 [ <optional> $expiration ] + Parameter #0 [ <required> string $server_key ] + Parameter #1 [ <required> string $key ] + Parameter #2 [ <required> mixed $value ] + Parameter #3 [ <optional> int $expiration = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method touch ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $expiration ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> int $expiration = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method touchByKey ] { - Parameters [3] { - Parameter #0 [ <required> $server_key ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <required> $expiration ] + Parameter #0 [ <required> string $server_key ] + Parameter #1 [ <required> string $key ] + Parameter #2 [ <optional> int $expiration = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method setMulti ] { - Parameters [2] { Parameter #0 [ <required> array $items ] - Parameter #1 [ <optional> $expiration ] + Parameter #1 [ <optional> int $expiration = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method setMultiByKey ] { - Parameters [3] { - Parameter #0 [ <required> $server_key ] + Parameter #0 [ <required> string $server_key ] Parameter #1 [ <required> array $items ] - Parameter #2 [ <optional> $expiration ] + Parameter #2 [ <optional> int $expiration = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method cas ] { - Parameters [4] { - Parameter #0 [ <required> $cas_token ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <required> $value ] - Parameter #3 [ <optional> $expiration ] + Parameter #0 [ <required> string $cas_token ] + Parameter #1 [ <required> string $key ] + Parameter #2 [ <required> mixed $value ] + Parameter #3 [ <optional> int $expiration = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method casByKey ] { - Parameters [5] { - Parameter #0 [ <required> $cas_token ] - Parameter #1 [ <required> $server_key ] - Parameter #2 [ <required> $key ] - Parameter #3 [ <required> $value ] - Parameter #4 [ <optional> $expiration ] + Parameter #0 [ <required> string $cas_token ] + Parameter #1 [ <required> string $server_key ] + Parameter #2 [ <required> string $key ] + Parameter #3 [ <required> mixed $value ] + Parameter #4 [ <optional> int $expiration = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method add ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] - Parameter #2 [ <optional> $expiration ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $value ] + Parameter #2 [ <optional> int $expiration = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method addByKey ] { - Parameters [4] { - Parameter #0 [ <required> $server_key ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <required> $value ] - Parameter #3 [ <optional> $expiration ] + Parameter #0 [ <required> string $server_key ] + Parameter #1 [ <required> string $key ] + Parameter #2 [ <required> mixed $value ] + Parameter #3 [ <optional> int $expiration = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method append ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $value ] } + - Return [ ?bool ] } Method [ <internal:memcached> public method appendByKey ] { - Parameters [3] { - Parameter #0 [ <required> $server_key ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <required> $value ] + Parameter #0 [ <required> string $server_key ] + Parameter #1 [ <required> string $key ] + Parameter #2 [ <required> string $value ] } + - Return [ ?bool ] } Method [ <internal:memcached> public method prepend ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $value ] } + - Return [ ?bool ] } Method [ <internal:memcached> public method prependByKey ] { - Parameters [3] { - Parameter #0 [ <required> $server_key ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <required> $value ] + Parameter #0 [ <required> string $server_key ] + Parameter #1 [ <required> string $key ] + Parameter #2 [ <required> string $value ] } + - Return [ ?bool ] } Method [ <internal:memcached> public method replace ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] - Parameter #2 [ <optional> $expiration ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $value ] + Parameter #2 [ <optional> int $expiration = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method replaceByKey ] { - Parameters [4] { - Parameter #0 [ <required> $server_key ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <required> $value ] - Parameter #3 [ <optional> $expiration ] + Parameter #0 [ <required> string $server_key ] + Parameter #1 [ <required> string $key ] + Parameter #2 [ <required> mixed $value ] + Parameter #3 [ <optional> int $expiration = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method delete ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <optional> $time ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> int $time = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method deleteMulti ] { - Parameters [2] { - Parameter #0 [ <required> $keys ] - Parameter #1 [ <optional> $time ] + Parameter #0 [ <required> array $keys ] + Parameter #1 [ <optional> int $time = 0 ] } + - Return [ array ] } Method [ <internal:memcached> public method deleteByKey ] { - Parameters [3] { - Parameter #0 [ <required> $server_key ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <optional> $time ] + Parameter #0 [ <required> string $server_key ] + Parameter #1 [ <required> string $key ] + Parameter #2 [ <optional> int $time = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method deleteMultiByKey ] { - Parameters [3] { - Parameter #0 [ <required> $server_key ] - Parameter #1 [ <required> $keys ] - Parameter #2 [ <optional> $time ] + Parameter #0 [ <required> string $server_key ] + Parameter #1 [ <required> array $keys ] + Parameter #2 [ <optional> int $time = 0 ] } + - Return [ array ] } Method [ <internal:memcached> public method increment ] { - Parameters [4] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <optional> $offset ] - Parameter #2 [ <optional> $initial_value ] - Parameter #3 [ <optional> $expiry ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> int $offset = 1 ] + Parameter #2 [ <optional> int $initial_value = 0 ] + Parameter #3 [ <optional> int $expiry = 0 ] } + - Return [ int|false ] } Method [ <internal:memcached> public method decrement ] { - Parameters [4] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <optional> $offset ] - Parameter #2 [ <optional> $initial_value ] - Parameter #3 [ <optional> $expiry ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> int $offset = 1 ] + Parameter #2 [ <optional> int $initial_value = 0 ] + Parameter #3 [ <optional> int $expiry = 0 ] } + - Return [ int|false ] } Method [ <internal:memcached> public method incrementByKey ] { - Parameters [5] { - Parameter #0 [ <required> $server_key ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <optional> $offset ] - Parameter #3 [ <optional> $initial_value ] - Parameter #4 [ <optional> $expiry ] + Parameter #0 [ <required> string $server_key ] + Parameter #1 [ <required> string $key ] + Parameter #2 [ <optional> int $offset = 1 ] + Parameter #3 [ <optional> int $initial_value = 0 ] + Parameter #4 [ <optional> int $expiry = 0 ] } + - Return [ int|false ] } Method [ <internal:memcached> public method decrementByKey ] { - Parameters [5] { - Parameter #0 [ <required> $server_key ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <optional> $offset ] - Parameter #3 [ <optional> $initial_value ] - Parameter #4 [ <optional> $expiry ] + Parameter #0 [ <required> string $server_key ] + Parameter #1 [ <required> string $key ] + Parameter #2 [ <optional> int $offset = 1 ] + Parameter #3 [ <optional> int $initial_value = 0 ] + Parameter #4 [ <optional> int $expiry = 0 ] } + - Return [ int|false ] } Method [ <internal:memcached> public method addServer ] { - Parameters [3] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <optional> $weight ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <optional> int $weight = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method addServers ] { @@ -562,145 +599,167 @@ Extension [ <persistent> extension #116 memcached version 3.1.5 ] { - Parameters [1] { Parameter #0 [ <required> array $servers ] } + - Return [ bool ] } Method [ <internal:memcached> public method getServerList ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:memcached> public method getServerByKey ] { - Parameters [1] { - Parameter #0 [ <required> $server_key ] + Parameter #0 [ <required> string $server_key ] } + - Return [ array|false ] } Method [ <internal:memcached> public method resetServerList ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:memcached> public method quit ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:memcached> public method flushBuffers ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:memcached> public method getLastErrorMessage ] { - Parameters [0] { } + - Return [ string ] } Method [ <internal:memcached> public method getLastErrorCode ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:memcached> public method getLastErrorErrno ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:memcached> public method getLastDisconnectedServer ] { - Parameters [0] { } + - Return [ array|false ] } Method [ <internal:memcached> public method getStats ] { - Parameters [1] { - Parameter #0 [ <optional> $type ] + Parameter #0 [ <optional> ?string $type = null ] } + - Return [ array|false ] } Method [ <internal:memcached> public method getVersion ] { - Parameters [0] { } + - Return [ array|false ] } Method [ <internal:memcached> public method getAllKeys ] { - Parameters [0] { } + - Return [ array|false ] } Method [ <internal:memcached> public method flush ] { - Parameters [1] { - Parameter #0 [ <optional> $delay ] + Parameter #0 [ <optional> int $delay = 0 ] } + - Return [ bool ] } Method [ <internal:memcached> public method getOption ] { - Parameters [1] { - Parameter #0 [ <required> $option ] + Parameter #0 [ <required> int $option ] } + - Return [ mixed ] } Method [ <internal:memcached> public method setOption ] { - Parameters [2] { - Parameter #0 [ <required> $option ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> int $option ] + Parameter #1 [ <required> mixed $value ] } + - Return [ bool ] } Method [ <internal:memcached> public method setOptions ] { - Parameters [1] { - Parameter #0 [ <required> $options ] + Parameter #0 [ <required> array $options ] } + - Return [ bool ] } Method [ <internal:memcached> public method setBucket ] { - Parameters [3] { - Parameter #0 [ <required> $host_map ] - Parameter #1 [ <required> $forward_map ] - Parameter #2 [ <required> $replicas ] + Parameter #0 [ <required> array $host_map ] + Parameter #1 [ <required> ?array $forward_map ] + Parameter #2 [ <required> int $replicas ] } + - Return [ bool ] } Method [ <internal:memcached> public method setSaslAuthData ] { - Parameters [2] { - Parameter #0 [ <required> $username ] - Parameter #1 [ <required> $password ] + Parameter #0 [ <required> string $username ] + Parameter #1 [ <required> string $password ] } + - Return [ bool ] } Method [ <internal:memcached> public method setEncodingKey ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ bool ] } Method [ <internal:memcached> public method isPersistent ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:memcached> public method isPristine ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -721,14 +780,25 @@ Extension [ <persistent> extension #116 memcached version 3.1.5 ] { - Methods [2] { Method [ <internal:memcached> public method run ] { + + - Parameters [1] { + Parameter #0 [ <required> string $address ] + } + - Return [ bool ] } Method [ <internal:memcached> public method on ] { + + - Parameters [2] { + Parameter #0 [ <required> int $event ] + Parameter #1 [ <required> callable $callback ] + } + - Return [ bool ] } } } - Class [ <internal:memcached> class MemcachedException extends Exception implements Throwable ] { + Class [ <internal:memcached> class MemcachedException extends RuntimeException implements Stringable, Throwable ] { - Constants [0] { } @@ -740,47 +810,81 @@ Extension [ <persistent> extension #116 memcached version 3.1.5 ] { } - Properties [4] { - Property [ <default> protected $message ] - Property [ <default> protected $code ] - Property [ <default> protected $file ] - Property [ <default> protected $line ] + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected $file = NULL ] + Property [ protected $line = NULL ] } - Methods [10] { Method [ <internal:Core, inherits Exception, ctor> public method __construct ] { - Parameters [3] { - Parameter #0 [ <optional> $message ] - Parameter #1 [ <optional> $code ] - Parameter #2 [ <optional> $previous ] + Parameter #0 [ <optional> string $message = "" ] + Parameter #1 [ <optional> int $code = 0 ] + Parameter #2 [ <optional> ?Throwable $previous = null ] } } Method [ <internal:Core, inherits Exception> public method __wakeup ] { + + - Parameters [0] { + } } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] { + + - Parameters [0] { + } } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] } Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] } - Method [ <internal:Core, inherits Exception, prototype Throwable> public method __toString ] { + Method [ <internal:Core, inherits Exception, prototype Stringable> public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] } } } diff --git a/php-pecl-memcached.spec b/php-pecl-memcached.spec index 38c0f35..ba83ab9 100644 --- a/php-pecl-memcached.spec +++ b/php-pecl-memcached.spec @@ -3,7 +3,7 @@ # # Fedora spec file for php-pecl-memcached # -# Copyright (c) 2009-2021 Remi Collet +# Copyright (c) 2009-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -33,7 +33,7 @@ Summary: Extension to work with the Memcached caching daemon Name: %{?sub_prefix}php-pecl-memcached Version: 3.1.5 -Release: 12%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 13%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: PHP URL: https://pecl.php.net/package/%{pecl_name} @@ -53,7 +53,7 @@ Patch10: https://patch-diff.githubusercontent.com/raw/php-memcached-dev/php Patch11: https://patch-diff.githubusercontent.com/raw/php-memcached-dev/php-memcached/pull/474.patch BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-devel >= 7 +BuildRequires: %{?scl_prefix}php-devel >= 7.0 BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-json %if %{with igbinary} @@ -386,6 +386,9 @@ exit $ret %changelog +* Fri Feb 25 2022 Remi Collet <remi@remirepo.net> - 3.1.5-13 +- rebuild using remi-libmemcached-awesome + * Fri Nov 5 2021 Remi Collet <remi@remirepo.net> - 3.1.5-12 - add patch for MemcachedServer from https://github.com/php-memcached-dev/php-memcached/pull/474 |