From 2f5e4a607f906715035f8dba823b304f530e0ba9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 6 Feb 2023 13:54:50 +0100 Subject: update to 5.0.2 --- PHPINFO | 4 +- REFLECTION | 310 ++++++++------------------------------------------ php-pecl-swoole5.spec | 15 ++- 3 files changed, 61 insertions(+), 268 deletions(-) diff --git a/PHPINFO b/PHPINFO index 4f85ba1..c4a0d99 100644 --- a/PHPINFO +++ b/PHPINFO @@ -3,8 +3,8 @@ swoole Swoole => enabled Author => Swoole Team -Version => 5.0.1 -Built => Nov 7 2022 00:00:00 +Version => 5.0.2 +Built => Feb 6 2023 00:00:00 coroutine => enabled with boost asm context trace_log => enabled epoll => enabled diff --git a/REFLECTION b/REFLECTION index ff5d30f..b26acdd 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #107 swoole version 5.0.1 ] { +Extension [ extension #107 swoole version 5.0.2 ] { - Dependencies { Dependency [ json (Required) ] @@ -28,12 +28,12 @@ Extension [ extension #107 swoole version 5.0.1 ] { } } - - Constants [401] { - Constant [ string SWOOLE_VERSION ] { 5.0.1 } - Constant [ int SWOOLE_VERSION_ID ] { 50001 } + - Constants [403] { + Constant [ string SWOOLE_VERSION ] { 5.0.2 } + Constant [ int SWOOLE_VERSION_ID ] { 50002 } Constant [ int SWOOLE_MAJOR_VERSION ] { 5 } Constant [ int SWOOLE_MINOR_VERSION ] { 0 } - Constant [ int SWOOLE_RELEASE_VERSION ] { 1 } + Constant [ int SWOOLE_RELEASE_VERSION ] { 2 } Constant [ string SWOOLE_EXTRA_VERSION ] { } Constant [ bool SWOOLE_DEBUG ] { } Constant [ bool SWOOLE_HAVE_COMPRESSION ] { 1 } @@ -198,6 +198,7 @@ Extension [ extension #107 swoole version 5.0.1 ] { Constant [ int SWOOLE_ERROR_CO_NOT_EXISTS ] { 10016 } Constant [ int SWOOLE_ERROR_CO_CANCELED ] { 10017 } Constant [ int SWOOLE_ERROR_CO_TIMEDOUT ] { 10018 } + Constant [ int SWOOLE_ERROR_CO_SOCKET_CLOSE_WAIT ] { 10019 } Constant [ int SWOOLE_TRACE_SERVER ] { 2 } Constant [ int SWOOLE_TRACE_CLIENT ] { 4 } Constant [ int SWOOLE_TRACE_BUFFER ] { 8 } @@ -228,6 +229,7 @@ Extension [ extension #107 swoole version 5.0.1 ] { Constant [ int SWOOLE_TRACE_TABLE ] { 268435456 } Constant [ int SWOOLE_TRACE_CO_CURL ] { 536870912 } Constant [ int SWOOLE_TRACE_CARES ] { 1073741824 } + Constant [ int SWOOLE_TRACE_ZLIB ] { 2147483648 } Constant [ int SWOOLE_TRACE_ALL ] { 9223372036854775807 } Constant [ int SWOOLE_LOG_DEBUG ] { 0 } Constant [ int SWOOLE_LOG_TRACE ] { 1 } @@ -454,7 +456,7 @@ Extension [ extension #107 swoole version 5.0.1 ] { Function [ function swoole_async_dns_lookup_coro ] { - Parameters [3] { - Parameter #0 [ mixed $domain_name ] + Parameter #0 [ string $domain_name ] Parameter #1 [ float $timeout = 60 ] Parameter #2 [ int $type = AF_INET ] } @@ -756,6 +758,12 @@ Extension [ extension #107 swoole version 5.0.1 ] { } - Return [ bool ] } + Function [ function swoole_event_wait ] { + + - Parameters [0] { + } + - Return [ void ] + } Function [ function swoole_event_isset ] { - Parameters [2] { @@ -793,12 +801,6 @@ Extension [ extension #107 swoole version 5.0.1 ] { } - Return [ bool ] } - Function [ function swoole_event_wait ] { - - - Parameters [0] { - } - - Return [ void ] - } Function [ function swoole_event_exit ] { - Parameters [0] { @@ -828,13 +830,6 @@ Extension [ extension #107 swoole version 5.0.1 ] { } - Return [ int|false ] } - Function [ function swoole_timer_exists ] { - - - Parameters [1] { - Parameter #0 [ int $timer_id ] - } - - Return [ bool ] - } Function [ function swoole_timer_info ] { - Parameters [1] { @@ -842,256 +837,38 @@ Extension [ extension #107 swoole version 5.0.1 ] { } - Return [ ?array ] } - Function [ function swoole_timer_stats ] { - - - Parameters [0] { - } - - Return [ array ] - } Function [ function swoole_timer_list ] { - Parameters [0] { } - - Return [ É ] + - Return [ Swoole\Timer\Iterator ] } - Function [ function swoole_timer_clear ] { + Function [ function swoole_timer_exists ] { - Parameters [1] { Parameter #0 [ int $timer_id ] } - Return [ bool ] } - Function [ function swoole_timer_clear_all ] { + Function [ function swoole_timer_stats ] { - Parameters [0] { } - - Return [ bool ] - } - Function [ function swoole_native_socket_create_listen ] { - - - Parameters [2] { - Parameter #0 [ int $port ] - Parameter #1 [ int $backlog = 128 ] - } - - Return [ Swoole\Coroutine\Socket|false ] - } - Function [ function swoole_native_socket_accept ] { - - - Parameters [1] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - } - - Return [ Swoole\Coroutine\Socket|false ] - } - Function [ function swoole_native_socket_set_nonblock ] { - - - Parameters [1] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - } - - Return [ bool ] - } - Function [ function swoole_native_socket_set_block ] { - - - Parameters [1] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - } - - Return [ bool ] - } - Function [ function swoole_native_socket_listen ] { - - - Parameters [2] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ int $backlog = 0 ] - } - - Return [ bool ] - } - Function [ function swoole_native_socket_close ] { - - - Parameters [1] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - } - - Return [ void ] - } - Function [ function swoole_native_socket_write ] { - - - Parameters [3] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ string $data ] - Parameter #2 [ ?int $length = null ] - } - - Return [ int|false ] - } - Function [ function swoole_native_socket_read ] { - - - Parameters [3] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ int $length ] - Parameter #2 [ int $mode = PHP_BINARY_READ ] - } - - Return [ string|false ] - } - Function [ function swoole_native_socket_getsockname ] { - - - Parameters [3] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ &$address ] - Parameter #2 [ &$port = null ] - } - - Return [ bool ] - } - Function [ function swoole_native_socket_getpeername ] { - - - Parameters [3] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ &$address ] - Parameter #2 [ &$port = null ] - } - - Return [ bool ] - } - Function [ function swoole_native_socket_create ] { - - - Parameters [3] { - Parameter #0 [ int $domain ] - Parameter #1 [ int $type ] - Parameter #2 [ int $protocol ] - } - - Return [ Swoole\Coroutine\Socket|false ] - } - Function [ function swoole_native_socket_connect ] { - - - Parameters [3] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ string $address ] - Parameter #2 [ ?int $port = null ] - } - - Return [ bool ] + - Return [ array ] } - Function [ function swoole_native_socket_strerror ] { + Function [ function swoole_timer_clear ] { - Parameters [1] { - Parameter #0 [ int $error_code ] - } - - Return [ string ] - } - Function [ function swoole_native_socket_bind ] { - - - Parameters [3] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ string $address ] - Parameter #2 [ int $port = 0 ] - } - - Return [ bool ] - } - Function [ function swoole_native_socket_recv ] { - - - Parameters [4] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ &$data ] - Parameter #2 [ int $length ] - Parameter #3 [ int $flags ] - } - - Return [ int|false ] - } - Function [ function swoole_native_socket_send ] { - - - Parameters [4] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ string $data ] - Parameter #2 [ int $length ] - Parameter #3 [ int $flags ] - } - - Return [ int|false ] - } - Function [ function swoole_native_socket_recvfrom ] { - - - Parameters [6] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ &$data ] - Parameter #2 [ int $length ] - Parameter #3 [ int $flags ] - Parameter #4 [ &$address ] - Parameter #5 [ &$port = null ] - } - - Return [ int|false ] - } - Function [ function swoole_native_socket_sendto ] { - - - Parameters [6] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ string $data ] - Parameter #2 [ int $length ] - Parameter #3 [ int $flags ] - Parameter #4 [ string $address ] - Parameter #5 [ ?int $port = null ] - } - - Return [ int|false ] - } - Function [ function swoole_native_socket_get_option ] { - - - Parameters [3] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ int $level ] - Parameter #2 [ int $option ] - } - - Return [ array|int|false ] - } - Function [ function swoole_native_socket_set_option ] { - - - Parameters [4] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ int $level ] - Parameter #2 [ int $option ] - Parameter #3 [ $value ] - } - - Return [ bool ] - } - Function [ function swoole_native_socket_getopt ] { - - - Parameters [3] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ int $level ] - Parameter #2 [ int $option ] - } - - Return [ array|int|false ] - } - Function [ function swoole_native_socket_setopt ] { - - - Parameters [4] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ int $level ] - Parameter #2 [ int $option ] - Parameter #3 [ $value ] + Parameter #0 [ int $timer_id ] } - Return [ bool ] } - Function [ function swoole_native_socket_shutdown ] { + Function [ function swoole_timer_clear_all ] { - - Parameters [2] { - Parameter #0 [ Swoole\Coroutine\Socket $socket ] - Parameter #1 [ int $mode = 2 ] + - Parameters [0] { } - Return [ bool ] } - Function [ function swoole_native_socket_last_error ] { - - - Parameters [1] { - Parameter #0 [ ?Swoole\Coroutine\Socket $socket = null ] - } - - Return [ int ] - } - Function [ function swoole_native_socket_clear_error ] { - - - Parameters [1] { - Parameter #0 [ ?Swoole\Coroutine\Socket $socket = null ] - } - - Return [ void ] - } - Function [ function swoole_native_socket_import_stream ] { - - - Parameters [1] { - Parameter #0 [ $stream ] - } - - Return [ Swoole\Coroutine\Socket ] - } Function [ function swoole_native_curl_close ] { - Parameters [1] { @@ -1890,19 +1667,21 @@ Extension [ extension #107 swoole version 5.0.1 ] { Method [ public method setPriority ] { - - Parameters [2] { + - Parameters [3] { Parameter #0 [ int $which ] Parameter #1 [ int $priority ] + Parameter #2 [ ?int $who = null ] } - Return [ bool ] } Method [ public method getPriority ] { - - Parameters [1] { + - Parameters [2] { Parameter #0 [ int $which ] + Parameter #1 [ ?int $who = null ] } - - Return [ int ] + - Return [ int|false ] } Method [ public method set ] { @@ -3457,7 +3236,7 @@ Extension [ extension #107 swoole version 5.0.1 ] { - Parameters [0] { } - - Return [ int ] + - Return [ mixed ] } Method [ public method __construct ] { @@ -3986,7 +3765,7 @@ Extension [ extension #107 swoole version 5.0.1 ] { Property [ public $errMsg = '' ] } - - Methods [31] { + - Methods [32] { Method [ public method __construct ] { - Parameters [3] { @@ -4038,6 +3817,14 @@ Extension [ extension #107 swoole version 5.0.1 ] { - Return [ bool ] } + Method [ public method getBoundCid ] { + + - Parameters [1] { + Parameter #0 [ int $event ] + } + - Return [ int ] + } + Method [ public method peek ] { - Parameters [1] { @@ -4067,7 +3854,7 @@ Extension [ extension #107 swoole version 5.0.1 ] { Method [ public method recvLine ] { - Parameters [2] { - Parameter #0 [ int $length = 65535 ] + Parameter #0 [ int $length = 65536 ] Parameter #1 [ float $timeout = 0 ] } - Return [ string|false ] @@ -4076,7 +3863,7 @@ Extension [ extension #107 swoole version 5.0.1 ] { Method [ public method recvWithBuffer ] { - Parameters [2] { - Parameter #0 [ int $length = 65535 ] + Parameter #0 [ int $length = 65536 ] Parameter #1 [ float $timeout = 0 ] } - Return [ string|false ] @@ -4624,7 +4411,7 @@ Extension [ extension #107 swoole version 5.0.1 ] { Property [ public $errCode = 0 ] Property [ public $errMsg = '' ] Property [ public $fd = -1 ] - Property [ private $socket = NULL ] + Property [ public $socket = NULL ] Property [ public $type = 1 ] Property [ public $setting = NULL ] Property [ public $connected = false ] @@ -4788,7 +4575,8 @@ Extension [ extension #107 swoole version 5.0.1 ] { - Static methods [0] { } - - Properties [18] { + - Properties [19] { + Property [ public $socket = NULL ] Property [ public $errCode = 0 ] Property [ public $errMsg = '' ] Property [ public $connected = false ] @@ -5142,12 +4930,13 @@ Extension [ extension #107 swoole version 5.0.1 ] { - Static methods [0] { } - - Properties [9] { + - Properties [10] { Property [ public $errCode = 0 ] Property [ public $errMsg = '' ] Property [ public $sock = -1 ] Property [ public $type = 0 ] Property [ public $setting = NULL ] + Property [ public $socket = NULL ] Property [ public $connected = false ] Property [ public $host = NULL ] Property [ public $port = 0 ] @@ -5413,7 +5202,8 @@ Extension [ extension #107 swoole version 5.0.1 ] { - Static methods [0] { } - - Properties [9] { + - Properties [10] { + Property [ private $socket = NULL ] Property [ public $serverInfo = NULL ] Property [ public $sock = -1 ] Property [ public $connected = false ] @@ -7589,7 +7379,7 @@ Extension [ extension #107 swoole version 5.0.1 ] { Parameter #3 [ mixed $data ] Parameter #4 [ bool $json_decode = true ] } - - Return [ string|false ] + - Return [ array|string|false ] } Method [ public method addCommand ] { @@ -8667,7 +8457,7 @@ Extension [ extension #107 swoole version 5.0.1 ] { Parameter #3 [ mixed $data ] Parameter #4 [ bool $json_decode = true ] } - - Return [ string|false ] + - Return [ array|string|false ] } Method [ public method addCommand ] { @@ -9213,7 +9003,7 @@ Extension [ extension #107 swoole version 5.0.1 ] { Parameter #3 [ mixed $data ] Parameter #4 [ bool $json_decode = true ] } - - Return [ string|false ] + - Return [ array|string|false ] } Method [ public method addCommand ] { @@ -9761,7 +9551,7 @@ Extension [ extension #107 swoole version 5.0.1 ] { Parameter #3 [ mixed $data ] Parameter #4 [ bool $json_decode = true ] } - - Return [ string|false ] + - Return [ array|string|false ] } Method [ public method addCommand ] { diff --git a/php-pecl-swoole5.spec b/php-pecl-swoole5.spec index 237b8e9..156591c 100644 --- a/php-pecl-swoole5.spec +++ b/php-pecl-swoole5.spec @@ -1,7 +1,7 @@ # remirepo spec file for php-pecl-swoole5 # -# Copyright (c) 2013-2022 Remi Collet -# License: CC-BY-SA +# Copyright (c) 2013-2023 Remi Collet +# License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries @@ -40,7 +40,7 @@ %bcond_with curl %endif -%global upstream_version 5.0.1 +%global upstream_version 5.0.2 #global upstream_prever RC2 @@ -48,10 +48,10 @@ Summary: PHP's asynchronous concurrent distributed networking framework Name: %{?scl_prefix}php-pecl-%{pecl_name}5 Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} -# Extension is ASL 2.0 -# Hiredis is BSD +# Extension is Apache-2.0 +# Hiredis is BSD-3-Clause # nlohmann/json is MIT -License: ASL 2.0 and BSD and MIT +License: Apache-2.0 AND BSD-3-Clause AND MIT URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz @@ -340,6 +340,9 @@ cd ../ZTS %changelog +* Mon Feb 6 2023 Remi Collet - 5.0.2-1 +- update to 5.0.2 + * Mon Nov 7 2022 Remi Collet - 5.0.1-1 - update to 5.0.1 -- cgit