From 474ce85d6aea625aebcbcb102b5287b144db6af6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 15 Oct 2021 09:26:39 +0200 Subject: update to 4.8.0 --- REFLECTION | 360 +++++++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 329 insertions(+), 31 deletions(-) (limited to 'REFLECTION') diff --git a/REFLECTION b/REFLECTION index 4d7b0d2..9eb3a6c 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #124 swoole version 4.7.1 ] { +Extension [ extension #106 swoole version 4.8.0 ] { - Dependencies { Dependency [ json (Required) ] @@ -28,12 +28,12 @@ Extension [ extension #124 swoole version 4.7.1 ] { } } - - Constants [373] { - Constant [ string SWOOLE_VERSION ] { 4.7.1 } - Constant [ int SWOOLE_VERSION_ID ] { 40701 } + - Constants [381] { + Constant [ string SWOOLE_VERSION ] { 4.8.0 } + Constant [ int SWOOLE_VERSION_ID ] { 40800 } Constant [ int SWOOLE_MAJOR_VERSION ] { 4 } - Constant [ int SWOOLE_MINOR_VERSION ] { 7 } - Constant [ int SWOOLE_RELEASE_VERSION ] { 1 } + Constant [ int SWOOLE_MINOR_VERSION ] { 8 } + Constant [ int SWOOLE_RELEASE_VERSION ] { 0 } Constant [ string SWOOLE_EXTRA_VERSION ] { } Constant [ bool SWOOLE_DEBUG ] { } Constant [ bool SWOOLE_HAVE_COMPRESSION ] { 1 } @@ -41,11 +41,6 @@ Extension [ extension #124 swoole version 4.7.1 ] { Constant [ bool SWOOLE_HAVE_BROTLI ] { 1 } Constant [ bool SWOOLE_USE_HTTP2 ] { 1 } Constant [ bool SWOOLE_USE_SHORTNAME ] { 1 } - Constant [ int SWOOLE_BASE ] { 1 } - Constant [ int SWOOLE_PROCESS ] { 2 } - Constant [ int SWOOLE_IPC_UNSOCK ] { 1 } - Constant [ int SWOOLE_IPC_MSGQUEUE ] { 2 } - Constant [ int SWOOLE_IPC_PREEMPTIVE ] { 3 } Constant [ int SWOOLE_SOCK_TCP ] { 1 } Constant [ int SWOOLE_SOCK_TCP6 ] { 3 } Constant [ int SWOOLE_SOCK_UDP ] { 2 } @@ -163,6 +158,7 @@ Extension [ extension #124 swoole version 4.7.1 ] { Constant [ int SWOOLE_ERROR_WEBSOCKET_BAD_OPCODE ] { 8502 } Constant [ int SWOOLE_ERROR_WEBSOCKET_UNCONNECTED ] { 8503 } Constant [ int SWOOLE_ERROR_WEBSOCKET_HANDSHAKE_FAILED ] { 8504 } + Constant [ int SWOOLE_ERROR_WEBSOCKET_PACK_FAILED ] { 8505 } Constant [ int SWOOLE_ERROR_SERVER_MUST_CREATED_BEFORE_CLIENT ] { 9001 } Constant [ int SWOOLE_ERROR_SERVER_TOO_MANY_SOCKET ] { 9002 } Constant [ int SWOOLE_ERROR_SERVER_WORKER_TERMINATED ] { 9003 } @@ -174,9 +170,10 @@ Extension [ extension #124 swoole version 4.7.1 ] { Constant [ int SWOOLE_ERROR_SERVER_SEND_IN_MASTER ] { 9009 } Constant [ int SWOOLE_ERROR_SERVER_INVALID_REQUEST ] { 9010 } Constant [ int SWOOLE_ERROR_SERVER_CONNECT_FAIL ] { 9011 } - Constant [ int SWOOLE_ERROR_SERVER_WORKER_EXIT_TIMEOUT ] { 9012 } - Constant [ int SWOOLE_ERROR_SERVER_WORKER_ABNORMAL_PIPE_DATA ] { 9013 } - Constant [ int SWOOLE_ERROR_SERVER_WORKER_UNPROCESSED_DATA ] { 9014 } + Constant [ int SWOOLE_ERROR_SERVER_INVALID_COMMAND ] { 9012 } + 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 } Constant [ int SWOOLE_ERROR_CO_OUT_OF_COROUTINE ] { 10001 } Constant [ int SWOOLE_ERROR_CO_HAS_BEEN_BOUND ] { 10002 } Constant [ int SWOOLE_ERROR_CO_HAS_BEEN_DISCARDED ] { 10003 } @@ -248,9 +245,9 @@ Extension [ extension #124 swoole version 4.7.1 ] { Constant [ int SWOOLE_RWLOCK ] { 1 } Constant [ int SWOOLE_SPINLOCK ] { 5 } Constant [ int SWOOLE_TIMER_MIN_MS ] { 1 } - Constant [ float SWOOLE_TIMER_MIN_SEC ] { 0.001 } + Constant [ float SWOOLE_TIMER_MIN_SEC ] { 0,001 } Constant [ int SWOOLE_TIMER_MAX_MS ] { 9223372036854775807 } - Constant [ float SWOOLE_TIMER_MAX_SEC ] { 9.2233720368548E+15 } + Constant [ float SWOOLE_TIMER_MAX_SEC ] { 9,2233720368548E+15 } Constant [ int SWOOLE_DEFAULT_MAX_CORO_NUM ] { 100000 } Constant [ int SWOOLE_CORO_MAX_NUM_LIMIT ] { 9223372036854775807 } Constant [ int SWOOLE_CORO_INIT ] { 0 } @@ -337,6 +334,17 @@ Extension [ extension #124 swoole version 4.7.1 ] { Constant [ int SWOOLE_HTTP2_ERROR_CONNECT_ERROR ] { 10 } Constant [ int SWOOLE_HTTP2_ERROR_ENHANCE_YOUR_CALM ] { 11 } Constant [ int SWOOLE_HTTP2_ERROR_INADEQUATE_SECURITY ] { 12 } + Constant [ int SWOOLE_BASE ] { 1 } + Constant [ int SWOOLE_PROCESS ] { 2 } + Constant [ int SWOOLE_IPC_UNSOCK ] { 1 } + Constant [ int SWOOLE_IPC_MSGQUEUE ] { 2 } + Constant [ int SWOOLE_IPC_PREEMPTIVE ] { 3 } + Constant [ int SWOOLE_SERVER_COMMAND_MASTER ] { 2 } + Constant [ int SWOOLE_SERVER_COMMAND_MANAGER ] { 32 } + Constant [ int SWOOLE_SERVER_COMMAND_REACTOR_THREAD ] { 4 } + Constant [ int SWOOLE_SERVER_COMMAND_EVENT_WORKER ] { 8 } + Constant [ int SWOOLE_SERVER_COMMAND_WORKER ] { 8 } + Constant [ int SWOOLE_SERVER_COMMAND_TASK_WORKER ] { 16 } Constant [ int SWOOLE_DISPATCH_RESULT_DISCARD_PACKET ] { -1 } Constant [ int SWOOLE_DISPATCH_RESULT_CLOSE_CONNECTION ] { -2 } Constant [ int SWOOLE_DISPATCH_RESULT_USERFUNC_FALLBACK ] { -3 } @@ -1490,7 +1498,7 @@ Extension [ extension #124 swoole version 4.7.1 ] { Property [ public $memorySize ] } - - Methods [20] { + - Methods [21] { Method [ public method __construct ] { - Parameters [2] { @@ -1600,6 +1608,12 @@ Extension [ extension #124 swoole version 4.7.1 ] { } } + Method [ public method stats ] { + + - Parameters [0] { + } + } + Method [ public method rewind ] { - Parameters [0] { @@ -1916,7 +1930,7 @@ Extension [ extension #124 swoole version 4.7.1 ] { - Static properties [0] { } - - Static methods [37] { + - Static methods [39] { Method [ static public method create ] { - Parameters [2] { @@ -1965,6 +1979,14 @@ Extension [ extension #124 swoole version 4.7.1 ] { } } + Method [ static public method join ] { + + - Parameters [2] { + Parameter #0 [ $cid_array ] + Parameter #1 [ $timeout ] + } + } + Method [ static public method isCanceled ] { - Parameters [0] { @@ -2041,6 +2063,13 @@ Extension [ extension #124 swoole version 4.7.1 ] { } } + Method [ static public method getStackUsage ] { + + - Parameters [1] { + Parameter #0 [ $cid ] + } + } + Method [ static public method list ] { - Parameters [0] { @@ -4249,7 +4278,7 @@ Extension [ extension #124 swoole version 4.7.1 ] { Property [ public $errMsg ] } - - Methods [165] { + - Methods [185] { Method [ public method __construct ] { - Parameters [1] { @@ -5553,6 +5582,186 @@ Extension [ extension #124 swoole version 4.7.1 ] { Parameter #1 [ $args ] } } + + Method [ public method xLen ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method xAdd ] { + + - Parameters [4] { + Parameter #0 [ $key ] + Parameter #1 [ $id ] + Parameter #2 [ $pairs ] + Parameter #3 [ $options ] + } + } + + Method [ public method xRead ] { + + - Parameters [2] { + Parameter #0 [ $streams ] + Parameter #1 [ $options ] + } + } + + Method [ public method xDel ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $id ] + } + } + + Method [ public method xRange ] { + + - Parameters [4] { + Parameter #0 [ $key ] + Parameter #1 [ $start ] + Parameter #2 [ $end ] + Parameter #3 [ $count ] + } + } + + Method [ public method xRevRange ] { + + - Parameters [4] { + Parameter #0 [ $key ] + Parameter #1 [ $start ] + Parameter #2 [ $end ] + Parameter #3 [ $count ] + } + } + + Method [ public method xTrim ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $options ] + } + } + + Method [ public method xGroupCreate ] { + + - Parameters [4] { + Parameter #0 [ $key ] + Parameter #1 [ $group_name ] + Parameter #2 [ $id ] + Parameter #3 [ $mkstream ] + } + } + + Method [ public method xGroupSetId ] { + + - Parameters [3] { + Parameter #0 [ $key ] + Parameter #1 [ $group_name ] + Parameter #2 [ $id ] + } + } + + Method [ public method xGroupDestroy ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $group_name ] + } + } + + Method [ public method xGroupCreateConsumer ] { + + - Parameters [3] { + Parameter #0 [ $key ] + Parameter #1 [ $group_name ] + Parameter #2 [ $consumer_name ] + } + } + + Method [ public method xGroupDelConsumer ] { + + - Parameters [3] { + Parameter #0 [ $key ] + Parameter #1 [ $group_name ] + Parameter #2 [ $consumer_name ] + } + } + + Method [ public method xReadGroup ] { + + - Parameters [4] { + Parameter #0 [ $group_name ] + Parameter #1 [ $consumer_name ] + Parameter #2 [ $streams ] + Parameter #3 [ $options ] + } + } + + Method [ public method xPending ] { + + - Parameters [3] { + Parameter #0 [ $key ] + Parameter #1 [ $group_name ] + Parameter #2 [ $options ] + } + } + + Method [ public method xAck ] { + + - Parameters [3] { + Parameter #0 [ $key ] + Parameter #1 [ $group_name ] + Parameter #2 [ $id ] + } + } + + Method [ public method xClaim ] { + + - Parameters [6] { + Parameter #0 [ $key ] + Parameter #1 [ $group_name ] + Parameter #2 [ $consumer_name ] + Parameter #3 [ $min_idle_time ] + Parameter #4 [ $id ] + Parameter #5 [ $options ] + } + } + + Method [ public method xAutoClaim ] { + + - Parameters [6] { + Parameter #0 [ $key ] + Parameter #1 [ $group_name ] + Parameter #2 [ $consumer_name ] + Parameter #3 [ $min_idle_time ] + Parameter #4 [ $start ] + Parameter #5 [ $options ] + } + } + + Method [ public method xInfoConsumers ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $group_name ] + } + } + + Method [ public method xInfoGroups ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method xInfoStream ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } } } @@ -5792,8 +6001,9 @@ Extension [ extension #124 swoole version 4.7.1 ] { - Static methods [0] { } - - Properties [26] { + - Properties [28] { Property [ private $onStart ] + Property [ private $onBeforeShutdown ] Property [ private $onShutdown ] Property [ private $onWorkerStart ] Property [ private $onWorkerStop ] @@ -5819,9 +6029,10 @@ Extension [ extension #124 swoole version 4.7.1 ] { Property [ public $taskworker ] Property [ public $worker_pid ] Property [ public $stats_timer ] + Property [ public $admin_server ] } - - Methods [47] { + - Methods [49] { Method [ public method __construct ] { - Parameters [4] { @@ -6069,7 +6280,8 @@ Extension [ extension #124 swoole version 4.7.1 ] { Method [ public method getWorkerPid ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ $worker_id ] } } @@ -6116,6 +6328,26 @@ Extension [ extension #124 swoole version 4.7.1 ] { } } + Method [ public method command ] { + + - Parameters [5] { + Parameter #0 [ $name ] + Parameter #1 [ $process_id ] + Parameter #2 [ $process_type ] + Parameter #3 [ $data ] + Parameter #4 [ $json_encode ] + } + } + + Method [ public method addCommand ] { + + - Parameters [3] { + Parameter #0 [ $name ] + Parameter #1 [ $accepted_process_types ] + Parameter #2 [ callable $callback ] + } + } + Method [ public method addProcess ] { - Parameters [1] { @@ -6786,7 +7018,7 @@ Extension [ extension #124 swoole version 4.7.1 ] { - Static methods [0] { } - - Properties [13] { + - Properties [14] { Property [ public $setting ] Property [ public $connections ] Property [ public $host ] @@ -6800,9 +7032,10 @@ Extension [ extension #124 swoole version 4.7.1 ] { Property [ public $taskworker ] Property [ public $worker_pid ] Property [ public $stats_timer ] + Property [ public $admin_server ] } - - Methods [47] { + - Methods [49] { Method [ public method __construct ] { - Parameters [4] { @@ -7050,7 +7283,8 @@ Extension [ extension #124 swoole version 4.7.1 ] { Method [ public method getWorkerPid ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ $worker_id ] } } @@ -7097,6 +7331,26 @@ Extension [ extension #124 swoole version 4.7.1 ] { } } + Method [ public method command ] { + + - Parameters [5] { + Parameter #0 [ $name ] + Parameter #1 [ $process_id ] + Parameter #2 [ $process_type ] + Parameter #3 [ $data ] + Parameter #4 [ $json_encode ] + } + } + + Method [ public method addCommand ] { + + - Parameters [3] { + Parameter #0 [ $name ] + Parameter #1 [ $accepted_process_types ] + Parameter #2 [ callable $callback ] + } + } + Method [ public method addProcess ] { - Parameters [1] { @@ -7256,7 +7510,7 @@ Extension [ extension #124 swoole version 4.7.1 ] { } } - - Properties [13] { + - Properties [14] { Property [ public $setting ] Property [ public $connections ] Property [ public $host ] @@ -7270,9 +7524,10 @@ Extension [ extension #124 swoole version 4.7.1 ] { Property [ public $taskworker ] Property [ public $worker_pid ] Property [ public $stats_timer ] + Property [ public $admin_server ] } - - Methods [50] { + - Methods [52] { Method [ public method push ] { - Parameters [4] { @@ -7546,7 +7801,8 @@ Extension [ extension #124 swoole version 4.7.1 ] { Method [ public method getWorkerPid ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ $worker_id ] } } @@ -7593,6 +7849,26 @@ Extension [ extension #124 swoole version 4.7.1 ] { } } + Method [ public method command ] { + + - Parameters [5] { + Parameter #0 [ $name ] + Parameter #1 [ $process_id ] + Parameter #2 [ $process_type ] + Parameter #3 [ $data ] + Parameter #4 [ $json_encode ] + } + } + + Method [ public method addCommand ] { + + - Parameters [3] { + Parameter #0 [ $name ] + Parameter #1 [ $accepted_process_types ] + Parameter #2 [ callable $callback ] + } + } + Method [ public method addProcess ] { - Parameters [1] { @@ -7766,7 +8042,7 @@ Extension [ extension #124 swoole version 4.7.1 ] { } } - - Properties [13] { + - Properties [14] { Property [ public $setting ] Property [ public $connections ] Property [ public $host ] @@ -7780,9 +8056,10 @@ Extension [ extension #124 swoole version 4.7.1 ] { Property [ public $taskworker ] Property [ public $worker_pid ] Property [ public $stats_timer ] + Property [ public $admin_server ] } - - Methods [49] { + - Methods [51] { Method [ public method setHandler ] { - Parameters [2] { @@ -8045,7 +8322,8 @@ Extension [ extension #124 swoole version 4.7.1 ] { Method [ public method getWorkerPid ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ $worker_id ] } } @@ -8092,6 +8370,26 @@ Extension [ extension #124 swoole version 4.7.1 ] { } } + Method [ public method command ] { + + - Parameters [5] { + Parameter #0 [ $name ] + Parameter #1 [ $process_id ] + Parameter #2 [ $process_type ] + Parameter #3 [ $data ] + Parameter #4 [ $json_encode ] + } + } + + Method [ public method addCommand ] { + + - Parameters [3] { + Parameter #0 [ $name ] + Parameter #1 [ $accepted_process_types ] + Parameter #2 [ callable $callback ] + } + } + Method [ public method addProcess ] { - Parameters [1] { -- cgit