From 2f254d4583b61a51482ce8d8b53bd09ea144cd3f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 20 Dec 2021 07:21:08 +0100 Subject: update to 2.2.1 --- PHPINFO | 2 +- REFLECTION | 63 ++++++++++++++++++++++++++++++++++++------------------- php-pecl-yar.spec | 14 +++++++------ 3 files changed, 50 insertions(+), 29 deletions(-) diff --git a/PHPINFO b/PHPINFO index b17dbe6..8667a7e 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,7 +2,7 @@ yar yar support => enabled -Version => 2.2.0 +Version => 2.2.1 Directive => Local Value => Master Value yar.packager => msgpack => msgpack diff --git a/REFLECTION b/REFLECTION index 7e9076c..40a6613 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #120 yar version 2.2.0 ] { +Extension [ extension #120 yar version 2.2.1 ] { - Dependencies { Dependency [ json (Required) ] @@ -29,14 +29,15 @@ Extension [ extension #120 yar version 2.2.0 ] { } } - - Constants [20] { - Constant [ string YAR_VERSION ] { 2.2.0 } + - Constants [21] { + Constant [ string YAR_VERSION ] { 2.2.1 } Constant [ int YAR_OPT_PACKAGER ] { 1 } Constant [ int YAR_OPT_PERSISTENT ] { 2 } Constant [ int YAR_OPT_TIMEOUT ] { 4 } Constant [ int YAR_OPT_CONNECT_TIMEOUT ] { 8 } Constant [ int YAR_OPT_HEADER ] { 16 } Constant [ int YAR_OPT_RESOLVE ] { 32 } + Constant [ int YAR_OPT_PROXY ] { 64 } Constant [ int YAR_CLIENT_PROTOCOL_HTTP ] { 1 } Constant [ int YAR_CLIENT_PROTOCOL_TCP ] { 2 } Constant [ int YAR_CLIENT_PROTOCOL_UNIX ] { 4 } @@ -71,9 +72,8 @@ Extension [ extension #120 yar version 2.2.0 ] { - Methods [2] { Method [ final public method __construct ] { - - Parameters [2] { - Parameter #0 [ $obj ] - Parameter #1 [ $protocol = ] + - Parameters [1] { + Parameter #0 [ object $executor ] } } @@ -81,6 +81,7 @@ Extension [ extension #120 yar version 2.2.0 ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -107,40 +108,44 @@ Extension [ extension #120 yar version 2.2.0 ] { Method [ final public method __construct ] { - Parameters [2] { - Parameter #0 [ $url ] - Parameter #1 [ $async = ] + Parameter #0 [ string $uri ] + Parameter #1 [ array $options = NULL ] } } Method [ public method call ] { - Parameters [2] { - Parameter #0 [ $method ] - Parameter #1 [ $parameters ] + Parameter #0 [ string $method ] + Parameter #1 [ array $arguments ] } + - Return [ mixed ] } Method [ public method __call ] { - Parameters [2] { - Parameter #0 [ $method ] - Parameter #1 [ $parameters ] + Parameter #0 [ string $method ] + Parameter #1 [ array $arguments ] } + - Return [ mixed ] } Method [ public method getOpt ] { - Parameters [1] { - Parameter #0 [ $type ] + Parameter #0 [ int $type ] } + - Return [ mixed ] } Method [ public method setOpt ] { - Parameters [2] { - Parameter #0 [ $type ] - Parameter #1 [ $value ] + Parameter #0 [ int $type ] + Parameter #1 [ mixed $value ] } + - Return [ Yar_Client|bool ] } } } @@ -160,26 +165,31 @@ Extension [ extension #120 yar version 2.2.0 ] { - Static methods [3] { Method [ static public method call ] { - - Parameters [4] { - Parameter #0 [ $uri ] - Parameter #1 [ $method ] - Parameter #2 [ $parameters ] - Parameter #3 [ $callback = ] + - Parameters [6] { + Parameter #0 [ string $uri ] + Parameter #1 [ string $method ] + Parameter #2 [ array $arguments = NULL ] + Parameter #3 [ callable $callback = NULL ] + Parameter #4 [ callable $error_callback = NULL ] + Parameter #5 [ array $options = NULL ] } + - Return [ int|bool|null ] } Method [ static public method loop ] { - Parameters [2] { - Parameter #0 [ $callback = ] - Parameter #1 [ $error_callback = ] + Parameter #0 [ callable $callback = NULL ] + Parameter #1 [ callable $error_callback = NULL ] } + - Return [ ?bool ] } Method [ static public method reset ] { - Parameters [0] { } + - Return [ bool ] } } @@ -214,6 +224,7 @@ Extension [ extension #120 yar version 2.2.0 ] { - Parameters [0] { } + - Return [ string|int ] } Method [ public method __construct ] { @@ -311,6 +322,7 @@ Extension [ extension #120 yar version 2.2.0 ] { - Parameters [0] { } + - Return [ string|int ] } Method [ public method __construct ] { @@ -408,6 +420,7 @@ Extension [ extension #120 yar version 2.2.0 ] { - Parameters [0] { } + - Return [ string|int ] } Method [ public method __construct ] { @@ -505,6 +518,7 @@ Extension [ extension #120 yar version 2.2.0 ] { - Parameters [0] { } + - Return [ string|int ] } Method [ public method __construct ] { @@ -602,6 +616,7 @@ Extension [ extension #120 yar version 2.2.0 ] { - Parameters [0] { } + - Return [ string|int ] } Method [ public method __construct ] { @@ -699,6 +714,7 @@ Extension [ extension #120 yar version 2.2.0 ] { - Parameters [0] { } + - Return [ string ] } Method [ public method __construct ] { @@ -796,6 +812,7 @@ Extension [ extension #120 yar version 2.2.0 ] { - Parameters [0] { } + - Return [ string ] } Method [ public method __construct ] { @@ -893,6 +910,7 @@ Extension [ extension #120 yar version 2.2.0 ] { - Parameters [0] { } + - Return [ string ] } Method [ public method __construct ] { @@ -990,6 +1008,7 @@ Extension [ extension #120 yar version 2.2.0 ] { - Parameters [0] { } + - Return [ string ] } Method [ public method __construct ] { diff --git a/php-pecl-yar.spec b/php-pecl-yar.spec index 7aedc98..3a00c7c 100644 --- a/php-pecl-yar.spec +++ b/php-pecl-yar.spec @@ -25,7 +25,7 @@ Summary: Light, concurrent RPC framework Name: %{?sub_prefix}php-pecl-%{pecl_name} -Version: 2.2.0 +Version: 2.2.1 %if 0%{?gh_date:1} Release: 0.14.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pecl_name}-%{version}-%{gh_short}.tar.gz @@ -62,15 +62,15 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{rele %if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} # Other third party repo stuff -%if "%{php_version}" > "7.3" -Obsoletes: php73-pecl-%{pecl_name} <= %{version} -%endif %if "%{php_version}" > "7.4" Obsoletes: php74-pecl-%{pecl_name} <= %{version} %endif %if "%{php_version}" > "8.0" Obsoletes: php80-pecl-%{pecl_name} <= %{version} %endif +%if "%{php_version}" > "8.1" +Obsoletes: php81-pecl-%{pecl_name} <= %{version} +%endif %endif @@ -227,12 +227,11 @@ cd NTS : Create test configuration export TEST_PHP_EXECUTABLE=%{__php} export TEST_PHP_ARGS="$DEPS -d extension=$PWD/modules/%{pecl_name}.so" -export NO_INTERACTION=1 export REPORT_EXIT_STATUS=1 export YAR_API_PORT=$(%{__php} -r 'echo 8960 + PHP_MAJOR_VERSION*100 + PHP_MINOR_VERSION*10 + PHP_INT_SIZE + 0%{?scl:1};') : Run the upstream test suite -%{__php} -n run-tests.php --show-diff +%{__php} -n run-tests.php -q --show-diff %else : upstream test suite disabled %endif @@ -255,6 +254,9 @@ export YAR_API_PORT=$(%{__php} -r 'echo 8960 + PHP_MAJOR_VERSION*100 + PHP_MINOR %changelog +* Mon Dec 20 2021 Remi Collet - 2.2.1-1 +- update to 2.2.1 + * Tue Jan 5 2021 Remi Collet - 2.2.0-1 - update to 2.2.0 -- cgit