From ee2deb69623ebf1489db3ef6ab493f682aefe2df Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 21 Nov 2024 16:08:47 +0100 Subject: update to 6.0.0RC1 use 6.0.0-4 to workaround https://github.com/swoole/swoole-src/issues/5531 drop patch merged upstream fix https://github.com/swoole/swoole-src/issues/5577 build with liburing < 2.6 using patch from https://github.com/swoole/swoole-src/pull/5579 --- REFLECTION | 248 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 231 insertions(+), 17 deletions(-) (limited to 'REFLECTION') diff --git a/REFLECTION b/REFLECTION index 713aaed..b57f1d6 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #125 swoole version 6.0.0 ] { +Extension [ extension #126 swoole version 6.0.0RC1 ] { - Dependencies { Dependency [ json (Required) ] @@ -29,8 +29,8 @@ Extension [ extension #125 swoole version 6.0.0 ] { } } - - Constants [397] { - Constant [ string SWOOLE_VERSION ] { 6.0.0 } + - Constants [399] { + Constant [ string SWOOLE_VERSION ] { 6.0.0RC1 } Constant [ int SWOOLE_VERSION_ID ] { 60000 } Constant [ int SWOOLE_MAJOR_VERSION ] { 6 } Constant [ int SWOOLE_MINOR_VERSION ] { 0 } @@ -268,6 +268,7 @@ Extension [ extension #125 swoole version 6.0.0 ] { Constant [ int SWOOLE_MUTEX ] { 3 } Constant [ int SWOOLE_RWLOCK ] { 1 } Constant [ int SWOOLE_SPINLOCK ] { 5 } + Constant [ int SWOOLE_COROLOCK ] { 6 } Constant [ int SWOOLE_MSGQUEUE_ORIENT ] { 1 } Constant [ int SWOOLE_MSGQUEUE_BALANCE ] { 2 } Constant [ int SWOOLE_TIMER_MIN_MS ] { 1 } @@ -307,6 +308,7 @@ Extension [ extension #125 swoole version 6.0.0 ] { Constant [ int SWOOLE_HOOK_PDO_SQLITE ] { 524288 } Constant [ int SWOOLE_HOOK_ALL ] { 2147481599 } Constant [ int SOCKET_ECANCELED ] { 125 } + Constant [ int TCP_INFO ] { 11 } Constant [ int SWOOLE_HTTP_CLIENT_ESTATUS_CONNECT_FAILED ] { -1 } Constant [ int SWOOLE_HTTP_CLIENT_ESTATUS_REQUEST_TIMEOUT ] { -2 } Constant [ int SWOOLE_HTTP_CLIENT_ESTATUS_SERVER_RESET ] { -3 } @@ -499,20 +501,20 @@ Extension [ extension #125 swoole version 6.0.0 ] { Function [ function swoole_client_select ] { - Parameters [4] { - Parameter #0 [ array &$read_array ] - Parameter #1 [ array &$write_array ] - Parameter #2 [ array &$error_array ] - Parameter #3 [ float $timeout = 0.5 ] + Parameter #0 [ ?array &$read ] + Parameter #1 [ ?array &$write ] + Parameter #2 [ ?array &$except ] + Parameter #3 [ ?float $timeout = 0.5 ] } - Return [ int|false ] } Function [ function swoole_select ] { - Parameters [4] { - Parameter #0 [ array &$read_array ] - Parameter #1 [ array &$write_array ] - Parameter #2 [ array &$error_array ] - Parameter #3 [ float $timeout = 0.5 ] + Parameter #0 [ ?array &$read ] + Parameter #1 [ ?array &$write ] + Parameter #2 [ ?array &$except ] + Parameter #3 [ ?float $timeout = 0.5 ] } - Return [ int|false ] } @@ -677,7 +679,7 @@ Extension [ extension #125 swoole version 6.0.0 ] { Parameter #0 [ string $fn ] Parameter #1 [ mixed $args = null ] } - - Return [ void ] + - Return [ mixed ] } Function [ function swoole_get_objects ] { @@ -1041,7 +1043,7 @@ Extension [ extension #125 swoole version 6.0.0 ] { } } - - Classes [50] { + - Classes [51] { Class [ class Swoole\Exception extends Exception implements Throwable, Stringable ] { - Constants [0] { @@ -2720,7 +2722,7 @@ Extension [ extension #125 swoole version 6.0.0 ] { Method [ static public method waitSignal ] { - Parameters [2] { - Parameter #0 [ int $signo ] + Parameter #0 [ array|int $signals ] Parameter #1 [ float $timeout = -1 ] } - Return [ bool ] @@ -3392,7 +3394,7 @@ Extension [ extension #125 swoole version 6.0.0 ] { Method [ static public method waitSignal ] { - Parameters [2] { - Parameter #0 [ int $signo ] + Parameter #0 [ array|int $signals ] Parameter #1 [ float $timeout = -1 ] } - Return [ bool ] @@ -4192,7 +4194,8 @@ Extension [ extension #125 swoole version 6.0.0 ] { Method [ public method enableSSL ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ ?callable $onSslReady = null ] } - Return [ bool ] } @@ -4341,6 +4344,217 @@ Extension [ extension #125 swoole version 6.0.0 ] { } } + Class [ class Swoole\Async\Client extends Swoole\Client ] { + + - Constants [7] { + Constant [ public int MSG_OOB ] { 1 } + Constant [ public int MSG_PEEK ] { 2 } + Constant [ public int MSG_DONTWAIT ] { 64 } + Constant [ public int MSG_WAITALL ] { 256 } + Constant [ public int SHUT_RDWR ] { 2 } + Constant [ public int SHUT_RD ] { 0 } + Constant [ public int SHUT_WR ] { 1 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [14] { + Property [ public $errCode = 0 ] + Property [ public $sock = -1 ] + Property [ public $reuse = false ] + Property [ public $reuseCount = 0 ] + Property [ public $type = 0 ] + Property [ public $id = NULL ] + Property [ public $setting = NULL ] + Property [ private $onConnect = NULL ] + Property [ private $onError = NULL ] + Property [ private $onReceive = NULL ] + Property [ private $onClose = NULL ] + Property [ private $onBufferFull = NULL ] + Property [ private $onBufferEmpty = NULL ] + Property [ private $onSSLReady = NULL ] + } + + - Methods [22] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ int $type ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method connect ] { + + - Parameters [4] { + Parameter #0 [ string $host ] + Parameter #1 [ int $port = 0 ] + Parameter #2 [ float $timeout = 0.5 ] + Parameter #3 [ int $sock_flag = 0 ] + } + - Return [ bool ] + } + + Method [ public method sleep ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ public method wakeup ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ public method pause ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ public method resume ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ public method enableSSL ] { + + - Parameters [1] { + Parameter #0 [ ?callable $onSslReady = null ] + } + - Return [ bool ] + } + + Method [ public method isConnected ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ public method close ] { + + - Parameters [1] { + Parameter #0 [ bool $force = false ] + } + - Return [ bool ] + } + + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ string $host ] + Parameter #1 [ callable $callback ] + } + - Return [ bool ] + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + - Return [ bool ] + } + + Method [ public method recv ] { + + - Parameters [2] { + Parameter #0 [ int $size = 65536 ] + Parameter #1 [ int $flag = 0 ] + } + - Return [ string|false ] + } + + Method [ public method send ] { + + - Parameters [2] { + Parameter #0 [ string $data ] + Parameter #1 [ int $flag = 0 ] + } + - Return [ int|false ] + } + + Method [ public method sendfile ] { + + - Parameters [3] { + Parameter #0 [ string $filename ] + Parameter #1 [ int $offset = 0 ] + Parameter #2 [ int $length = 0 ] + } + - Return [ bool ] + } + + Method [ public method sendto ] { + + - Parameters [3] { + Parameter #0 [ string $ip ] + Parameter #1 [ int $port ] + Parameter #2 [ string $data ] + } + - Return [ bool ] + } + + Method [ public method shutdown ] { + + - Parameters [1] { + Parameter #0 [ int $how ] + } + - Return [ bool ] + } + + Method [ public method getPeerCert ] { + + - Parameters [0] { + } + - Return [ string|bool ] + } + + Method [ public method verifyPeerCert ] { + + - Parameters [0] { + } + - Return [ bool ] + } + + Method [ public method getsockname ] { + + - Parameters [0] { + } + - Return [ array|false ] + } + + Method [ public method getpeername ] { + + - Parameters [0] { + } + - Return [ array|false ] + } + + Method [ public method getSocket ] { + + - Parameters [0] { + } + - Return [ Socket|false ] + } + } + } + Class [ class Swoole\Coroutine\Client ] { - Constants [4] { @@ -6837,7 +7051,7 @@ Extension [ extension #125 swoole version 6.0.0 ] { Parameter #0 [ string $pattern ] Parameter #1 [ callable $callback ] } - - Return [ void ] + - Return [ bool ] } Method [ private method onAccept ] { -- cgit