From f454e537f193bc6bf68674590234a9ecbd3d6e5c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 22 Oct 2024 09:05:58 +0200 Subject: update to 6.0.0beta --- REFLECTION | 268 +++++++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 188 insertions(+), 80 deletions(-) (limited to 'REFLECTION') diff --git a/REFLECTION b/REFLECTION index d934341..713aaed 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #94 swoole version 6.0.0 ] { +Extension [ extension #125 swoole version 6.0.0 ] { - Dependencies { Dependency [ json (Required) ] @@ -29,7 +29,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { } } - - Constants [390] { + - Constants [397] { Constant [ string SWOOLE_VERSION ] { 6.0.0 } Constant [ int SWOOLE_VERSION_ID ] { 60000 } Constant [ int SWOOLE_MAJOR_VERSION ] { 6 } @@ -103,6 +103,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { Constant [ int SWOOLE_ERROR_WRONG_OPERATION ] { 509 } Constant [ int SWOOLE_ERROR_PHP_RUNTIME_NOTICE ] { 510 } Constant [ int SWOOLE_ERROR_FOR_TEST ] { 511 } + Constant [ int SWOOLE_ERROR_NO_PAYLOAD ] { 550 } Constant [ int SWOOLE_ERROR_UNDEFINED_BEHAVIOR ] { 600 } Constant [ int SWOOLE_ERROR_NOT_THREAD_SAFETY ] { 601 } Constant [ int SWOOLE_ERROR_FILE_NOT_EXIST ] { 700 } @@ -115,6 +116,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { Constant [ int SWOOLE_ERROR_DNSLOOKUP_NO_SERVER ] { 714 } Constant [ int SWOOLE_ERROR_BAD_IPV6_ADDRESS ] { 720 } Constant [ int SWOOLE_ERROR_UNREGISTERED_SIGNAL ] { 721 } + Constant [ int SWOOLE_ERROR_BAD_HOST_ADDR ] { 722 } Constant [ int SWOOLE_ERROR_EVENT_SOCKET_REMOVED ] { 800 } Constant [ int SWOOLE_ERROR_SESSION_CLOSED_BY_SERVER ] { 1001 } Constant [ int SWOOLE_ERROR_SESSION_CLOSED_BY_CLIENT ] { 1002 } @@ -163,6 +165,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { Constant [ int SWOOLE_ERROR_HTTP_PROXY_BAD_RESPONSE ] { 7104 } Constant [ int SWOOLE_ERROR_HTTP_CONFLICT_HEADER ] { 7105 } Constant [ int SWOOLE_ERROR_HTTP_CONTEXT_UNAVAILABLE ] { 7106 } + Constant [ int SWOOLE_ERROR_HTTP_COOKIE_UNAVAILABLE ] { 7107 } Constant [ int SWOOLE_ERROR_WEBSOCKET_BAD_CLIENT ] { 8501 } Constant [ int SWOOLE_ERROR_WEBSOCKET_BAD_OPCODE ] { 8502 } Constant [ int SWOOLE_ERROR_WEBSOCKET_UNCONNECTED ] { 8503 } @@ -184,6 +187,8 @@ Extension [ extension #94 swoole version 6.0.0 ] { Constant [ int SWOOLE_ERROR_SERVER_INVALID_COMMAND ] { 9012 } Constant [ int SWOOLE_ERROR_SERVER_IS_NOT_REGULAR_FILE ] { 9013 } Constant [ int SWOOLE_ERROR_SERVER_SEND_TO_WOKER_TIMEOUT ] { 9014 } + Constant [ int SWOOLE_ERROR_SERVER_INVALID_CALLBACK ] { 9015 } + Constant [ int SWOOLE_ERROR_SERVER_UNRELATED_THREAD ] { 9016 } Constant [ int SWOOLE_ERROR_SERVER_WORKER_EXIT_TIMEOUT ] { 9101 } Constant [ int SWOOLE_ERROR_SERVER_WORKER_ABNORMAL_PIPE_DATA ] { 9102 } Constant [ int SWOOLE_ERROR_SERVER_WORKER_UNPROCESSED_DATA ] { 9103 } @@ -258,6 +263,8 @@ Extension [ extension #94 swoole version 6.0.0 ] { Constant [ int SWOOLE_IPC_UNIXSOCK ] { 1 } Constant [ int SWOOLE_IPC_SOCKET ] { 3 } Constant [ int SWOOLE_IOV_MAX ] { 1024 } + Constant [ int SWOOLE_IOURING_DEFAULT ] { 0 } + Constant [ int SWOOLE_IOURING_SQPOLL ] { 2 } Constant [ int SWOOLE_MUTEX ] { 3 } Constant [ int SWOOLE_RWLOCK ] { 1 } Constant [ int SWOOLE_SPINLOCK ] { 5 } @@ -658,19 +665,20 @@ Extension [ extension #94 swoole version 6.0.0 ] { } - Return [ mixed ] } - Function [ function swoole_test_fn ] { - - - Parameters [1] { - Parameter #0 [ string $case ] - } - - Return [ void ] - } Function [ function swoole_internal_call_user_shutdown_begin ] { - Parameters [0] { } - Return [ bool ] } + Function [ function swoole_implicit_fn ] { + + - Parameters [2] { + Parameter #0 [ string $fn ] + Parameter #1 [ mixed $args = null ] + } + - Return [ void ] + } Function [ function swoole_get_objects ] { - Parameters [0] { @@ -1033,7 +1041,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { } } - - Classes [49] { + - Classes [50] { Class [ class Swoole\Exception extends Exception implements Throwable, Stringable ] { - Constants [0] { @@ -1569,7 +1577,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { - Static properties [0] { } - - Static methods [6] { + - Static methods [7] { Method [ static public method wait ] { - Parameters [1] { @@ -1622,6 +1630,13 @@ Extension [ extension #94 swoole version 6.0.0 ] { } - Return [ bool ] } + + Method [ static public method getAffinity ] { + + - Parameters [0] { + } + - Return [ array ] + } } - Properties [6] { @@ -2413,7 +2428,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { - Static properties [0] { } - - Static methods [40] { + - Static methods [37] { Method [ static public method create ] { - Parameters [2] { @@ -2720,33 +2735,6 @@ Extension [ extension #94 swoole version 6.0.0 ] { } - Return [ int|false ] } - - Method [ static public method fread ] { - - - Parameters [2] { - Parameter #0 [ $handle ] - Parameter #1 [ int $length = 0 ] - } - - Return [ string|false ] - } - - Method [ static public method fgets ] { - - - Parameters [1] { - Parameter #0 [ $handle ] - } - - Return [ string|false ] - } - - Method [ static public method fwrite ] { - - - Parameters [3] { - Parameter #0 [ $handle ] - Parameter #1 [ string $data ] - Parameter #2 [ int $length = 0 ] - } - - Return [ int|false ] - } } - Properties [0] { @@ -3306,7 +3294,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { - Static properties [0] { } - - Static methods [15] { + - Static methods [12] { Method [ static public method gethostbyname ] { - Parameters [3] { @@ -3419,33 +3407,6 @@ Extension [ extension #94 swoole version 6.0.0 ] { } - Return [ int|false ] } - - Method [ static public method fread ] { - - - Parameters [2] { - Parameter #0 [ $handle ] - Parameter #1 [ int $length = 0 ] - } - - Return [ string|false ] - } - - Method [ static public method fwrite ] { - - - Parameters [3] { - Parameter #0 [ $handle ] - Parameter #1 [ string $data ] - Parameter #2 [ int $length = 0 ] - } - - Return [ int|false ] - } - - Method [ static public method fgets ] { - - - Parameters [1] { - Parameter #0 [ $handle ] - } - - Return [ string|false ] - } } - Properties [0] { @@ -4918,7 +4879,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { - Static methods [0] { } - - Properties [10] { + - Properties [11] { Property [ public $errCode = 0 ] Property [ public $errMsg = '' ] Property [ public $sock = -1 ] @@ -4929,6 +4890,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { Property [ public $host = NULL ] Property [ public $port = 0 ] Property [ public $ssl = false ] + Property [ public $serverLastStreamId = 0 ] } - Methods [13] { @@ -5587,7 +5549,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { - Parameters [1] { Parameter #0 [ Swoole\Process $process ] } - - Return [ int ] + - Return [ int|false ] } Method [ public method stats ] { @@ -5717,8 +5679,9 @@ Extension [ extension #94 swoole version 6.0.0 ] { - Static methods [0] { } - - Properties [3] { + - Properties [4] { Property [ public $source_worker_id = 0 ] + Property [ public $worker_id = 0 ] Property [ public $dispatch_time = 0.0 ] Property [ public $data = NULL ] } @@ -6059,7 +6022,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { Property [ public $trailer = NULL ] } - - Methods [21] { + - Methods [22] { Method [ public method initHeader ] { - Parameters [0] { @@ -6076,8 +6039,8 @@ Extension [ extension #94 swoole version 6.0.0 ] { Method [ public method cookie ] { - - Parameters [9] { - Parameter #0 [ string $name ] + - Parameters [10] { + Parameter #0 [ Swoole\Http\Cookie|string $name_or_object ] Parameter #1 [ string $value = '' ] Parameter #2 [ int $expires = 0 ] Parameter #3 [ string $path = '/' ] @@ -6086,14 +6049,15 @@ Extension [ extension #94 swoole version 6.0.0 ] { Parameter #6 [ bool $httponly = false ] Parameter #7 [ string $samesite = '' ] Parameter #8 [ string $priority = '' ] + Parameter #9 [ bool $partitioned = false ] } - Return [ bool ] } Method [ public method setCookie ] { - - Parameters [9] { - Parameter #0 [ string $name ] + - Parameters [10] { + Parameter #0 [ Swoole\Http\Cookie|string $name_or_object ] Parameter #1 [ string $value = '' ] Parameter #2 [ int $expires = 0 ] Parameter #3 [ string $path = '/' ] @@ -6102,14 +6066,15 @@ Extension [ extension #94 swoole version 6.0.0 ] { Parameter #6 [ bool $httponly = false ] Parameter #7 [ string $samesite = '' ] Parameter #8 [ string $priority = '' ] + Parameter #9 [ bool $partitioned = false ] } - Return [ bool ] } Method [ public method rawcookie ] { - - Parameters [9] { - Parameter #0 [ string $name ] + - Parameters [10] { + Parameter #0 [ Swoole\Http\Cookie|string $name_or_object ] Parameter #1 [ string $value = '' ] Parameter #2 [ int $expires = 0 ] Parameter #3 [ string $path = '/' ] @@ -6118,6 +6083,24 @@ Extension [ extension #94 swoole version 6.0.0 ] { Parameter #6 [ bool $httponly = false ] Parameter #7 [ string $samesite = '' ] Parameter #8 [ string $priority = '' ] + Parameter #9 [ bool $partitioned = false ] + } + - Return [ bool ] + } + + Method [ public method setRawCookie ] { + + - Parameters [10] { + Parameter #0 [ Swoole\Http\Cookie|string $name_or_object ] + Parameter #1 [ string $value = '' ] + Parameter #2 [ int $expires = 0 ] + Parameter #3 [ string $path = '/' ] + Parameter #4 [ string $domain = '' ] + Parameter #5 [ bool $secure = false ] + Parameter #6 [ bool $httponly = false ] + Parameter #7 [ string $samesite = '' ] + Parameter #8 [ string $priority = '' ] + Parameter #9 [ bool $partitioned = false ] } - Return [ bool ] } @@ -6261,6 +6244,131 @@ Extension [ extension #94 swoole version 6.0.0 ] { } } + Class [ class Swoole\Http\Cookie ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [14] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ bool $encode = true ] + } + } + + Method [ public method withName ] { + + - Parameters [1] { + Parameter #0 [ string $name ] + } + - Return [ Swoole\Http\Cookie ] + } + + Method [ public method withValue ] { + + - Parameters [1] { + Parameter #0 [ string $value = '' ] + } + - Return [ Swoole\Http\Cookie ] + } + + Method [ public method withExpires ] { + + - Parameters [1] { + Parameter #0 [ int $expires = 0 ] + } + - Return [ Swoole\Http\Cookie ] + } + + Method [ public method withPath ] { + + - Parameters [1] { + Parameter #0 [ string $path = '/' ] + } + - Return [ Swoole\Http\Cookie ] + } + + Method [ public method withDomain ] { + + - Parameters [1] { + Parameter #0 [ string $domain = '' ] + } + - Return [ Swoole\Http\Cookie ] + } + + Method [ public method withSecure ] { + + - Parameters [1] { + Parameter #0 [ bool $secure = false ] + } + - Return [ Swoole\Http\Cookie ] + } + + Method [ public method withHttpOnly ] { + + - Parameters [1] { + Parameter #0 [ bool $httpOnly = false ] + } + - Return [ Swoole\Http\Cookie ] + } + + Method [ public method withSameSite ] { + + - Parameters [1] { + Parameter #0 [ string $sameSite = '' ] + } + - Return [ Swoole\Http\Cookie ] + } + + Method [ public method withPriority ] { + + - Parameters [1] { + Parameter #0 [ string $priority = '' ] + } + - Return [ Swoole\Http\Cookie ] + } + + Method [ public method withPartitioned ] { + + - Parameters [1] { + Parameter #0 [ bool $partitioned = false ] + } + - Return [ Swoole\Http\Cookie ] + } + + Method [ public method toString ] { + + - Parameters [0] { + } + - Return [ string|false ] + } + + Method [ public method toArray ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ public method reset ] { + + - Parameters [0] { + } + - Return [ void ] + } + } + } + Class [ class Swoole\Http\Server extends Swoole\Server ] { - Constants [0] { @@ -6654,7 +6762,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { - Parameters [1] { Parameter #0 [ Swoole\Process $process ] } - - Return [ int ] + - Return [ int|false ] } Method [ public method stats ] { @@ -7195,7 +7303,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { - Parameters [1] { Parameter #0 [ Swoole\Process $process ] } - - Return [ int ] + - Return [ int|false ] } Method [ public method stats ] { @@ -7743,7 +7851,7 @@ Extension [ extension #94 swoole version 6.0.0 ] { - Parameters [1] { Parameter #0 [ Swoole\Process $process ] } - - Return [ int ] + - Return [ int|false ] } Method [ public method stats ] { -- cgit