From f05f3d190247ff38ce226e02c8a1e4603e2a79d4 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 7 Mar 2018 09:26:54 +0100 Subject: v2.1.1 --- REFLECTION | 48 ++++++++++++++++++++++++++++++++++++++++-------- php-pecl-swoole2.spec | 8 ++++++-- 2 files changed, 46 insertions(+), 10 deletions(-) diff --git a/REFLECTION b/REFLECTION index 232860d..052f31f 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #145 swoole version 2.1.0 ] { +Extension [ extension #144 swoole version 2.1.1 ] { - INI { Entry [ swoole.aio_thread_num ] @@ -21,7 +21,7 @@ Extension [ extension #145 swoole version 2.1.0 ] { } } - - Constants [119] { + - Constants [121] { Constant [ integer SWOOLE_BASE ] { 4 } Constant [ integer SWOOLE_THREAD ] { 2 } Constant [ integer SWOOLE_PROCESS ] { 3 } @@ -66,7 +66,7 @@ Extension [ extension #145 swoole version 2.1.0 ] { Constant [ integer SWOOLE_DTLSv1_CLIENT_METHOD ] { 17 } Constant [ integer SWOOLE_EVENT_READ ] { 512 } Constant [ integer SWOOLE_EVENT_WRITE ] { 1024 } - Constant [ string SWOOLE_VERSION ] { 2.1.0 } + Constant [ string SWOOLE_VERSION ] { 2.1.1 } Constant [ integer SWOOLE_ERROR_MALLOC_FAIL ] { 501 } Constant [ integer SWOOLE_ERROR_SYSTEM_CALL_FAIL ] { 502 } Constant [ integer SWOOLE_ERROR_PHP_FATAL_ERROR ] { 503 } @@ -95,6 +95,8 @@ Extension [ extension #145 swoole version 2.1.0 ] { Constant [ integer SWOOLE_ERROR_DATA_LENGTH_TOO_LARGE ] { 1202 } Constant [ integer SWOOLE_ERROR_TASK_PACKAGE_TOO_BIG ] { 2001 } Constant [ integer SWOOLE_ERROR_TASK_DISPATCH_FAIL ] { 2002 } + Constant [ integer SWOOLE_ERROR_AIO_BAD_REQUEST ] { 4001 } + Constant [ integer SWOOLE_ERROR_CLIENT_NO_CONNECTION ] { 5001 } Constant [ integer SWOOLE_ERROR_HTTP2_STREAM_ID_TOO_BIG ] { 3001 } Constant [ integer SWOOLE_ERROR_HTTP2_STREAM_NO_HEADER ] { 3002 } Constant [ integer SWOOLE_ERROR_SOCKS5_UNSUPPORT_VERSION ] { 7001 } @@ -298,6 +300,12 @@ Extension [ extension #145 swoole version 2.1.0 ] { Parameter #0 [ $func ] } } + Function [ function swoole_coroutine_exec ] { + + - Parameters [1] { + Parameter #0 [ $command ] + } + } Function [ function go ] { - Parameters [1] { @@ -1369,7 +1377,7 @@ Extension [ extension #145 swoole version 2.1.0 ] { Property [ public $setting ] } - - Methods [18] { + - Methods [19] { Method [ public method __construct ] { - Parameters [1] { @@ -1405,6 +1413,13 @@ Extension [ extension #145 swoole version 2.1.0 ] { } } + Method [ public method peek ] { + + - Parameters [1] { + Parameter #0 [ $length ] + } + } + Method [ public method send ] { - Parameters [2] { @@ -1498,11 +1513,12 @@ Extension [ extension #145 swoole version 2.1.0 ] { - Static methods [0] { } - - Properties [6] { + - Properties [7] { Property [ public $setting ] Property [ public $host ] Property [ public $port ] Property [ public $sock ] + Property [ public $connected ] Property [ public $errCode ] Property [ public $errMsg ] } @@ -2342,8 +2358,9 @@ Extension [ extension #145 swoole version 2.1.0 ] { - Methods [4] { Method [ public method execute ] { - - Parameters [1] { + - Parameters [2] { Parameter #0 [ $params ] + Parameter #1 [ $timeout ] } } @@ -2592,7 +2609,7 @@ Extension [ extension #145 swoole version 2.1.0 ] { - Static properties [0] { } - - Static methods [13] { + - Static methods [15] { Method [ static public method create ] { - Parameters [1] { @@ -2600,6 +2617,13 @@ Extension [ extension #145 swoole version 2.1.0 ] { } } + Method [ static public method exec ] { + + - Parameters [1] { + Parameter #0 [ $command ] + } + } + Method [ static public method set ] { - Parameters [1] { @@ -2648,6 +2672,13 @@ Extension [ extension #145 swoole version 2.1.0 ] { } } + Method [ static public method fgets ] { + + - Parameters [1] { + Parameter #0 [ $handle ] + } + } + Method [ static public method fwrite ] { - Parameters [3] { @@ -4790,7 +4821,8 @@ Extension [ extension #145 swoole version 2.1.0 ] { } } - - Properties [0] { + - Properties [1] { + Property [ public $capacity ] } - Methods [9] { diff --git a/php-pecl-swoole2.spec b/php-pecl-swoole2.spec index 84e4a6f..9d6bc04 100644 --- a/php-pecl-swoole2.spec +++ b/php-pecl-swoole2.spec @@ -34,12 +34,13 @@ Summary: PHP's asynchronous concurrent distributed networking framework Name: %{?sub_prefix}php-pecl-%{pecl_name}2 -Version: 2.1.0 +Version: 2.1.1 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz +BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel > 7 BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-sockets @@ -233,7 +234,7 @@ do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done -%if 0%{?fedora} < 24 +%if 0%{?fedora} < 24 && 0%{?rhel} < 8 # when pear installed alone, after us %triggerin -- %{?scl_prefix}php-pear if [ -x %{__pecl} ] ; then @@ -300,6 +301,9 @@ cd ../ZTS %changelog +* Wed Mar 7 2018 Remi Collet - 2.1.1-1 +- update to 2.1.1 + * Fri Feb 9 2018 Remi Collet - 2.1.0-1 - Update to 2.1.0 - add swoole.use_shortname option in provided configuration -- cgit