From bf95996dca9b743092547ef1424769529b03705c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 20 Dec 2018 14:44:34 +0100 Subject: v4.2.0 --- PHPINFO | 3 +- REFLECTION | 319 ++++++++++++++++++++++---------------------------- php-pecl-swoole4.spec | 10 +- 3 files changed, 149 insertions(+), 183 deletions(-) diff --git a/PHPINFO b/PHPINFO index affa40c..94c7d43 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,7 +2,7 @@ swoole swoole support => enabled -Version => 4.2.9 +Version => 4.2.10 Author => Swoole Group[email: team@swoole.com] coroutine => enabled trace_log => enabled @@ -29,7 +29,6 @@ Directive => Local Value => Master Value swoole.enable_coroutine => On => On swoole.aio_thread_num => 2 => 2 swoole.display_errors => On => On -swoole.use_namespace => On => On swoole.use_shortname => On => On swoole.fast_serialize => Off => Off swoole.unixsock_buffer_size => 8388608 => 8388608 diff --git a/REFLECTION b/REFLECTION index ab15450..184664b 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #150 swoole version 4.2.9 ] { +Extension [ extension #149 swoole version 4.2.10 ] { - INI { Entry [ swoole.enable_coroutine ] @@ -10,9 +10,6 @@ Extension [ extension #150 swoole version 4.2.9 ] { Entry [ swoole.display_errors ] Current = 'On' } - Entry [ swoole.use_namespace ] - Current = 'On' - } Entry [ swoole.use_shortname ] Current = 'On' } @@ -24,7 +21,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } - - Constants [233] { + - Constants [247] { Constant [ integer SWOOLE_BASE ] { 1 } Constant [ integer SWOOLE_PROCESS ] { 2 } Constant [ integer SWOOLE_IPC_UNSOCK ] { 1 } @@ -68,7 +65,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { Constant [ integer SWOOLE_DTLSv1_CLIENT_METHOD ] { 17 } Constant [ integer SWOOLE_EVENT_READ ] { 512 } Constant [ integer SWOOLE_EVENT_WRITE ] { 1024 } - Constant [ string SWOOLE_VERSION ] { 4.2.9 } + Constant [ string SWOOLE_VERSION ] { 4.2.10 } Constant [ integer SWOOLE_ERROR_MALLOC_FAIL ] { 501 } Constant [ integer SWOOLE_ERROR_SYSTEM_CALL_FAIL ] { 502 } Constant [ integer SWOOLE_ERROR_PHP_FATAL_ERROR ] { 503 } @@ -159,6 +156,9 @@ Extension [ extension #150 swoole version 4.2.9 ] { Constant [ integer SWOOLE_TRACE_AIO ] { 262144 } Constant [ integer SWOOLE_TRACE_SSL ] { 524288 } Constant [ integer SWOOLE_TRACE_NORMAL ] { 1048576 } + Constant [ integer SWOOLE_TRACE_CHANNEL ] { 2097152 } + Constant [ integer SWOOLE_TRACE_TIMER ] { 4194304 } + Constant [ integer SWOOLE_TRACE_SOCKET ] { 8388608 } Constant [ integer SWOOLE_TRACE_ALL ] { 4294967295 } Constant [ integer SWOOLE_LOG_DEBUG ] { 0 } Constant [ integer SWOOLE_LOG_TRACE ] { 1 } @@ -177,9 +177,20 @@ Extension [ extension #150 swoole version 4.2.9 ] { Constant [ integer SWOOLE_REDIS_TYPE_LIST ] { 3 } Constant [ integer SWOOLE_REDIS_TYPE_ZSET ] { 4 } Constant [ integer SWOOLE_REDIS_TYPE_HASH ] { 5 } + Constant [ integer SWOOLE_REDIS_ERR_IO ] { 1 } + Constant [ integer SWOOLE_REDIS_ERR_OTHER ] { 2 } + Constant [ integer SWOOLE_REDIS_ERR_EOF ] { 3 } + Constant [ integer SWOOLE_REDIS_ERR_PROTOCOL ] { 4 } + Constant [ integer SWOOLE_REDIS_ERR_OOM ] { 5 } + Constant [ integer SWOOLE_REDIS_ERR_CLOSED ] { 6 } + Constant [ integer SWOOLE_REDIS_ERR_NOAUTH ] { 7 } + Constant [ integer SWOOLE_REDIS_ERR_ALLOC ] { 8 } Constant [ integer SW_PGSQL_ASSOC ] { 1 } Constant [ integer SW_PGSQL_NUM ] { 2 } Constant [ integer SW_PGSQL_BOTH ] { 3 } + Constant [ integer SWOOLE_HTTP_CLIENT_ESTATUS_CONNECT_FAILED ] { -1 } + Constant [ integer SWOOLE_HTTP_CLIENT_ESTATUS_REQUEST_TIMEOUT ] { -2 } + Constant [ integer SWOOLE_HTTP_CLIENT_ESTATUS_SERVER_RESET ] { -3 } Constant [ integer SWOOLE_DEFAULT_MAX_CORO_NUM ] { 3000 } Constant [ integer SWOOLE_MAX_CORO_NUM_LIMIT ] { 9223372036854775807 } Constant [ integer SWOOLE_MAX_CORO_NESTING_LEVEL ] { 128 } @@ -418,8 +429,9 @@ Extension [ extension #150 swoole version 4.2.9 ] { } Function [ function swoole_async_dns_lookup_coro ] { - - Parameters [1] { + - Parameters [2] { Parameter #0 [ $domain_name ] + Parameter #1 [ $timeout ] } } Function [ function swoole_coroutine_create ] { @@ -531,23 +543,23 @@ Extension [ extension #150 swoole version 4.2.9 ] { } - Properties [29] { - Property [ public $onConnect ] - Property [ public $onReceive ] - Property [ public $onClose ] - Property [ public $onPacket ] - Property [ public $onBufferFull ] - Property [ public $onBufferEmpty ] - Property [ public $onStart ] - Property [ public $onShutdown ] - Property [ public $onWorkerStart ] - Property [ public $onWorkerStop ] - Property [ public $onWorkerExit ] - Property [ public $onWorkerError ] - Property [ public $onTask ] - Property [ public $onFinish ] - Property [ public $onManagerStart ] - Property [ public $onManagerStop ] - Property [ public $onPipeMessage ] + Property [ private $onConnect ] + Property [ private $onReceive ] + Property [ private $onClose ] + Property [ private $onPacket ] + Property [ private $onBufferFull ] + Property [ private $onBufferEmpty ] + Property [ private $onStart ] + Property [ private $onShutdown ] + Property [ private $onWorkerStart ] + Property [ private $onWorkerStop ] + Property [ private $onWorkerExit ] + Property [ private $onWorkerError ] + Property [ private $onTask ] + Property [ private $onFinish ] + Property [ private $onManagerStart ] + Property [ private $onManagerStop ] + Property [ private $onPipeMessage ] Property [ public $setting ] Property [ public $connections ] Property [ public $host ] @@ -1057,8 +1069,9 @@ Extension [ extension #150 swoole version 4.2.9 ] { Method [ static public method dnsLookupCoro ] { - - Parameters [1] { + - Parameters [2] { Parameter #0 [ $domain_name ] + Parameter #1 [ $timeout ] } } @@ -1495,7 +1508,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } - Class [ final class Swoole\Coroutine\Socket ] { + Class [ class Swoole\Coroutine\Socket ] { - Constants [0] { } @@ -1610,7 +1623,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } - Class [ class Swoole\Coroutine\Socket\Exception extends Exception implements Throwable ] { + Class [ class Swoole\Coroutine\Socket\Exception extends Swoole\Exception implements Throwable ] { - Constants [0] { } @@ -1830,17 +1843,18 @@ Extension [ extension #150 swoole version 4.2.9 ] { - Static methods [0] { } - - Properties [7] { - Property [ public $setting ] + - Properties [8] { Property [ public $host ] Property [ public $port ] + Property [ public $setting ] Property [ public $sock ] Property [ public $connected ] + Property [ public $errType ] Property [ public $errCode ] Property [ public $errMsg ] } - - Methods [155] { + - Methods [156] { Method [ public method __construct ] { - Parameters [1] { @@ -1858,11 +1872,18 @@ Extension [ extension #150 swoole version 4.2.9 ] { - Parameters [3] { Parameter #0 [ $host ] - Parameter #1 [ $port ] + Parameter #1 [ $port ] Parameter #2 [ $serialize ] } } + Method [ public method setOptions ] { + + - Parameters [1] { + Parameter #0 [ $options ] + } + } + Method [ public method setDefer ] { } @@ -3186,7 +3207,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { } - Properties [9] { - Property [ private $serverInfo ] + Property [ public $serverInfo ] Property [ public $sock ] Property [ public $connected ] Property [ public $connect_error ] @@ -3348,7 +3369,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } - Class [ class Swoole\Coroutine\MySQL\Exception extends Exception implements Throwable ] { + Class [ class Swoole\Coroutine\MySQL\Exception extends Swoole\Exception implements Throwable ] { - Constants [0] { } @@ -3416,13 +3437,14 @@ Extension [ extension #150 swoole version 4.2.9 ] { - Static methods [0] { } - - Properties [17] { + - Properties [18] { Property [ public $errCode ] - Property [ public $type ] - Property [ public $setting ] + Property [ public $errMsg ] Property [ public $connected ] Property [ public $host ] Property [ public $port ] + Property [ public $ssl ] + Property [ public $setting ] Property [ public $requestMethod ] Property [ public $requestHeaders ] Property [ public $requestBody ] @@ -3436,7 +3458,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { Property [ public $body ] } - - Methods [20] { + - Methods [19] { Method [ public method __construct ] { - Parameters [3] { @@ -3459,6 +3481,19 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } + Method [ public method getDefer ] { + + - Parameters [0] { + } + } + + Method [ public method setDefer ] { + + - Parameters [1] { + Parameter #0 [ $defer ] + } + } + Method [ public method setMethod ] { - Parameters [1] { @@ -3547,31 +3582,6 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } - Method [ public method isConnected ] { - - - Parameters [0] { - } - } - - Method [ public method close ] { - - - Parameters [0] { - } - } - - Method [ public method setDefer ] { - - - Parameters [1] { - Parameter #0 [ $defer ] - } - } - - Method [ public method getDefer ] { - - - Parameters [0] { - } - } - Method [ public method recv ] { - Parameters [1] { @@ -3587,6 +3597,12 @@ Extension [ extension #150 swoole version 4.2.9 ] { Parameter #2 [ $finish ] } } + + Method [ public method close ] { + + - Parameters [0] { + } + } } } @@ -3598,7 +3614,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { - Static properties [0] { } - - Static methods [20] { + - Static methods [21] { Method [ static public method create ] { - Parameters [2] { @@ -3661,6 +3677,12 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } + Method [ static public method getCid ] { + + - Parameters [0] { + } + } + Method [ static public method getuid ] { - Parameters [0] { @@ -3814,7 +3836,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } - Class [ class Swoole\ExitException extends Exception implements Throwable ] { + Class [ class Swoole\ExitException extends Swoole\Exception implements Throwable ] { - Constants [0] { } @@ -3894,12 +3916,14 @@ Extension [ extension #150 swoole version 4.2.9 ] { - Static methods [0] { } - - Properties [18] { + - Properties [20] { Property [ public $type ] Property [ public $errCode ] + Property [ public $errMsg ] Property [ public $statusCode ] Property [ public $host ] Property [ public $port ] + Property [ public $ssl ] Property [ public $requestMethod ] Property [ public $requestHeaders ] Property [ public $requestBody ] @@ -4153,9 +4177,10 @@ Extension [ extension #150 swoole version 4.2.9 ] { Method [ public method useQueue ] { - - Parameters [2] { + - Parameters [3] { Parameter #0 [ $key ] Parameter #1 [ $mode ] + Parameter #2 [ $capacity ] } } @@ -4779,24 +4804,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { - Static methods [0] { } - - Properties [31] { - Property [ public $onConnect ] - Property [ public $onReceive ] - Property [ public $onClose ] - Property [ public $onPacket ] - Property [ public $onBufferFull ] - Property [ public $onBufferEmpty ] - Property [ public $onStart ] - Property [ public $onShutdown ] - Property [ public $onWorkerStart ] - Property [ public $onWorkerStop ] - Property [ public $onWorkerExit ] - Property [ public $onWorkerError ] - Property [ public $onTask ] - Property [ public $onFinish ] - Property [ public $onManagerStart ] - Property [ public $onManagerStop ] - Property [ public $onPipeMessage ] + - Properties [14] { Property [ public $connections ] Property [ public $host ] Property [ public $port ] @@ -5124,6 +5132,51 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } + Class [ class Swoole\Http\Request ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [10] { + Property [ public $fd ] + Property [ public $streamId ] + Property [ public $header ] + Property [ public $server ] + Property [ public $request ] + Property [ public $cookie ] + Property [ public $get ] + Property [ public $files ] + Property [ public $post ] + Property [ public $tmpfiles ] + } + + - Methods [3] { + Method [ public method rawcontent ] { + + - Parameters [0] { + } + } + + Method [ public method getData ] { + + - Parameters [0] { + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + } + } + Class [ class Swoole\Http\Response ] { - Constants [0] { @@ -5259,51 +5312,6 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } - Class [ class Swoole\Http\Request ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [10] { - Property [ public $fd ] - Property [ public $streamId ] - Property [ public $header ] - Property [ public $server ] - Property [ public $request ] - Property [ public $cookie ] - Property [ public $get ] - Property [ public $files ] - Property [ public $post ] - Property [ public $tmpfiles ] - } - - - Methods [3] { - Method [ public method rawcontent ] { - - - Parameters [0] { - } - } - - Method [ public method getData ] { - - - Parameters [0] { - } - } - - Method [ public method __destruct ] { - - - Parameters [0] { - } - } - } - } - Class [ class Swoole\Buffer ] { - Constants [0] { @@ -5418,24 +5426,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } - - Properties [31] { - Property [ public $onConnect ] - Property [ public $onReceive ] - Property [ public $onClose ] - Property [ public $onPacket ] - Property [ public $onBufferFull ] - Property [ public $onBufferEmpty ] - Property [ public $onStart ] - Property [ public $onShutdown ] - Property [ public $onWorkerStart ] - Property [ public $onWorkerStop ] - Property [ public $onWorkerExit ] - Property [ public $onWorkerError ] - Property [ public $onTask ] - Property [ public $onFinish ] - Property [ public $onManagerStart ] - Property [ public $onManagerStop ] - Property [ public $onPipeMessage ] + - Properties [14] { Property [ public $connections ] Property [ public $host ] Property [ public $port ] @@ -5859,10 +5850,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } - - Properties [6] { - Property [ public $fd ] - Property [ public $data ] - Property [ public $finish ] + - Properties [3] { Property [ public $opcode ] Property [ public $code ] Property [ public $reason ] @@ -5988,7 +5976,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } - Class [ class Swoole\MySQL\Exception extends Exception implements Throwable ] { + Class [ class Swoole\MySQL\Exception extends Swoole\Exception implements Throwable ] { - Constants [0] { } @@ -6142,7 +6130,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { Property [ public $errCode ] } - - Methods [9] { + - Methods [8] { Method [ public method __construct ] { - Parameters [1] { @@ -6150,12 +6138,6 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } - Method [ public method __destruct ] { - - - Parameters [0] { - } - } - Method [ public method push ] { - Parameters [1] { @@ -6705,24 +6687,7 @@ Extension [ extension #150 swoole version 4.2.9 ] { } } - - Properties [29] { - Property [ public $onConnect ] - Property [ public $onReceive ] - Property [ public $onClose ] - Property [ public $onPacket ] - Property [ public $onBufferFull ] - Property [ public $onBufferEmpty ] - Property [ public $onStart ] - Property [ public $onShutdown ] - Property [ public $onWorkerStart ] - Property [ public $onWorkerStop ] - Property [ public $onWorkerExit ] - Property [ public $onWorkerError ] - Property [ public $onTask ] - Property [ public $onFinish ] - Property [ public $onManagerStart ] - Property [ public $onManagerStop ] - Property [ public $onPipeMessage ] + - Properties [12] { Property [ public $setting ] Property [ public $connections ] Property [ public $host ] diff --git a/php-pecl-swoole4.spec b/php-pecl-swoole4.spec index 5219fa3..0249ad6 100644 --- a/php-pecl-swoole4.spec +++ b/php-pecl-swoole4.spec @@ -35,7 +35,7 @@ Summary: PHP's asynchronous concurrent distributed networking framework Name: %{?sub_prefix}php-pecl-%{pecl_name}4 -Version: 4.2.9 +Version: 4.2.10 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} # Extension is ASL 2.0 # Hiredis is BSD @@ -171,7 +171,7 @@ sed \ cd NTS # Sanity check, really often broken -extver=$(sed -n '/#define SWOOLE_VERSION/{s/.* "//;s/".*$//;p}' include/swoole.h) +extver=$(sed -n '/#define SWOOLE_VERSION /{s/.* "//;s/".*$//;p}' include/swoole.h) if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever:-%{prever}}. exit 1 @@ -185,14 +185,13 @@ cp -pr NTS ZTS # Create configuration file cat << 'EOF' | tee %{ini_name} -; Enable %{summary} extension module +; Enable %{pecl_name} extension module extension=%{pecl_name}.so ; Configuration ;swoole.enable_coroutine = On ;swoole.aio_thread_num = 2 ;swoole.display_errors = On -;swoole.use_namespace = On :swoole.use_shortname = On ;swoole.fast_serialize = Off ;swoole.unixsock_buffer_size = 8388608 @@ -342,6 +341,9 @@ cd ../ZTS %changelog +* Thu Dec 20 2018 Remi Collet - 4.2.10-1 +- update to 4.2.10 + * Mon Nov 26 2018 Remi Collet - 4.2.9-1 - update to 4.2.9 -- cgit