From e36e91a9c8a442cf1b302462085a145104142d39 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 2 Aug 2022 08:21:44 +0200 Subject: update to 5.0.0 rename to php-pecl-swoole5 raise dependency on PHP 8.0 add postgresql support on Fedora, EL-8 and EL-9 remove curl support on EL-7 --- REFLECTION | 3335 ++++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 2018 insertions(+), 1317 deletions(-) (limited to 'REFLECTION') diff --git a/REFLECTION b/REFLECTION index 5576ab6..6cf632f 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #88 swoole version 4.8.11 ] { +Extension [ extension #88 swoole version 5.0.0 ] { - Dependencies { Dependency [ json (Required) ] @@ -28,12 +28,12 @@ Extension [ extension #88 swoole version 4.8.11 ] { } } - - Constants [395] { - Constant [ string SWOOLE_VERSION ] { 4.8.11 } - Constant [ int SWOOLE_VERSION_ID ] { 40811 } - Constant [ int SWOOLE_MAJOR_VERSION ] { 4 } - Constant [ int SWOOLE_MINOR_VERSION ] { 8 } - Constant [ int SWOOLE_RELEASE_VERSION ] { 11 } + - Constants [400] { + Constant [ string SWOOLE_VERSION ] { 5.0.0 } + Constant [ int SWOOLE_VERSION_ID ] { 50000 } + Constant [ int SWOOLE_MAJOR_VERSION ] { 5 } + Constant [ int SWOOLE_MINOR_VERSION ] { 0 } + Constant [ int SWOOLE_RELEASE_VERSION ] { 0 } Constant [ string SWOOLE_EXTRA_VERSION ] { } Constant [ bool SWOOLE_DEBUG ] { } Constant [ bool SWOOLE_HAVE_COMPRESSION ] { 1 } @@ -176,6 +176,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { Constant [ int SWOOLE_ERROR_SERVER_CONNECT_FAIL ] { 9011 } 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_WORKER_EXIT_TIMEOUT ] { 9101 } Constant [ int SWOOLE_ERROR_SERVER_WORKER_ABNORMAL_PIPE_DATA ] { 9102 } Constant [ int SWOOLE_ERROR_SERVER_WORKER_UNPROCESSED_DATA ] { 9103 } @@ -287,6 +288,29 @@ Extension [ extension #88 swoole version 4.8.11 ] { Constant [ int SWOOLE_HTTP_CLIENT_ESTATUS_REQUEST_TIMEOUT ] { -2 } Constant [ int SWOOLE_HTTP_CLIENT_ESTATUS_SERVER_RESET ] { -3 } Constant [ int SWOOLE_HTTP_CLIENT_ESTATUS_SEND_FAILED ] { -4 } + Constant [ int SWOOLE_HTTP2_TYPE_DATA ] { 0 } + Constant [ int SWOOLE_HTTP2_TYPE_HEADERS ] { 1 } + Constant [ int SWOOLE_HTTP2_TYPE_PRIORITY ] { 2 } + Constant [ int SWOOLE_HTTP2_TYPE_RST_STREAM ] { 3 } + Constant [ int SWOOLE_HTTP2_TYPE_SETTINGS ] { 4 } + Constant [ int SWOOLE_HTTP2_TYPE_PUSH_PROMISE ] { 5 } + Constant [ int SWOOLE_HTTP2_TYPE_PING ] { 6 } + Constant [ int SWOOLE_HTTP2_TYPE_GOAWAY ] { 7 } + Constant [ int SWOOLE_HTTP2_TYPE_WINDOW_UPDATE ] { 8 } + Constant [ int SWOOLE_HTTP2_TYPE_CONTINUATION ] { 9 } + Constant [ int SWOOLE_HTTP2_ERROR_NO_ERROR ] { 0 } + Constant [ int SWOOLE_HTTP2_ERROR_PROTOCOL_ERROR ] { 1 } + Constant [ int SWOOLE_HTTP2_ERROR_INTERNAL_ERROR ] { 2 } + Constant [ int SWOOLE_HTTP2_ERROR_FLOW_CONTROL_ERROR ] { 3 } + Constant [ int SWOOLE_HTTP2_ERROR_SETTINGS_TIMEOUT ] { 4 } + Constant [ int SWOOLE_HTTP2_ERROR_STREAM_CLOSED ] { 5 } + Constant [ int SWOOLE_HTTP2_ERROR_FRAME_SIZE_ERROR ] { 6 } + Constant [ int SWOOLE_HTTP2_ERROR_REFUSED_STREAM ] { 7 } + Constant [ int SWOOLE_HTTP2_ERROR_CANCEL ] { 8 } + Constant [ int SWOOLE_HTTP2_ERROR_COMPRESSION_ERROR ] { 9 } + 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_MYSQLND_CR_UNKNOWN_ERROR ] { 2000 } Constant [ int SWOOLE_MYSQLND_CR_CONNECTION_ERROR ] { 2002 } Constant [ int SWOOLE_MYSQLND_CR_SERVER_GONE_ERROR ] { 2006 } @@ -316,29 +340,6 @@ Extension [ extension #88 swoole version 4.8.11 ] { Constant [ int SWOOLE_REDIS_ERR_CLOSED ] { 6 } Constant [ int SWOOLE_REDIS_ERR_NOAUTH ] { 7 } Constant [ int SWOOLE_REDIS_ERR_ALLOC ] { 8 } - Constant [ int SWOOLE_HTTP2_TYPE_DATA ] { 0 } - Constant [ int SWOOLE_HTTP2_TYPE_HEADERS ] { 1 } - Constant [ int SWOOLE_HTTP2_TYPE_PRIORITY ] { 2 } - Constant [ int SWOOLE_HTTP2_TYPE_RST_STREAM ] { 3 } - Constant [ int SWOOLE_HTTP2_TYPE_SETTINGS ] { 4 } - Constant [ int SWOOLE_HTTP2_TYPE_PUSH_PROMISE ] { 5 } - Constant [ int SWOOLE_HTTP2_TYPE_PING ] { 6 } - Constant [ int SWOOLE_HTTP2_TYPE_GOAWAY ] { 7 } - Constant [ int SWOOLE_HTTP2_TYPE_WINDOW_UPDATE ] { 8 } - Constant [ int SWOOLE_HTTP2_TYPE_CONTINUATION ] { 9 } - Constant [ int SWOOLE_HTTP2_ERROR_NO_ERROR ] { 0 } - Constant [ int SWOOLE_HTTP2_ERROR_PROTOCOL_ERROR ] { 1 } - Constant [ int SWOOLE_HTTP2_ERROR_INTERNAL_ERROR ] { 2 } - Constant [ int SWOOLE_HTTP2_ERROR_FLOW_CONTROL_ERROR ] { 3 } - Constant [ int SWOOLE_HTTP2_ERROR_SETTINGS_TIMEOUT ] { 4 } - Constant [ int SWOOLE_HTTP2_ERROR_STREAM_CLOSED ] { 5 } - Constant [ int SWOOLE_HTTP2_ERROR_FRAME_SIZE_ERROR ] { 6 } - Constant [ int SWOOLE_HTTP2_ERROR_REFUSED_STREAM ] { 7 } - Constant [ int SWOOLE_HTTP2_ERROR_CANCEL ] { 8 } - Constant [ int SWOOLE_HTTP2_ERROR_COMPRESSION_ERROR ] { 9 } - 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 } @@ -359,6 +360,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { Constant [ int SWOOLE_DISPATCH_STREAM ] { 7 } Constant [ int SWOOLE_DISPATCH_CO_CONN_LB ] { 8 } Constant [ int SWOOLE_DISPATCH_CO_REQ_LB ] { 9 } + Constant [ int SWOOLE_DISPATCH_CONCURRENT_LB ] { 10 } Constant [ int SWOOLE_DISPATCH_RESULT_DISCARD_PACKET ] { -1 } Constant [ int SWOOLE_DISPATCH_RESULT_CLOSE_CONNECTION ] { -2 } Constant [ int SWOOLE_DISPATCH_RESULT_USERFUNC_FALLBACK ] { -3 } @@ -424,6 +426,9 @@ Extension [ extension #88 swoole version 4.8.11 ] { Constant [ int WEBSOCKET_CLOSE_EXTENSION_MISSING ] { 1010 } Constant [ int WEBSOCKET_CLOSE_SERVER_ERROR ] { 1011 } Constant [ int WEBSOCKET_CLOSE_TLS ] { 1015 } + Constant [ int SW_PGSQL_ASSOC ] { 1 } + Constant [ int SW_PGSQL_NUM ] { 2 } + Constant [ int SW_PGSQL_BOTH ] { 3 } } - Functions { @@ -431,360 +436,435 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [0] { } + - Return [ string ] } Function [ function swoole_cpu_num ] { - Parameters [0] { } + - Return [ int ] } Function [ function swoole_last_error ] { - Parameters [0] { } + - Return [ int ] } Function [ function swoole_async_dns_lookup_coro ] { - Parameters [3] { - Parameter #0 [ $domain_name ] - Parameter #1 [ $timeout = ] - Parameter #2 [ $type = ] + Parameter #0 [ mixed $domain_name ] + Parameter #1 [ float $timeout = 60 ] + Parameter #2 [ int $type = AF_INET ] } + - Return [ string|false ] } Function [ function swoole_async_set ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ void ] } Function [ function swoole_coroutine_create ] { - Parameters [2] { Parameter #0 [ callable $func ] - Parameter #1 [ ...$params ] + Parameter #1 [ mixed ...$params ] } + - Return [ int|false ] } Function [ function swoole_coroutine_defer ] { - Parameters [1] { Parameter #0 [ callable $callback ] } + - Return [ void ] } Function [ function swoole_coroutine_socketpair ] { - Parameters [3] { - Parameter #0 [ $domain ] - Parameter #1 [ $type ] - Parameter #2 [ $protocol ] + Parameter #0 [ int $domain ] + Parameter #1 [ int $type ] + Parameter #2 [ int $protocol ] } + - Return [ array|false ] } Function [ function swoole_test_kernel_coroutine ] { - Parameters [2] { - Parameter #0 [ $count = ] - Parameter #1 [ $sleep_time = ] + Parameter #0 [ int $count = 100 ] + Parameter #1 [ float $sleep_time = 1.0 ] } + - Return [ void ] } Function [ function swoole_client_select ] { - Parameters [4] { - Parameter #0 [ &$read_array ] - Parameter #1 [ &$write_array ] - Parameter #2 [ &$error_array ] - Parameter #3 [ $timeout = ] + Parameter #0 [ array &$read_array ] + Parameter #1 [ array &$write_array ] + Parameter #2 [ array &$error_array ] + Parameter #3 [ float $timeout = 0.5 ] } + - Return [ int|false ] } Function [ function swoole_select ] { - Parameters [4] { - Parameter #0 [ &$read_array ] - Parameter #1 [ &$write_array ] - Parameter #2 [ &$error_array ] - Parameter #3 [ $timeout = ] + Parameter #0 [ array &$read_array ] + Parameter #1 [ array &$write_array ] + Parameter #2 [ array &$error_array ] + Parameter #3 [ float $timeout = 0.5 ] } + - Return [ int|false ] } Function [ function swoole_set_process_name ] { - Parameters [1] { - Parameter #0 [ $process_name ] + Parameter #0 [ string $process_name ] } + - Return [ bool ] } Function [ function swoole_get_local_ip ] { - Parameters [0] { } + - Return [ array ] } Function [ function swoole_get_local_mac ] { - Parameters [0] { } + - Return [ array ] } Function [ function swoole_strerror ] { - Parameters [2] { - Parameter #0 [ $errno ] - Parameter #1 [ $error_type = ] + Parameter #0 [ int $errno ] + Parameter #1 [ int $error_type = SWOOLE_STRERROR_SYSTEM ] } + - Return [ string ] } Function [ function swoole_errno ] { - Parameters [0] { } + - Return [ int ] } Function [ function swoole_clear_error ] { - Parameters [0] { } + - Return [ void ] } Function [ function swoole_error_log ] { - Parameters [2] { - Parameter #0 [ $level ] - Parameter #1 [ $msg ] + Parameter #0 [ int $level ] + Parameter #1 [ string $msg ] } + - Return [ void ] } Function [ function swoole_error_log_ex ] { - Parameters [3] { - Parameter #0 [ $level ] - Parameter #1 [ $error ] - Parameter #2 [ $msg ] + Parameter #0 [ int $level ] + Parameter #1 [ int $error ] + Parameter #2 [ string $msg ] } + - Return [ void ] } Function [ function swoole_ignore_error ] { - Parameters [1] { - Parameter #0 [ $error ] + Parameter #0 [ int $error ] } + - Return [ void ] } Function [ function swoole_hashcode ] { - Parameters [2] { - Parameter #0 [ $data ] - Parameter #1 [ $type = ] + Parameter #0 [ string $data ] + Parameter #1 [ int $type = 0 ] } + - Return [ int|false ] } Function [ function swoole_mime_type_add ] { - Parameters [2] { - Parameter #0 [ $suffix ] - Parameter #1 [ $mime_type ] + Parameter #0 [ string $suffix ] + Parameter #1 [ string $mime_type ] } + - Return [ bool ] } Function [ function swoole_mime_type_set ] { - Parameters [2] { - Parameter #0 [ $suffix ] - Parameter #1 [ $mime_type ] + Parameter #0 [ string $suffix ] + Parameter #1 [ string $mime_type ] } + - Return [ void ] } Function [ function swoole_mime_type_delete ] { - Parameters [1] { - Parameter #0 [ $suffix ] + Parameter #0 [ string $suffix ] } + - Return [ bool ] } Function [ function swoole_mime_type_get ] { - Parameters [1] { - Parameter #0 [ $filename ] + Parameter #0 [ string $filename ] } + - Return [ string ] } Function [ function swoole_get_mime_type ] { - Parameters [1] { - Parameter #0 [ $filename ] + Parameter #0 [ string $filename ] } + - Return [ string ] } Function [ function swoole_mime_type_exists ] { - Parameters [1] { - Parameter #0 [ $filename ] + Parameter #0 [ string $filename ] } + - Return [ bool ] } Function [ function swoole_mime_type_list ] { - Parameters [0] { } + - Return [ array ] } Function [ function swoole_clear_dns_cache ] { - Parameters [0] { } + - Return [ void ] } Function [ function swoole_substr_unserialize ] { - Parameters [4] { - Parameter #0 [ $str ] - Parameter #1 [ $offset ] - Parameter #2 [ $length = ] - Parameter #3 [ $options = ] + Parameter #0 [ string $str ] + Parameter #1 [ int $offset ] + Parameter #2 [ int $length = 0 ] + Parameter #3 [ array $options = [] ] } + - Return [ mixed ] } Function [ function swoole_substr_json_decode ] { - Parameters [6] { - Parameter #0 [ $json ] - Parameter #1 [ $offset ] - Parameter #2 [ $length = ] - Parameter #3 [ $associative = ] - Parameter #4 [ $depth = ] - Parameter #5 [ $flags = ] + Parameter #0 [ string $str ] + Parameter #1 [ int $offset ] + Parameter #2 [ int $length = 0 ] + Parameter #3 [ bool $associative = false ] + Parameter #4 [ int $depth = 512 ] + Parameter #5 [ int $flags = 0 ] } + - Return [ mixed ] } Function [ function swoole_internal_call_user_shutdown_begin ] { - Parameters [0] { } + - Return [ bool ] } Function [ function swoole_get_objects ] { - Parameters [0] { } - - Return [ array|bool ] + - Return [ array|false ] } Function [ function swoole_get_vm_status ] { - Parameters [0] { } - - Return [ array|bool ] + - Return [ array ] } Function [ function swoole_get_object_by_handle ] { - Parameters [1] { Parameter #0 [ int $handle ] } - - Return [ object|bool ] + - Return [ object|false ] + } + Function [ function swoole_name_resolver_lookup ] { + + - Parameters [2] { + Parameter #0 [ string $name ] + Parameter #1 [ Swoole\NameResolver\Context $ctx ] + } + - Return [ string ] + } + Function [ function swoole_name_resolver_add ] { + + - Parameters [1] { + Parameter #0 [ Swoole\NameResolver $ns ] + } + - Return [ bool ] + } + Function [ function swoole_name_resolver_remove ] { + + - Parameters [1] { + Parameter #0 [ Swoole\NameResolver $ns ] + } + - Return [ bool ] } Function [ function go ] { - Parameters [1] { Parameter #0 [ callable $func ] } + - Return [ int|false ] } Function [ function defer ] { - Parameters [1] { Parameter #0 [ callable $callback ] } + - Return [ void ] } - Method [ public method swoole_event_add ] { + Function [ function swoole_event_add ] { - Parameters [4] { - Parameter #0 [ $fd ] - Parameter #1 [ ?callable $read_callback ] - Parameter #2 [ ?callable $write_callback = ] - Parameter #3 [ $events = ] + Parameter #0 [ mixed $fd ] + Parameter #1 [ ?callable $read_callback = null ] + Parameter #2 [ ?callable $write_callback = null ] + Parameter #3 [ int $events = SWOOLE_EVENT_READ ] } + - Return [ int|false ] } - Method [ public method swoole_event_del ] { + Function [ function swoole_event_del ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ mixed $fd ] } + - Return [ bool ] } - Method [ public method swoole_event_set ] { + Function [ function swoole_event_set ] { - Parameters [4] { - Parameter #0 [ $fd ] - Parameter #1 [ ?callable $read_callback = ] - Parameter #2 [ ?callable $write_callback = ] - Parameter #3 [ $events = ] + Parameter #0 [ mixed $fd ] + Parameter #1 [ ?callable $read_callback = null ] + Parameter #2 [ ?callable $write_callback = null ] + Parameter #3 [ int $events = 0 ] } + - Return [ bool ] } - Method [ public method swoole_event_isset ] { + Function [ function swoole_event_isset ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $events = ] + Parameter #0 [ mixed $fd ] + Parameter #1 [ int $events = SWOOLE_EVENT_READ | SWOOLE_EVENT_WRITE ] } + - Return [ bool ] } - Method [ public method swoole_event_dispatch ] { + Function [ function swoole_event_dispatch ] { - Parameters [0] { } + - Return [ bool ] } - Method [ public method swoole_event_defer ] { + Function [ function swoole_event_defer ] { - Parameters [1] { Parameter #0 [ callable $callback ] } + - Return [ bool ] } - Method [ public method swoole_event_cycle ] { + Function [ function swoole_event_cycle ] { - Parameters [2] { Parameter #0 [ ?callable $callback ] - Parameter #1 [ $before = ] + Parameter #1 [ bool $before = false ] } + - Return [ bool ] } - Method [ public method swoole_event_write ] { + Function [ function swoole_event_write ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $data ] + Parameter #0 [ mixed $fd ] + Parameter #1 [ string $data ] } + - Return [ bool ] } - Method [ public method swoole_event_wait ] { + Function [ function swoole_event_wait ] { - Parameters [0] { } + - Return [ void ] } - Method [ public method swoole_event_exit ] { + Function [ function swoole_event_exit ] { - Parameters [0] { } + - Return [ void ] } - Method [ public method swoole_timer_set ] { + Function [ function swoole_timer_set ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ void ] } - Method [ public method swoole_timer_after ] { + Function [ function swoole_timer_after ] { - Parameters [2] { - Parameter #0 [ $ms ] + Parameter #0 [ int $ms ] Parameter #1 [ callable $callback ] } + - Return [ int|false ] } - Method [ public method swoole_timer_tick ] { + Function [ function swoole_timer_tick ] { - Parameters [2] { - Parameter #0 [ $ms ] + Parameter #0 [ int $ms ] Parameter #1 [ callable $callback ] } + - Return [ int|false ] } - Method [ public method swoole_timer_exists ] { + Function [ function swoole_timer_exists ] { - Parameters [1] { - Parameter #0 [ $timer_id ] + Parameter #0 [ int $timer_id ] } + - Return [ bool ] } - Method [ public method swoole_timer_info ] { + Function [ function swoole_timer_info ] { - Parameters [1] { - Parameter #0 [ $timer_id ] + Parameter #0 [ int $timer_id ] } + - Return [ ?array ] } - Method [ public method swoole_timer_stats ] { + Function [ function swoole_timer_stats ] { - Parameters [0] { } + - Return [ array ] } - Method [ public method swoole_timer_list ] { + Function [ function swoole_timer_list ] { - Parameters [0] { } + - Return [  ] } - Method [ public method swoole_timer_clear ] { + Function [ function swoole_timer_clear ] { - Parameters [1] { - Parameter #0 [ $timer_id ] + Parameter #0 [ int $timer_id ] } + - Return [ bool ] } - Method [ public method swoole_timer_clear_all ] { + Function [ function swoole_timer_clear_all ] { - Parameters [0] { } + - Return [ bool ] } Function [ function swoole_native_socket_create_listen ] { @@ -1004,6 +1084,13 @@ Extension [ extension #88 swoole version 4.8.11 ] { } - 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] { @@ -1180,7 +1267,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { } } - - Classes [52] { + - Classes [55] { Class [ class Swoole\Exception extends Exception implements Throwable, Stringable ] { - Constants [0] { @@ -1375,42 +1462,47 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ static public method add ] { - Parameters [4] { - Parameter #0 [ $fd ] - Parameter #1 [ ?callable $read_callback ] - Parameter #2 [ ?callable $write_callback = ] - Parameter #3 [ $events = ] + Parameter #0 [ mixed $fd ] + Parameter #1 [ ?callable $read_callback = null ] + Parameter #2 [ ?callable $write_callback = null ] + Parameter #3 [ int $events = SWOOLE_EVENT_READ ] } + - Return [ int|false ] } Method [ static public method del ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ mixed $fd ] } + - Return [ bool ] } Method [ static public method set ] { - Parameters [4] { - Parameter #0 [ $fd ] - Parameter #1 [ ?callable $read_callback = ] - Parameter #2 [ ?callable $write_callback = ] - Parameter #3 [ $events = ] + Parameter #0 [ mixed $fd ] + Parameter #1 [ ?callable $read_callback = null ] + Parameter #2 [ ?callable $write_callback = null ] + Parameter #3 [ int $events = 0 ] } + - Return [ bool ] } Method [ static public method isset ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $events = ] + Parameter #0 [ mixed $fd ] + Parameter #1 [ int $events = SWOOLE_EVENT_READ | SWOOLE_EVENT_WRITE ] } + - Return [ bool ] } Method [ static public method dispatch ] { - Parameters [0] { } + - Return [ bool ] } Method [ static public method defer ] { @@ -1418,40 +1510,46 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ callable $callback ] } + - Return [ bool ] } Method [ static public method cycle ] { - Parameters [2] { Parameter #0 [ ?callable $callback ] - Parameter #1 [ $before = ] + Parameter #1 [ bool $before = false ] } + - Return [ bool ] } Method [ static public method write ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $data ] + Parameter #0 [ mixed $fd ] + Parameter #1 [ string $data ] } + - Return [ bool ] } Method [ static public method wait ] { - Parameters [0] { } + - Return [ void ] } Method [ static public method rshutdown ] { - Parameters [0] { } + - Return [ void ] } Method [ static public method exit ] { - Parameters [0] { } + - Return [ void ] } } @@ -1480,57 +1578,64 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method __construct ] { - Parameters [1] { - Parameter #0 [ $value = ] + Parameter #0 [ int $value = 0 ] } } Method [ public method add ] { - Parameters [1] { - Parameter #0 [ $add_value = ] + Parameter #0 [ int $add_value = 1 ] } + - Return [ int ] } Method [ public method sub ] { - Parameters [1] { - Parameter #0 [ $sub_value = ] + Parameter #0 [ int $sub_value = 1 ] } + - Return [ int ] } Method [ public method get ] { - Parameters [0] { } + - Return [ int ] } Method [ public method set ] { - Parameters [1] { - Parameter #0 [ $value ] + Parameter #0 [ int $value ] } + - Return [ void ] } Method [ public method wait ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ float $timeout = 1.0 ] } + - Return [ bool ] } Method [ public method wakeup ] { - Parameters [1] { - Parameter #0 [ $count = ] + Parameter #0 [ int $count = 1 ] } + - Return [ bool ] } Method [ public method cmpset ] { - Parameters [2] { - Parameter #0 [ $cmp_value ] - Parameter #1 [ $new_value ] + Parameter #0 [ int $cmp_value ] + Parameter #1 [ int $new_value ] } + - Return [ bool ] } } } @@ -1553,43 +1658,48 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method __construct ] { - Parameters [1] { - Parameter #0 [ $value = ] + Parameter #0 [ int $value = 0 ] } } Method [ public method add ] { - Parameters [1] { - Parameter #0 [ $add_value = ] + Parameter #0 [ int $add_value = 1 ] } + - Return [ int ] } Method [ public method sub ] { - Parameters [1] { - Parameter #0 [ $sub_value = ] + Parameter #0 [ int $sub_value = 1 ] } + - Return [ int ] } Method [ public method get ] { - Parameters [0] { } + - Return [ int ] } Method [ public method set ] { - Parameters [1] { - Parameter #0 [ $value ] + Parameter #0 [ int $value ] } + - Return [ void ] } Method [ public method cmpset ] { - Parameters [2] { - Parameter #0 [ $cmp_value ] - Parameter #1 [ $new_value ] + Parameter #0 [ int $cmp_value ] + Parameter #1 [ int $new_value ] } + - Return [ bool ] } } } @@ -1618,8 +1728,8 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method __construct ] { - Parameters [2] { - Parameter #0 [ $type = ] - Parameter #1 [ $filename = ] + Parameter #0 [ int $type = SWOOLE_MUTEX ] + Parameter #1 [ string $filename = '' ] } } @@ -1633,43 +1743,50 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method lockwait ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ float $timeout = 1.0 ] } + - Return [ bool ] } Method [ public method trylock ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method lock_read ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method trylock_read ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method unlock ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method destroy ] { - Parameters [0] { } + - Return [ void ] } } } @@ -1691,41 +1808,46 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ static public method wait ] { - Parameters [1] { - Parameter #0 [ $blocking = ] + Parameter #0 [ bool $blocking = true ] } + - Return [ array|false ] } Method [ static public method signal ] { - Parameters [2] { - Parameter #0 [ $signal_no ] - Parameter #1 [ $callback ] + Parameter #0 [ int $signal_no ] + Parameter #1 [ ?callable $callback = null ] } + - Return [ bool ] } Method [ static public method alarm ] { - Parameters [2] { - Parameter #0 [ $usec ] - Parameter #1 [ $type = ] + Parameter #0 [ int $usec ] + Parameter #1 [ int $type = 0 ] } + - Return [ bool ] } Method [ static public method kill ] { - Parameters [2] { - Parameter #0 [ $pid ] - Parameter #1 [ $signal_no = ] + Parameter #0 [ int $pid ] + Parameter #1 [ int $signal_no = SIGTERM ] } + - Return [ bool ] } Method [ static public method daemon ] { - Parameters [3] { - Parameter #0 [ $nochdir = ] - Parameter #1 [ $noclose = ] - Parameter #2 [ $pipes = ] + Parameter #0 [ bool $nochdir = true ] + Parameter #1 [ bool $noclose = true ] + Parameter #2 [ array $pipes = [] ] } + - Return [ bool ] } Method [ static public method setAffinity ] { @@ -1733,6 +1855,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $cpu_settings ] } + - Return [ bool ] } } @@ -1750,9 +1873,9 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [4] { Parameter #0 [ callable $callback ] - Parameter #1 [ $redirect_stdin_and_stdout = ] - Parameter #2 [ $pipe_type = ] - Parameter #3 [ $enable_coroutine = ] + Parameter #1 [ bool $redirect_stdin_and_stdout = false ] + Parameter #2 [ int $pipe_type = SOCK_DGRAM ] + Parameter #3 [ bool $enable_coroutine = false ] } } @@ -1765,16 +1888,18 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method setPriority ] { - Parameters [2] { - Parameter #0 [ $which ] - Parameter #1 [ $priority ] + Parameter #0 [ int $which ] + Parameter #1 [ int $priority ] } + - Return [ bool ] } Method [ public method getPriority ] { - Parameters [1] { - Parameter #0 [ $which ] + Parameter #0 [ int $which ] } + - Return [ int ] } Method [ public method set ] { @@ -1782,109 +1907,126 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ void ] } Method [ public method setTimeout ] { - Parameters [1] { - Parameter #0 [ $seconds ] + Parameter #0 [ float $seconds ] } + - Return [ bool ] } Method [ public method setBlocking ] { - Parameters [1] { - Parameter #0 [ $blocking ] + Parameter #0 [ bool $blocking ] } + - Return [ void ] } Method [ public method useQueue ] { - Parameters [3] { - Parameter #0 [ $key = ] - Parameter #1 [ $mode = ] - Parameter #2 [ $capacity = ] + Parameter #0 [ int $key = 0 ] + Parameter #1 [ int $mode = 2 ] + Parameter #2 [ int $capacity = -1 ] } + - Return [ bool ] } Method [ public method statQueue ] { - Parameters [0] { } + - Return [ array|false ] } Method [ public method freeQueue ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method start ] { - Parameters [0] { } + - Return [ int|bool ] } Method [ public method write ] { - Parameters [1] { - Parameter #0 [ $data ] + Parameter #0 [ string $data ] } + - Return [ int|false ] } Method [ public method close ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ int $which = 0 ] } + - Return [ bool ] } Method [ public method read ] { - Parameters [1] { - Parameter #0 [ $size = ] + Parameter #0 [ int $size = 8192 ] } + - Return [ string|false ] } Method [ public method push ] { - Parameters [1] { - Parameter #0 [ $data ] + Parameter #0 [ string $data ] } + - Return [ bool ] } Method [ public method pop ] { - Parameters [1] { - Parameter #0 [ $size = ] + Parameter #0 [ int $size = 65536 ] } + - Return [ string|false ] } Method [ public method exit ] { - Parameters [1] { - Parameter #0 [ $exit_code = ] + Parameter #0 [ int $exit_code = 0 ] } + - Return [ void ] } Method [ public method exec ] { - Parameters [2] { - Parameter #0 [ $exec_file ] - Parameter #1 [ $args ] + Parameter #0 [ string $exec_file ] + Parameter #1 [ array $args ] } + - Return [ bool ] } Method [ public method exportSocket ] { - Parameters [0] { } + - Return [ Swoole\Coroutine\Socket|false ] } Method [ public method name ] { - Parameters [1] { - Parameter #0 [ $process_name ] + Parameter #0 [ string $process_name ] } + - Return [ bool ] } } } @@ -1909,10 +2051,10 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method __construct ] { - Parameters [4] { - Parameter #0 [ $worker_num ] - Parameter #1 [ $ipc_type = ] - Parameter #2 [ $msgqueue_key = ] - Parameter #3 [ $enable_coroutine = ] + Parameter #0 [ int $worker_num ] + Parameter #1 [ int $ipc_type = SWOOLE_IPC_NONE ] + Parameter #2 [ int $msgqueue_key = 0 ] + Parameter #3 [ bool $enable_coroutine = false ] } } @@ -1927,61 +2069,70 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ void ] } Method [ public method on ] { - Parameters [2] { - Parameter #0 [ $event_name ] + Parameter #0 [ string $name ] Parameter #1 [ callable $callback ] } + - Return [ bool ] } Method [ public method getProcess ] { - Parameters [1] { - Parameter #0 [ $worker_id = ] + Parameter #0 [ int $work_id = -1 ] } + - Return [ Swoole\Process|false ] } Method [ public method listen ] { - Parameters [3] { - Parameter #0 [ $host ] - Parameter #1 [ $port = ] - Parameter #2 [ $backlog = ] + Parameter #0 [ string $host ] + Parameter #1 [ int $port = 0 ] + Parameter #2 [ int $backlog = 2048 ] } + - Return [ bool ] } Method [ public method write ] { - Parameters [1] { - Parameter #0 [ $data ] + Parameter #0 [ string $data ] } + - Return [ bool ] } Method [ public method detach ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method start ] { - Parameters [0] { } + - Return [ ?false ] } Method [ public method stop ] { - Parameters [0] { } + - Return [ void ] } Method [ public method shutdown ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -2009,46 +2160,51 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method __construct ] { - Parameters [2] { - Parameter #0 [ $table_size ] - Parameter #1 [ $conflict_proportion = ] + Parameter #0 [ int $table_size ] + Parameter #1 [ float $conflict_proportion = 0.2 ] } } Method [ public method column ] { - Parameters [3] { - Parameter #0 [ $name ] - Parameter #1 [ $type ] - Parameter #2 [ $size = ] + Parameter #0 [ string $name ] + Parameter #1 [ int $type ] + Parameter #2 [ int $size = 0 ] } + - Return [ bool ] } Method [ public method create ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method destroy ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method set ] { - Parameters [2] { - Parameter #0 [ $key ] + Parameter #0 [ string $key ] Parameter #1 [ array $value ] } + - Return [ bool ] } Method [ public method get ] { - Parameters [2] { - Parameter #0 [ $key ] - Parameter #1 [ $field = ] + Parameter #0 [ string $key ] + Parameter #1 [ ?string $field = null ] } + - Return [ array|string|int|float|false ] } Method [ public method count ] { @@ -2061,65 +2217,74 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method del ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ string $key ] } + - Return [ bool ] } Method [ public method delete ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ string $key ] } + - Return [ bool ] } Method [ public method exists ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ string $key ] } + - Return [ bool ] } Method [ public method exist ] { - Parameters [1] { - Parameter #0 [ $key ] + Parameter #0 [ string $key ] } + - Return [ bool ] } Method [ public method incr ] { - Parameters [3] { - Parameter #0 [ $key ] - Parameter #1 [ $column ] - Parameter #2 [ $incrby = ] + Parameter #0 [ string $key ] + Parameter #1 [ string $column ] + Parameter #2 [ int|float $incrby = 1 ] } + - Return [ int|float ] } Method [ public method decr ] { - Parameters [3] { - Parameter #0 [ $key ] - Parameter #1 [ $column ] - Parameter #2 [ $decrby = ] + Parameter #0 [ string $key ] + Parameter #1 [ string $column ] + Parameter #2 [ int|float $incrby = 1 ] } + - Return [ int|float ] } Method [ public method getSize ] { - Parameters [0] { } + - Return [ int ] } Method [ public method getMemorySize ] { - Parameters [0] { } + - Return [ int ] } Method [ public method stats ] { - Parameters [0] { } + - Return [ array|false ] } Method [ public method rewind ] { @@ -2173,63 +2338,72 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ void ] } Method [ static public method tick ] { - Parameters [3] { - Parameter #0 [ $ms ] + Parameter #0 [ int $ms ] Parameter #1 [ callable $callback ] - Parameter #2 [ ...$params ] + Parameter #2 [ mixed ...$params ] } + - Return [ int|false ] } Method [ static public method after ] { - Parameters [3] { - Parameter #0 [ $ms ] + Parameter #0 [ int $ms ] Parameter #1 [ callable $callback ] - Parameter #2 [ ...$params ] + Parameter #2 [ mixed ...$params ] } + - Return [ int|false ] } Method [ static public method exists ] { - Parameters [1] { - Parameter #0 [ $timer_id ] + Parameter #0 [ int $timer_id ] } + - Return [ bool ] } Method [ static public method info ] { - Parameters [1] { - Parameter #0 [ $timer_id ] + Parameter #0 [ int $timer_id ] } + - Return [ ?array ] } Method [ static public method stats ] { - Parameters [0] { } + - Return [ array ] } Method [ static public method list ] { - Parameters [0] { } + - Return [ Swoole\Timer\Iterator ] } Method [ static public method clear ] { - Parameters [1] { - Parameter #0 [ $timer_id ] + Parameter #0 [ int $timer_id ] } + - Return [ bool ] } Method [ static public method clearAll ] { - Parameters [0] { } + - Return [ bool ] } } @@ -2445,276 +2619,321 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Static properties [0] { } - - Static methods [39] { + - Static methods [40] { Method [ static public method create ] { - Parameters [2] { Parameter #0 [ callable $func ] - Parameter #1 [ ...$params ] + Parameter #1 [ mixed ...$param ] } + - Return [ int|false ] } Method [ static public method defer ] { - Parameters [1] { - Parameter #0 [ $callback ] + Parameter #0 [ callable $callback ] } + - Return [ void ] } Method [ static public method set ] { - Parameters [1] { - Parameter #0 [ $options ] + Parameter #0 [ array $options ] } + - Return [ void ] } Method [ static public method getOptions ] { - Parameters [0] { } + - Return [ ?array ] } Method [ static public method exists ] { - Parameters [1] { - Parameter #0 [ $cid ] + Parameter #0 [ int $cid ] } + - Return [ bool ] } Method [ static public method yield ] { - Parameters [0] { } + - Return [ bool ] } Method [ static public method cancel ] { - Parameters [1] { - Parameter #0 [ $cid ] + Parameter #0 [ int $cid ] } + - Return [ bool ] } Method [ static public method join ] { - Parameters [2] { - Parameter #0 [ $cid_array ] - Parameter #1 [ $timeout = ] + Parameter #0 [ array $cid_array ] + Parameter #1 [ float $timeout = -1 ] } + - Return [ bool ] } Method [ static public method isCanceled ] { - Parameters [0] { } + - Return [ bool ] } Method [ static public method suspend ] { - Parameters [0] { } + - Return [ bool ] } Method [ static public method resume ] { - Parameters [1] { - Parameter #0 [ $cid ] + Parameter #0 [ int $cid ] } + - Return [ bool ] } Method [ static public method stats ] { - Parameters [0] { } + - Return [ array ] } Method [ static public method getCid ] { - Parameters [0] { } + - Return [ int ] } Method [ static public method getuid ] { - Parameters [0] { } + - Return [ int ] } Method [ static public method getPcid ] { - Parameters [1] { - Parameter #0 [ $cid = ] + Parameter #0 [ int $cid = 0 ] } + - Return [ int|false ] } Method [ static public method getContext ] { - Parameters [1] { - Parameter #0 [ $cid = ] + Parameter #0 [ int $cid = 0 ] } + - Return [ ?Swoole\Coroutine\Context ] } Method [ static public method getBackTrace ] { - Parameters [3] { - Parameter #0 [ $cid = ] - Parameter #1 [ $options = ] - Parameter #2 [ $limit = ] + Parameter #0 [ int $cid = 0 ] + Parameter #1 [ int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT ] + Parameter #2 [ int $limit = 0 ] } + - Return [ array|false ] } Method [ static public method printBackTrace ] { - Parameters [3] { - Parameter #0 [ $cid = ] - Parameter #1 [ $options = ] - Parameter #2 [ $limit = ] + Parameter #0 [ int $cid = 0 ] + Parameter #1 [ int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT ] + Parameter #2 [ int $limit = 0 ] } + - Return [ void ] } Method [ static public method getElapsed ] { - Parameters [1] { - Parameter #0 [ $cid = ] + Parameter #0 [ int $cid = 0 ] } + - Return [ int ] } Method [ static public method getStackUsage ] { - Parameters [1] { - Parameter #0 [ $cid = ] + Parameter #0 [ int $cid = 0 ] } + - Return [ int|false ] } Method [ static public method list ] { - Parameters [0] { } + - Return [ Swoole\Coroutine\Iterator ] } Method [ static public method listCoroutines ] { - Parameters [0] { } + - Return [ Swoole\Coroutine\Iterator ] } Method [ static public method enableScheduler ] { - Parameters [0] { } + - Return [ bool ] } Method [ static public method disableScheduler ] { - Parameters [0] { } + - Return [ bool ] + } + + Method [ static public method getExecuteTime ] { + + - Parameters [0] { + } + - Return [ int ] } Method [ static public method gethostbyname ] { - Parameters [3] { - Parameter #0 [ $domain_name ] - Parameter #1 [ $family = ] - Parameter #2 [ $timeout = ] + Parameter #0 [ string $domain_name ] + Parameter #1 [ int $type = AF_INET ] + Parameter #2 [ float $timeout = -1 ] } + - Return [ string|false ] } Method [ static public method dnsLookup ] { - Parameters [3] { - Parameter #0 [ $domain_name ] - Parameter #1 [ $timeout = ] - Parameter #2 [ $type = ] + Parameter #0 [ string $domain_name ] + Parameter #1 [ float $timeout = 60 ] + Parameter #2 [ int $type = AF_INET ] } + - Return [ string|false ] } Method [ static public method exec ] { - Parameters [2] { - Parameter #0 [ $command ] - Parameter #1 [ $get_error_stream = ] + Parameter #0 [ string $command ] + Parameter #1 [ bool $get_error_stream = false ] } + - Return [ array|false ] } Method [ static public method sleep ] { - Parameters [1] { - Parameter #0 [ $seconds ] + Parameter #0 [ float $seconds ] } + - Return [ bool ] } Method [ static public method getaddrinfo ] { - Parameters [6] { - Parameter #0 [ $hostname ] - Parameter #1 [ $family = ] - Parameter #2 [ $socktype = ] - Parameter #3 [ $protocol = ] - Parameter #4 [ $service = ] - Parameter #5 [ $timeout = ] + Parameter #0 [ string $domain ] + Parameter #1 [ int $family = AF_INET ] + Parameter #2 [ int $socktype = SOCK_STREAM ] + Parameter #3 [ int $protocol = STREAM_IPPROTO_TCP ] + Parameter #4 [ ?string $service = null ] + Parameter #5 [ float $timeout = -1 ] } + - Return [ array|bool ] } Method [ static public method statvfs ] { - Parameters [1] { - Parameter #0 [ $path ] + Parameter #0 [ string $path ] } + - Return [ array ] } Method [ static public method readFile ] { - - Parameters [1] { - Parameter #0 [ $filename ] + - Parameters [2] { + Parameter #0 [ string $filename ] + Parameter #1 [ int $flag = 0 ] } + - Return [ string|false ] } Method [ static public method writeFile ] { - Parameters [3] { - Parameter #0 [ $filename ] - Parameter #1 [ $data ] - Parameter #2 [ $flags = ] + Parameter #0 [ string $filename ] + Parameter #1 [ string $fileContent ] + Parameter #2 [ int $flags = 0 ] } + - Return [ int|false ] } Method [ static public method wait ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ float $timeout = -1 ] } + - Return [ array|false ] } Method [ static public method waitPid ] { - Parameters [2] { - Parameter #0 [ $pid ] - Parameter #1 [ $timeout = ] + Parameter #0 [ int $pid ] + Parameter #1 [ float $timeout = -1 ] } + - Return [ array|false ] } Method [ static public method waitSignal ] { - Parameters [2] { - Parameter #0 [ $signo ] - Parameter #1 [ $timeout = ] + Parameter #0 [ int $signo ] + Parameter #1 [ float $timeout = -1 ] } + - Return [ bool ] } Method [ static public method waitEvent ] { - Parameters [3] { - Parameter #0 [ $fd ] - Parameter #1 [ $events = ] - Parameter #2 [ $timeout = ] + Parameter #0 [ mixed $socket ] + Parameter #1 [ int $events = SWOOLE_EVENT_READ ] + Parameter #2 [ float $timeout = -1 ] } + - Return [ int|false ] } Method [ static public method fread ] { - Parameters [2] { Parameter #0 [ $handle ] - Parameter #1 [ $length = ] + Parameter #1 [ int $length = 0 ] } + - Return [ string|false ] } Method [ static public method fgets ] { @@ -2722,15 +2941,17 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ $handle ] } + - Return [ string|false ] } Method [ static public method fwrite ] { - Parameters [3] { Parameter #0 [ $handle ] - Parameter #1 [ $string ] - Parameter #2 [ $length = ] + Parameter #1 [ string $data ] + Parameter #2 [ int $length = 0 ] } + - Return [ int|false ] } } @@ -3150,12 +3371,14 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [0] { } + - Return [ int ] } Method [ public method getStatus ] { - Parameters [0] { } + - Return [ int ] } Method [ public method __construct ] { @@ -3242,118 +3465,133 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ static public method gethostbyname ] { - Parameters [3] { - Parameter #0 [ $domain_name ] - Parameter #1 [ $family = ] - Parameter #2 [ $timeout = ] + Parameter #0 [ string $domain_name ] + Parameter #1 [ int $type = AF_INET ] + Parameter #2 [ float $timeout = -1 ] } + - Return [ string|false ] } Method [ static public method dnsLookup ] { - Parameters [3] { - Parameter #0 [ $domain_name ] - Parameter #1 [ $timeout = ] - Parameter #2 [ $type = ] + Parameter #0 [ string $domain_name ] + Parameter #1 [ float $timeout = 60 ] + Parameter #2 [ int $type = AF_INET ] } + - Return [ string|false ] } Method [ static public method exec ] { - Parameters [2] { - Parameter #0 [ $command ] - Parameter #1 [ $get_error_stream = ] + Parameter #0 [ string $command ] + Parameter #1 [ bool $get_error_stream = false ] } + - Return [ array|false ] } Method [ static public method sleep ] { - Parameters [1] { - Parameter #0 [ $seconds ] + Parameter #0 [ float $seconds ] } + - Return [ bool ] } Method [ static public method getaddrinfo ] { - Parameters [6] { - Parameter #0 [ $hostname ] - Parameter #1 [ $family = ] - Parameter #2 [ $socktype = ] - Parameter #3 [ $protocol = ] - Parameter #4 [ $service = ] - Parameter #5 [ $timeout = ] + Parameter #0 [ string $domain ] + Parameter #1 [ int $family = AF_INET ] + Parameter #2 [ int $socktype = SOCK_STREAM ] + Parameter #3 [ int $protocol = STREAM_IPPROTO_TCP ] + Parameter #4 [ ?string $service = null ] + Parameter #5 [ float $timeout = -1 ] } + - Return [ array|bool ] } Method [ static public method statvfs ] { - Parameters [1] { - Parameter #0 [ $path ] + Parameter #0 [ string $path ] } + - Return [ array ] } Method [ static public method readFile ] { - - Parameters [1] { - Parameter #0 [ $filename ] + - Parameters [2] { + Parameter #0 [ string $filename ] + Parameter #1 [ int $flag = 0 ] } + - Return [ string|false ] } Method [ static public method writeFile ] { - Parameters [3] { - Parameter #0 [ $filename ] - Parameter #1 [ $data ] - Parameter #2 [ $flags = ] + Parameter #0 [ string $filename ] + Parameter #1 [ string $fileContent ] + Parameter #2 [ int $flags = 0 ] } + - Return [ int|false ] } Method [ static public method wait ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ float $timeout = -1 ] } + - Return [ array|false ] } Method [ static public method waitPid ] { - Parameters [2] { - Parameter #0 [ $pid ] - Parameter #1 [ $timeout = ] + Parameter #0 [ int $pid ] + Parameter #1 [ float $timeout = -1 ] } + - Return [ array|false ] } Method [ static public method waitSignal ] { - Parameters [2] { - Parameter #0 [ $signo ] - Parameter #1 [ $timeout = ] + Parameter #0 [ int $signo ] + Parameter #1 [ float $timeout = -1 ] } + - Return [ bool ] } Method [ static public method waitEvent ] { - Parameters [3] { - Parameter #0 [ $fd ] - Parameter #1 [ $events = ] - Parameter #2 [ $timeout = ] + Parameter #0 [ mixed $socket ] + Parameter #1 [ int $events = SWOOLE_EVENT_READ ] + Parameter #2 [ float $timeout = -1 ] } + - Return [ int|false ] } Method [ static public method fread ] { - Parameters [2] { Parameter #0 [ $handle ] - Parameter #1 [ $length = ] + Parameter #1 [ int $length = 0 ] } + - Return [ string|false ] } Method [ static public method fwrite ] { - Parameters [3] { Parameter #0 [ $handle ] - Parameter #1 [ $string ] - Parameter #2 [ $length = ] + Parameter #1 [ string $data ] + Parameter #2 [ int $length = 0 ] } + - Return [ int|false ] } Method [ static public method fgets ] { @@ -3361,6 +3599,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ $handle ] } + - Return [ string|false ] } } @@ -3390,17 +3629,19 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [2] { Parameter #0 [ callable $func ] - Parameter #1 [ ...$params ] + Parameter #1 [ mixed ...$param ] } + - Return [ void ] } Method [ public method parallel ] { - Parameters [3] { - Parameter #0 [ $n ] - Parameter #1 [ callable $func = ] - Parameter #2 [ ...$params ] + Parameter #0 [ int $n ] + Parameter #1 [ callable $func ] + Parameter #2 [ mixed ...$param ] } + - Return [ void ] } Method [ public method set ] { @@ -3408,18 +3649,21 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ void ] } Method [ public method getOptions ] { - Parameters [0] { } + - Return [ ?array ] } Method [ public method start ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -3444,53 +3688,60 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method __construct ] { - Parameters [1] { - Parameter #0 [ $size = ] + Parameter #0 [ int $size = 1 ] } } Method [ public method push ] { - Parameters [2] { - Parameter #0 [ $data ] - Parameter #1 [ $timeout = ] + Parameter #0 [ mixed $data ] + Parameter #1 [ float $timeout = -1 ] } + - Return [ bool ] } Method [ public method pop ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ float $timeout = -1 ] } + - Return [ mixed ] } Method [ public method isEmpty ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isFull ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method close ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method stats ] { - Parameters [0] { } + - Return [ array ] } Method [ public method length ] { - Parameters [0] { } + - Return [ int ] } } } @@ -3507,22 +3758,25 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ static public method enableCoroutine ] { - Parameters [2] { - Parameter #0 [ $enable = ] - Parameter #1 [ $flags = ] + Parameter #0 [ int|bool $enable = SWOOLE_HOOK_ALL ] + Parameter #1 [ int $flags = SWOOLE_HOOK_ALL ] } + - Return [ bool ] } Method [ static public method getHookFlags ] { - Parameters [0] { } + - Return [ int ] } Method [ static public method setHookFlags ] { - Parameters [1] { - Parameter #0 [ $flags ] + Parameter #0 [ int $flags ] } + - Return [ bool ] } } @@ -3632,7 +3886,14 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ static public method import ] { + + - Parameters [1] { + Parameter #0 [ $stream ] + } + - Return [ Swoole\Coroutine\Socket|false ] + } } - Properties [6] { @@ -3648,175 +3909,196 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method __construct ] { - Parameters [3] { - Parameter #0 [ $domain ] - Parameter #1 [ $type ] - Parameter #2 [ $protocol = ] + Parameter #0 [ int $domain ] + Parameter #1 [ int $type ] + Parameter #2 [ int $protocol = IPPROTO_IP ] } } Method [ public method bind ] { - Parameters [2] { - Parameter #0 [ $address ] - Parameter #1 [ $port = ] + Parameter #0 [ string $address ] + Parameter #1 [ int $port = 0 ] } + - Return [ bool ] } Method [ public method listen ] { - Parameters [1] { - Parameter #0 [ $backlog = ] + Parameter #0 [ int $backlog = 512 ] } + - Return [ bool ] } Method [ public method accept ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ float $timeout = 0 ] } + - Return [ Swoole\Coroutine\Socket|false ] } Method [ public method connect ] { - Parameters [3] { - Parameter #0 [ $host ] - Parameter #1 [ $port = ] - Parameter #2 [ $timeout = ] + Parameter #0 [ string $host ] + Parameter #1 [ int $port = 0 ] + Parameter #2 [ float $timeout = 0 ] } + - Return [ bool ] } Method [ public method checkLiveness ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method peek ] { - Parameters [1] { - Parameter #0 [ $length = ] + Parameter #0 [ int $length = 65536 ] } + - Return [ string|false ] } Method [ public method recv ] { - Parameters [2] { - Parameter #0 [ $length = ] - Parameter #1 [ $timeout = ] + Parameter #0 [ int $length = 65536 ] + Parameter #1 [ float $timeout = 0 ] } + - Return [ string|false ] } Method [ public method recvAll ] { - Parameters [2] { - Parameter #0 [ $length = ] - Parameter #1 [ $timeout = ] + Parameter #0 [ int $length = 65536 ] + Parameter #1 [ float $timeout = 0 ] } + - Return [ string|false ] } Method [ public method recvLine ] { - Parameters [2] { - Parameter #0 [ $length = ] - Parameter #1 [ $timeout = ] + Parameter #0 [ int $length = 65535 ] + Parameter #1 [ float $timeout = 0 ] } + - Return [ string|false ] } Method [ public method recvWithBuffer ] { - Parameters [2] { - Parameter #0 [ $length = ] - Parameter #1 [ $timeout = ] + Parameter #0 [ int $length = 65535 ] + Parameter #1 [ float $timeout = 0 ] } + - Return [ string|false ] } Method [ public method recvPacket ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ float $timeout = 0 ] } + - Return [ string|false ] } Method [ public method send ] { - Parameters [2] { - Parameter #0 [ $data ] - Parameter #1 [ $timeout = ] + Parameter #0 [ string $data ] + Parameter #1 [ float $timeout = 0 ] } + - Return [ int|false ] } Method [ public method readVector ] { - Parameters [2] { - Parameter #0 [ $io_vector ] - Parameter #1 [ $timeout = ] + Parameter #0 [ array $io_vector ] + Parameter #1 [ float $timeout = 0 ] } + - Return [ array|false ] } Method [ public method readVectorAll ] { - Parameters [2] { - Parameter #0 [ $io_vector ] - Parameter #1 [ $timeout = ] + Parameter #0 [ array $io_vector ] + Parameter #1 [ float $timeout = 0 ] } + - Return [ array|false ] } Method [ public method writeVector ] { - Parameters [2] { - Parameter #0 [ $io_vector ] - Parameter #1 [ $timeout = ] + Parameter #0 [ array $io_vector ] + Parameter #1 [ float $timeout = 0 ] } + - Return [ int|false ] } Method [ public method writeVectorAll ] { - Parameters [2] { - Parameter #0 [ $io_vector ] - Parameter #1 [ $timeout = ] + Parameter #0 [ array $io_vector ] + Parameter #1 [ float $timeout = 0 ] } + - Return [ int|false ] } Method [ public method sendFile ] { - Parameters [3] { - Parameter #0 [ $filename ] - Parameter #1 [ $offset = ] - Parameter #2 [ $length = ] + Parameter #0 [ string $file ] + Parameter #1 [ int $offset = 0 ] + Parameter #2 [ int $length = 0 ] } + - Return [ bool ] } Method [ public method sendAll ] { - Parameters [2] { - Parameter #0 [ $data ] - Parameter #1 [ $timeout = ] + Parameter #0 [ string $data ] + Parameter #1 [ float $timeout = 0 ] } + - Return [ int|false ] } Method [ public method recvfrom ] { - Parameters [2] { - Parameter #0 [ &$peername ] - Parameter #1 [ $timeout = ] + Parameter #0 [ mixed &$peername ] + Parameter #1 [ float $timeout = 0 ] } + - Return [ string|false ] } Method [ public method sendto ] { - Parameters [3] { - Parameter #0 [ $addr ] - Parameter #1 [ $port ] - Parameter #2 [ $data ] + Parameter #0 [ string $addr ] + Parameter #1 [ int $port ] + Parameter #2 [ string $data ] } + - Return [ int|false ] } Method [ public method getOption ] { - Parameters [2] { - Parameter #0 [ $level ] - Parameter #1 [ $opt_name ] + Parameter #0 [ int $level ] + Parameter #1 [ int $opt_name ] } + - Return [ mixed ] } Method [ public method setProtocol ] { @@ -3824,59 +4106,68 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ bool ] } Method [ public method setOption ] { - Parameters [3] { - Parameter #0 [ $level ] - Parameter #1 [ $opt_name ] - Parameter #2 [ $opt_value ] + Parameter #0 [ int $level ] + Parameter #1 [ int $opt_name ] + Parameter #2 [ mixed $opt_value ] } + - Return [ bool ] } Method [ public method sslHandshake ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method shutdown ] { - Parameters [1] { - Parameter #0 [ $how = ] + Parameter #0 [ int $how = 2 ] } + - Return [ bool ] } Method [ public method cancel ] { - Parameters [1] { - Parameter #0 [ $event = ] + Parameter #0 [ int $event = SWOOLE_EVENT_READ ] } + - Return [ bool ] } Method [ public method close ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method getpeername ] { - Parameters [0] { } + - Return [ array|false ] } Method [ public method getsockname ] { - Parameters [0] { } + - Return [ array|false ] } Method [ public method isClosed ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -4004,9 +4295,9 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method __construct ] { - Parameters [3] { - Parameter #0 [ $type ] - Parameter #1 [ $async = ] - Parameter #2 [ $id = ] + Parameter #0 [ int $type ] + Parameter #1 [ bool $async = SWOOLE_SOCK_SYNC ] + Parameter #2 [ string $id = '' ] } } @@ -4021,106 +4312,121 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ bool ] } Method [ public method connect ] { - Parameters [4] { - Parameter #0 [ $host ] - Parameter #1 [ $port = ] - Parameter #2 [ $timeout = ] - Parameter #3 [ $sock_flag = ] + 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 recv ] { - Parameters [2] { - Parameter #0 [ $size = ] - Parameter #1 [ $flag = ] + Parameter #0 [ int $size = 65536 ] + Parameter #1 [ int $flag = 0 ] } + - Return [ string|false ] } Method [ public method send ] { - Parameters [2] { - Parameter #0 [ $data ] - Parameter #1 [ $flag = ] + Parameter #0 [ string $data ] + Parameter #1 [ int $flag = 0 ] } + - Return [ int|false ] } Method [ public method sendfile ] { - Parameters [3] { - Parameter #0 [ $filename ] - Parameter #1 [ $offset = ] - Parameter #2 [ $length = ] + Parameter #0 [ string $filename ] + Parameter #1 [ int $offset = 0 ] + Parameter #2 [ int $length = 0 ] } + - Return [ bool ] } Method [ public method sendto ] { - Parameters [3] { - Parameter #0 [ $ip ] - Parameter #1 [ $port ] - Parameter #2 [ $data ] + Parameter #0 [ string $ip ] + Parameter #1 [ int $port ] + Parameter #2 [ string $data ] } + - Return [ bool ] } Method [ public method shutdown ] { - Parameters [1] { - Parameter #0 [ $how ] + Parameter #0 [ int $how ] } + - Return [ bool ] } Method [ public method enableSSL ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method getPeerCert ] { - Parameters [0] { } + - Return [ string|bool ] } Method [ public method verifyPeerCert ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isConnected ] { - 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 close ] { - Parameters [1] { - Parameter #0 [ $force = ] + Parameter #0 [ bool $force = false ] } + - Return [ bool ] } Method [ public method getSocket ] { - Parameters [0] { } + - Return [ Socket|false ] } } } @@ -4245,7 +4551,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method __construct ] { - Parameters [1] { - Parameter #0 [ $type ] + Parameter #0 [ int $type ] } } @@ -4260,112 +4566,130 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ bool ] } Method [ public method connect ] { - Parameters [4] { - Parameter #0 [ $host ] - Parameter #1 [ $port = ] - Parameter #2 [ $timeout = ] - Parameter #3 [ $sock_flag = ] + Parameter #0 [ string $host ] + Parameter #1 [ int $port = 0 ] + Parameter #2 [ float $timeout = 0 ] + Parameter #3 [ int $sock_flag = 0 ] } + - Return [ bool ] } Method [ public method recv ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ float $timeout = 0 ] } + - Return [ string|false ] } Method [ public method peek ] { - Parameters [1] { - Parameter #0 [ $length = ] + Parameter #0 [ int $length = 65535 ] } + - Return [ string|false ] } Method [ public method send ] { - - Parameters [1] { - Parameter #0 [ $data ] + - Parameters [2] { + Parameter #0 [ string $data ] + Parameter #1 [ float $timeout = 0 ] } + - Return [ int|false ] } Method [ public method sendfile ] { - Parameters [3] { - Parameter #0 [ $filename ] - Parameter #1 [ $offset = ] - Parameter #2 [ $length = ] + Parameter #0 [ string $filename ] + Parameter #1 [ int $offset = 0 ] + Parameter #2 [ int $length = 0 ] } + - Return [ bool ] } Method [ public method sendto ] { - Parameters [3] { - Parameter #0 [ $address ] - Parameter #1 [ $port ] - Parameter #2 [ $data ] + Parameter #0 [ string $address ] + Parameter #1 [ int $port ] + Parameter #2 [ string $data ] } + - Return [ bool ] } Method [ public method recvfrom ] { - Parameters [3] { - Parameter #0 [ $length ] - Parameter #1 [ &$address ] - Parameter #2 [ &$port = ] + Parameter #0 [ int $length ] + Parameter #1 [ mixed &$address ] + Parameter #2 [ mixed &$port = 0 ] } + - Return [ string|false ] } Method [ public method enableSSL ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method getPeerCert ] { - Parameters [0] { } + - Return [ string|false ] } Method [ public method verifyPeerCert ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ bool $allow_self_signed = false ] } + - Return [ bool ] } Method [ public method isConnected ] { - 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 close ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method exportSocket ] { - Parameters [0] { } + - Return [ Swoole\Coroutine\Socket|false ] } } } @@ -4406,9 +4730,9 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method __construct ] { - Parameters [3] { - Parameter #0 [ $host ] - Parameter #1 [ $port = ] - Parameter #2 [ $ssl = ] + Parameter #0 [ string $host ] + Parameter #1 [ int $port = 0 ] + Parameter #2 [ bool $ssl = false ] } } @@ -4423,26 +4747,30 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ bool ] } Method [ public method getDefer ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method setDefer ] { - Parameters [1] { - Parameter #0 [ $defer = ] + Parameter #0 [ bool $defer = true ] } + - Return [ bool ] } Method [ public method setMethod ] { - Parameters [1] { - Parameter #0 [ $method ] + Parameter #0 [ string $method ] } + - Return [ bool ] } Method [ public method setHeaders ] { @@ -4450,14 +4778,16 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $headers ] } + - Return [ bool ] } Method [ public method setBasicAuth ] { - Parameters [2] { - Parameter #0 [ $username ] - Parameter #1 [ $password ] + Parameter #0 [ string $username ] + Parameter #1 [ string $password ] } + - Return [ void ] } Method [ public method setCookies ] { @@ -4465,143 +4795,163 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $cookies ] } + - Return [ bool ] } Method [ public method setData ] { - Parameters [1] { - Parameter #0 [ $data ] + Parameter #0 [ array|string $data ] } + - Return [ bool ] } Method [ public method addFile ] { - Parameters [6] { - Parameter #0 [ $path ] - Parameter #1 [ $name ] - Parameter #2 [ $type = ] - Parameter #3 [ $filename = ] - Parameter #4 [ $offset = ] - Parameter #5 [ $length = ] + Parameter #0 [ string $path ] + Parameter #1 [ string $name ] + Parameter #2 [ ?string $type = null ] + Parameter #3 [ ?string $filename = null ] + Parameter #4 [ int $offset = 0 ] + Parameter #5 [ int $length = 0 ] } + - Return [ bool ] } Method [ public method addData ] { - Parameters [4] { - Parameter #0 [ $path ] - Parameter #1 [ $name ] - Parameter #2 [ $type = ] - Parameter #3 [ $filename = ] + Parameter #0 [ string $path ] + Parameter #1 [ string $name ] + Parameter #2 [ ?string $type = null ] + Parameter #3 [ ?string $filename = null ] } + - Return [ bool ] } Method [ public method execute ] { - Parameters [1] { - Parameter #0 [ $path ] + Parameter #0 [ string $path ] } + - Return [ bool ] } Method [ public method getpeername ] { - Parameters [0] { } + - Return [ array|false ] } Method [ public method getsockname ] { - Parameters [0] { } + - Return [ array|false ] } Method [ public method get ] { - Parameters [1] { - Parameter #0 [ $path ] + Parameter #0 [ string $path ] } + - Return [ bool ] } Method [ public method post ] { - Parameters [2] { - Parameter #0 [ $path ] - Parameter #1 [ $data ] + Parameter #0 [ string $path ] + Parameter #1 [ mixed $data ] } + - Return [ bool ] } Method [ public method download ] { - Parameters [3] { - Parameter #0 [ $path ] - Parameter #1 [ $file ] - Parameter #2 [ $offset = ] + Parameter #0 [ string $path ] + Parameter #1 [ string $file ] + Parameter #2 [ int $offset = 0 ] } + - Return [ bool ] } Method [ public method getBody ] { - Parameters [0] { } + - Return [ string|false ] } Method [ public method getHeaders ] { - Parameters [0] { } + - Return [ array|false|null ] } Method [ public method getCookies ] { - Parameters [0] { } + - Return [ array|false|null ] } Method [ public method getStatusCode ] { - Parameters [0] { } + - Return [ int|false ] } Method [ public method getHeaderOut ] { - Parameters [0] { } + - Return [ string|false ] } Method [ public method getPeerCert ] { - Parameters [0] { } + - Return [ string|false ] } Method [ public method upgrade ] { - Parameters [1] { - Parameter #0 [ $path ] + Parameter #0 [ string $path ] } + - Return [ bool ] } Method [ public method push ] { - Parameters [3] { - Parameter #0 [ $data ] - Parameter #1 [ $opcode = ] - Parameter #2 [ $flags = ] + Parameter #0 [ mixed $data ] + Parameter #1 [ int $opcode = SWOOLE_WEBSOCKET_OPCODE_TEXT ] + Parameter #2 [ int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] } + - Return [ bool ] } Method [ public method recv ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ float $timeout = 0 ] } + - Return [ Swoole\WebSocket\Frame|bool ] } Method [ public method close ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -4697,7 +5047,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { } } - Class [ class Swoole\Coroutine\MySQL ] { + Class [ class Swoole\Coroutine\Http2\Client ] { - Constants [0] { } @@ -4709,21 +5059,24 @@ Extension [ extension #88 swoole version 4.8.11 ] { } - Properties [9] { - Property [ public $serverInfo = NULL ] + Property [ public $errCode = 0 ] + Property [ public $errMsg = '' ] Property [ public $sock = -1 ] + Property [ public $type = 0 ] + Property [ public $setting = NULL ] Property [ public $connected = false ] - Property [ public $connect_errno = 0 ] - Property [ public $connect_error = '' ] - Property [ public $affected_rows = 0 ] - Property [ public $insert_id = 0 ] - Property [ public $error = '' ] - Property [ public $errno = 0 ] + Property [ public $host = NULL ] + Property [ public $port = 0 ] + Property [ public $ssl = false ] } - - Methods [16] { + - Methods [13] { Method [ public method __construct ] { - - Parameters [0] { + - Parameters [3] { + Parameter #0 [ string $host ] + Parameter #1 [ int $port = 80 ] + Parameter #2 [ bool $open_ssl = false ] } } @@ -4733,168 +5086,97 @@ Extension [ extension #88 swoole version 4.8.11 ] { } } - Method [ public method getDefer ] { - - - Parameters [0] { - } - } - - Method [ public method setDefer ] { + Method [ public method set ] { - Parameters [1] { - Parameter #0 [ $defer = ] + Parameter #0 [ array $settings ] } + - Return [ bool ] } Method [ public method connect ] { - - Parameters [1] { - Parameter #0 [ array $server_config = ] - } - } - - Method [ public method query ] { - - - Parameters [2] { - Parameter #0 [ $sql ] - Parameter #1 [ $timeout = ] - } - } - - Method [ public method fetch ] { - - - Parameters [0] { - } - } - - Method [ public method fetchAll ] { - - - Parameters [0] { - } - } - - Method [ public method nextResult ] { - - - Parameters [0] { - } - } - - Method [ public method prepare ] { - - - Parameters [2] { - Parameter #0 [ $query ] - Parameter #1 [ $timeout = ] - } - } - - Method [ public method recv ] { - - Parameters [0] { } + - Return [ bool ] } - Method [ public method begin ] { + Method [ public method stats ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ string $key = '' ] } + - Return [ array|int ] } - Method [ public method commit ] { + Method [ public method isStreamExist ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ int $stream_id ] } + - Return [ bool ] } - Method [ public method rollback ] { + Method [ public method send ] { - Parameters [1] { - Parameter #0 [ $timeout = ] - } - } - - Method [ public method escape ] { - - - Parameters [2] { - Parameter #0 [ $string ] - Parameter #1 [ $flags = ] - } - } - - Method [ public method close ] { - - - Parameters [0] { + Parameter #0 [ Swoole\Http2\Request $request ] } + - Return [ int|false ] } - } - } - - Class [ class Swoole\Coroutine\MySQL\Statement ] { - - - Constants [0] { - } - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [5] { - Property [ public $id = 0 ] - Property [ public $affected_rows = 0 ] - Property [ public $insert_id = 0 ] - Property [ public $error = '' ] - Property [ public $errno = 0 ] - } - - - Methods [6] { - Method [ public method execute ] { + Method [ public method write ] { - - Parameters [2] { - Parameter #0 [ $params = ] - Parameter #1 [ $timeout = ] + - Parameters [3] { + Parameter #0 [ int $stream_id ] + Parameter #1 [ mixed $data ] + Parameter #2 [ bool $end_stream = false ] } + - Return [ bool ] } - Method [ public method fetch ] { + Method [ public method recv ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ float $timeout = 0 ] } + - Return [ Swoole\Http2\Response|false ] } - Method [ public method fetchAll ] { + Method [ public method read ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ float $timeout = 0 ] } + - Return [ Swoole\Http2\Response|false ] } - Method [ public method nextResult ] { + Method [ public method goaway ] { - - Parameters [1] { - Parameter #0 [ $timeout = ] + - Parameters [2] { + Parameter #0 [ int $error_code = SWOOLE_HTTP2_ERROR_NO_ERROR ] + Parameter #1 [ string $debug_data = '' ] } + - Return [ bool ] } - Method [ public method recv ] { + Method [ public method ping ] { - - Parameters [1] { - Parameter #0 [ $timeout = ] + - Parameters [0] { } + - Return [ bool ] } Method [ public method close ] { - Parameters [0] { } + - Return [ bool ] } } } - Class [ class Swoole\Coroutine\MySQL\Exception extends Swoole\Exception implements Stringable, Throwable ] { + Class [ class Swoole\Coroutine\Http2\Client\Exception extends Swoole\Exception implements Stringable, Throwable ] { - Constants [0] { } @@ -4985,7 +5267,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { } } - Class [ class Swoole\Coroutine\Redis ] { + Class [ class Swoole\Http2\Request ] { - Constants [0] { } @@ -4996,9 +5278,347 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Static methods [0] { } - - Properties [8] { - Property [ public $host = '' ] - Property [ public $port = 0 ] + - Properties [6] { + Property [ public $path = '/' ] + Property [ public $method = 'GET' ] + Property [ public $headers = NULL ] + Property [ public $cookies = NULL ] + Property [ public $data = '' ] + Property [ public $pipeline = false ] + } + + - Methods [0] { + } + } + + Class [ class Swoole\Http2\Response ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [8] { + Property [ public $streamId = 0 ] + Property [ public $errCode = 0 ] + Property [ public $statusCode = 0 ] + Property [ public $pipeline = false ] + Property [ public $headers = NULL ] + Property [ public $set_cookie_headers = NULL ] + Property [ public $cookies = NULL ] + Property [ public $data = NULL ] + } + + - Methods [0] { + } + } + + Class [ class Swoole\Coroutine\MySQL ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [9] { + Property [ public $serverInfo = NULL ] + Property [ public $sock = -1 ] + Property [ public $connected = false ] + Property [ public $connect_errno = 0 ] + Property [ public $connect_error = '' ] + Property [ public $affected_rows = 0 ] + Property [ public $insert_id = 0 ] + Property [ public $error = '' ] + Property [ public $errno = 0 ] + } + + - Methods [16] { + Method [ public method __construct ] { + + - Parameters [0] { + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method getDefer ] { + + - Parameters [0] { + } + } + + Method [ public method setDefer ] { + + - Parameters [1] { + Parameter #0 [ $defer = ] + } + } + + Method [ public method connect ] { + + - Parameters [1] { + Parameter #0 [ array $server_config = ] + } + } + + Method [ public method query ] { + + - Parameters [2] { + Parameter #0 [ $sql ] + Parameter #1 [ $timeout = ] + } + } + + Method [ public method fetch ] { + + - Parameters [0] { + } + } + + Method [ public method fetchAll ] { + + - Parameters [0] { + } + } + + Method [ public method nextResult ] { + + - Parameters [0] { + } + } + + Method [ public method prepare ] { + + - Parameters [2] { + Parameter #0 [ $query ] + Parameter #1 [ $timeout = ] + } + } + + Method [ public method recv ] { + + - Parameters [0] { + } + } + + Method [ public method begin ] { + + - Parameters [1] { + Parameter #0 [ $timeout = ] + } + } + + Method [ public method commit ] { + + - Parameters [1] { + Parameter #0 [ $timeout = ] + } + } + + Method [ public method rollback ] { + + - Parameters [1] { + Parameter #0 [ $timeout = ] + } + } + + Method [ public method escape ] { + + - Parameters [2] { + Parameter #0 [ $string ] + Parameter #1 [ $flags = ] + } + } + + Method [ public method close ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Coroutine\MySQL\Statement ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [5] { + Property [ public $id = 0 ] + Property [ public $affected_rows = 0 ] + Property [ public $insert_id = 0 ] + Property [ public $error = '' ] + Property [ public $errno = 0 ] + } + + - Methods [6] { + Method [ public method execute ] { + + - Parameters [2] { + Parameter #0 [ $params = ] + Parameter #1 [ $timeout = ] + } + } + + Method [ public method fetch ] { + + - Parameters [1] { + Parameter #0 [ $timeout = ] + } + } + + Method [ public method fetchAll ] { + + - Parameters [1] { + Parameter #0 [ $timeout = ] + } + } + + Method [ public method nextResult ] { + + - Parameters [1] { + Parameter #0 [ $timeout = ] + } + } + + Method [ public method recv ] { + + - Parameters [1] { + Parameter #0 [ $timeout = ] + } + } + + Method [ public method close ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Coroutine\MySQL\Exception extends Swoole\Exception implements Stringable, Throwable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message = '' ] + Property [ protected $code = 0 ] + Property [ protected $file = NULL ] + Property [ protected $line = NULL ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ string $message = "" ] + Parameter #1 [ int $code = 0 ] + Parameter #2 [ ?Throwable $previous = null ] + } + } + + Method [ public method __wakeup ] { + + - Parameters [0] { + } + } + + Method [ final public method getMessage ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getCode ] { + + - Parameters [0] { + } + } + + Method [ final public method getFile ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ final public method getLine ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ final public method getTrace ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ final public method getPrevious ] { + + - Parameters [0] { + } + - Return [ ?Throwable ] + } + + Method [ final public method getTraceAsString ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] + } + } + } + + Class [ class Swoole\Coroutine\Redis ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [8] { + Property [ public $host = '' ] + Property [ public $port = 0 ] Property [ public $setting = NULL ] Property [ public $sock = -1 ] Property [ public $connected = false ] @@ -5008,7 +5628,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { } - Methods [185] { - Method [ public method __construct ] { + Method [ public method __construct ] { - Parameters [1] { Parameter #0 [ $config = ] @@ -6454,302 +7074,43 @@ Extension [ extension #88 swoole version 4.8.11 ] { 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 ] - } - } - } - } - - Class [ class Swoole\Coroutine\Http2\Client ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [9] { - Property [ public $errCode = 0 ] - Property [ public $errMsg = '' ] - Property [ public $sock = -1 ] - Property [ public $type = 0 ] - Property [ public $setting = NULL ] - Property [ public $connected = false ] - Property [ public $host = NULL ] - Property [ public $port = 0 ] - Property [ public $ssl = false ] - } - - - Methods [13] { - Method [ public method __construct ] { - - - Parameters [3] { - Parameter #0 [ $host ] - Parameter #1 [ $port = ] - Parameter #2 [ $open_ssl = ] - } - } - - Method [ public method __destruct ] { - - - Parameters [0] { - } - } - - Method [ public method set ] { - - - Parameters [1] { - Parameter #0 [ array $settings ] - } - } - - Method [ public method connect ] { - - - Parameters [0] { - } - } - - Method [ public method stats ] { - - - Parameters [1] { - Parameter #0 [ $key = ] - } - } - - Method [ public method isStreamExist ] { - - - Parameters [1] { - Parameter #0 [ $stream_id ] - } - } - - Method [ public method send ] { - - - Parameters [1] { - Parameter #0 [ $request ] - } - } - - Method [ public method write ] { - - - Parameters [3] { - Parameter #0 [ $stream_id ] - Parameter #1 [ $data ] - Parameter #2 [ $end_stream = ] - } - } - - Method [ public method recv ] { - - - Parameters [1] { - Parameter #0 [ $timeout = ] - } - } - - Method [ public method read ] { - - - Parameters [1] { - Parameter #0 [ $timeout = ] - } - } - - Method [ public method goaway ] { - - - Parameters [2] { - Parameter #0 [ $error_code = ] - Parameter #1 [ $debug_data = ] - } - } - - Method [ public method ping ] { - - - Parameters [0] { - } - } - - Method [ public method close ] { - - - Parameters [0] { - } - } - } - } - - Class [ class Swoole\Coroutine\Http2\Client\Exception extends Swoole\Exception implements Stringable, Throwable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [4] { - Property [ protected $message = '' ] - Property [ protected $code = 0 ] - Property [ protected $file = NULL ] - Property [ protected $line = NULL ] - } - - - Methods [10] { - Method [ public method __construct ] { - - - Parameters [3] { - Parameter #0 [ string $message = "" ] - Parameter #1 [ int $code = 0 ] - Parameter #2 [ ?Throwable $previous = null ] - } - } - - Method [ public method __wakeup ] { - - - Parameters [0] { - } - } - - Method [ final public method getMessage ] { - - - Parameters [0] { - } - - Return [ string ] - } - - Method [ final public method getCode ] { - - - Parameters [0] { - } - } - - Method [ final public method getFile ] { - - - Parameters [0] { - } - - Return [ string ] - } - - Method [ final public method getLine ] { - - - Parameters [0] { - } - - Return [ int ] - } - - Method [ final public method getTrace ] { - - - Parameters [0] { - } - - Return [ array ] - } - - Method [ final public method getPrevious ] { - - - Parameters [0] { + Parameter #5 [ $options = ] } - - Return [ ?Throwable ] } - Method [ final public method getTraceAsString ] { + Method [ public method xAutoClaim ] { - - Parameters [0] { + - Parameters [6] { + Parameter #0 [ $key ] + Parameter #1 [ $group_name ] + Parameter #2 [ $consumer_name ] + Parameter #3 [ $min_idle_time ] + Parameter #4 [ $start ] + Parameter #5 [ $options = ] } - - Return [ string ] } - Method [ public method __toString ] { + Method [ public method xInfoConsumers ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $group_name ] } - - Return [ string ] } - } - } - - Class [ class Swoole\Http2\Request ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [6] { - Property [ public $path = '/' ] - Property [ public $method = 'GET' ] - Property [ public $headers = NULL ] - Property [ public $cookies = NULL ] - Property [ public $data = '' ] - Property [ public $pipeline = false ] - } - - - Methods [0] { - } - } - - Class [ class Swoole\Http2\Response ] { - - Constants [0] { - } - - - Static properties [0] { - } + Method [ public method xInfoGroups ] { - - Static methods [0] { - } + - Parameters [1] { + Parameter #0 [ $key ] + } + } - - Properties [8] { - Property [ public $streamId = 0 ] - Property [ public $errCode = 0 ] - Property [ public $statusCode = 0 ] - Property [ public $pipeline = false ] - Property [ public $headers = NULL ] - Property [ public $set_cookie_headers = NULL ] - Property [ public $cookies = NULL ] - Property [ public $data = NULL ] - } + Method [ public method xInfoStream ] { - - Methods [0] { + - Parameters [1] { + Parameter #0 [ $key ] + } + } } } @@ -6764,7 +7125,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Static methods [0] { } - - Properties [28] { + - Properties [29] { Property [ private $onStart = NULL ] Property [ private $onBeforeShutdown = NULL ] Property [ private $onShutdown = NULL ] @@ -6784,6 +7145,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { Property [ public $host = '' ] Property [ public $port = 0 ] Property [ public $type = 0 ] + Property [ public $ssl = false ] Property [ public $mode = 0 ] Property [ public $ports = NULL ] Property [ public $master_pid = 0 ] @@ -6795,14 +7157,14 @@ Extension [ extension #88 swoole version 4.8.11 ] { Property [ public $admin_server = NULL ] } - - Methods [49] { + - Methods [45] { Method [ public method __construct ] { - Parameters [4] { - Parameter #0 [ $host ] - Parameter #1 [ $port = ] - Parameter #2 [ $mode = ] - Parameter #3 [ $sock_type = ] + Parameter #0 [ string $host = '0.0.0.0' ] + Parameter #1 [ int $port = 0 ] + Parameter #2 [ int $mode = SWOOLE_PROCESS ] + Parameter #3 [ int $sock_type = SWOOLE_SOCK_TCP ] } } @@ -6815,34 +7177,38 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method listen ] { - Parameters [3] { - Parameter #0 [ $host ] - Parameter #1 [ $port ] - Parameter #2 [ $sock_type ] + Parameter #0 [ string $host ] + Parameter #1 [ int $port ] + Parameter #2 [ int $sock_type ] } + - Return [ Swoole\Server\Port|false ] } Method [ public method addlistener ] { - Parameters [3] { - Parameter #0 [ $host ] - Parameter #1 [ $port ] - Parameter #2 [ $sock_type ] + Parameter #0 [ string $host ] + Parameter #1 [ int $port ] + Parameter #2 [ int $sock_type ] } + - Return [ Swoole\Server\Port|false ] } Method [ public method on ] { - Parameters [2] { - Parameter #0 [ $event_name ] + Parameter #0 [ string $event_name ] Parameter #1 [ callable $callback ] } + - Return [ bool ] } Method [ public method getCallback ] { - Parameters [1] { - Parameter #0 [ $event_name ] + Parameter #0 [ string $event_name ] } + - Return [ Closure|array|string|null ] } Method [ public method set ] { @@ -6850,323 +7216,336 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ bool ] } Method [ public method start ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method send ] { - Parameters [3] { - Parameter #0 [ $fd ] - Parameter #1 [ $send_data ] - Parameter #2 [ $server_socket = ] + Parameter #0 [ string|int $fd ] + Parameter #1 [ string $send_data ] + Parameter #2 [ int $serverSocket = -1 ] } + - Return [ bool ] } Method [ public method sendto ] { - Parameters [4] { - Parameter #0 [ $ip ] - Parameter #1 [ $port ] - Parameter #2 [ $send_data ] - Parameter #3 [ $server_socket = ] + Parameter #0 [ string $ip ] + Parameter #1 [ int $port ] + Parameter #2 [ string $send_data ] + Parameter #3 [ int $server_socket = -1 ] } + - Return [ bool ] } Method [ public method sendwait ] { - Parameters [2] { - Parameter #0 [ $conn_fd ] - Parameter #1 [ $send_data ] + Parameter #0 [ int $conn_fd ] + Parameter #1 [ string $send_data ] } + - Return [ bool ] } Method [ public method exists ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method exist ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method protect ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $is_protected = ] + Parameter #0 [ int $fd ] + Parameter #1 [ bool $is_protected = true ] } + - Return [ bool ] } Method [ public method sendfile ] { - Parameters [4] { - Parameter #0 [ $conn_fd ] - Parameter #1 [ $filename ] - Parameter #2 [ $offset = ] - Parameter #3 [ $length = ] + Parameter #0 [ int $conn_fd ] + Parameter #1 [ string $filename ] + Parameter #2 [ int $offset = 0 ] + Parameter #3 [ int $length = 0 ] } + - Return [ bool ] } Method [ public method close ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $reset = ] + Parameter #0 [ int $fd ] + Parameter #1 [ bool $reset = false ] } + - Return [ bool ] } Method [ public method confirm ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method pause ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method resume ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method task ] { - Parameters [3] { - Parameter #0 [ $data ] - Parameter #1 [ $task_worker_index = ] - Parameter #2 [ ?callable $finish_callback = ] + Parameter #0 [ mixed $data ] + Parameter #1 [ int $taskWorkerIndex = -1 ] + Parameter #2 [ ?callable $finishCallback = null ] } + - Return [ int|false ] } Method [ public method taskwait ] { - Parameters [3] { - Parameter #0 [ $data ] - Parameter #1 [ $timeout = ] - Parameter #2 [ $task_worker_index = ] + Parameter #0 [ mixed $data ] + Parameter #1 [ float $timeout = 0.5 ] + Parameter #2 [ int $taskWorkerIndex = -1 ] } + - Return [ string|false ] } Method [ public method taskWaitMulti ] { - Parameters [2] { Parameter #0 [ array $tasks ] - Parameter #1 [ $timeout = ] + Parameter #1 [ float $timeout = 0.5 ] } + - Return [ array|false ] } Method [ public method taskCo ] { - Parameters [2] { Parameter #0 [ array $tasks ] - Parameter #1 [ $timeout = ] + Parameter #1 [ float $timeout = 0.5 ] } + - Return [ array|false ] } Method [ public method finish ] { - Parameters [1] { - Parameter #0 [ $data ] + Parameter #0 [ mixed $data ] } + - Return [ bool ] } Method [ public method reload ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ bool $only_reload_taskworker = false ] } + - Return [ bool ] } Method [ public method shutdown ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method stop ] { - - Parameters [1] { - Parameter #0 [ $worker_id = ] + - Parameters [2] { + Parameter #0 [ int $workerId = -1 ] + Parameter #1 [ bool $waitEvent = false ] } + - Return [ bool ] } Method [ public method getLastError ] { - Parameters [0] { } + - Return [ int ] } Method [ public method heartbeat ] { - Parameters [1] { - Parameter #0 [ $reactor_id ] + Parameter #0 [ bool $ifCloseConnection = true ] } + - Return [ array|false ] } Method [ public method getClientInfo ] { - - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $reactor_id = ] + - Parameters [3] { + Parameter #0 [ int $fd ] + Parameter #1 [ int $reactor_id = -1 ] + Parameter #2 [ bool $ignoreError = false ] } + - Return [ array|false ] } Method [ public method getClientList ] { - Parameters [2] { - Parameter #0 [ $start_fd ] - Parameter #1 [ $find_count = ] + Parameter #0 [ int $start_fd = 0 ] + Parameter #1 [ int $find_count = 10 ] } + - Return [ array|false ] } Method [ public method getWorkerId ] { - Parameters [0] { } + - Return [ int|false ] } Method [ public method getWorkerPid ] { - Parameters [1] { - Parameter #0 [ $worker_id = ] + Parameter #0 [ int $worker_id = -1 ] } + - Return [ int|false ] } Method [ public method getWorkerStatus ] { - Parameters [1] { - Parameter #0 [ $worker_id = ] + Parameter #0 [ int $worker_id = -1 ] } + - Return [ int|false ] } Method [ public method getManagerPid ] { - Parameters [0] { } + - Return [ int ] } Method [ public method getMasterPid ] { - Parameters [0] { } + - Return [ int ] } Method [ public method connection_info ] { - - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $reactor_id = ] + - Parameters [3] { + Parameter #0 [ int $fd ] + Parameter #1 [ int $reactor_id = -1 ] + Parameter #2 [ bool $ignoreError = false ] } + - Return [ array|false ] } Method [ public method connection_list ] { - Parameters [2] { - Parameter #0 [ $start_fd ] - Parameter #1 [ $find_count = ] + Parameter #0 [ int $start_fd = 0 ] + Parameter #1 [ int $find_count = 10 ] } + - Return [ array|false ] } Method [ public method sendMessage ] { - Parameters [2] { - Parameter #0 [ $message ] - Parameter #1 [ $dst_worker_id ] + Parameter #0 [ mixed $message ] + Parameter #1 [ int $dst_worker_id ] } + - Return [ bool ] } Method [ public method command ] { - Parameters [5] { - Parameter #0 [ $name ] - Parameter #1 [ $process_id ] - Parameter #2 [ $process_type ] - Parameter #3 [ $data ] - Parameter #4 [ $json_encode = ] + Parameter #0 [ string $name ] + Parameter #1 [ int $process_id ] + Parameter #2 [ int $process_type ] + Parameter #3 [ mixed $data ] + Parameter #4 [ bool $json_decode = true ] } + - Return [ string|false ] } Method [ public method addCommand ] { - Parameters [3] { - Parameter #0 [ $name ] - Parameter #1 [ $accepted_process_types ] + Parameter #0 [ string $name ] + Parameter #1 [ int $accepted_process_types ] Parameter #2 [ callable $callback ] } + - Return [ bool ] } Method [ public method addProcess ] { - Parameters [1] { - Parameter #0 [ swoole_process $process ] + Parameter #0 [ Swoole\Process $process ] } + - Return [ int ] } Method [ public method stats ] { - Parameters [0] { } + - Return [ array ] } Method [ public method getSocket ] { - Parameters [1] { - Parameter #0 [ $port = ] + Parameter #0 [ int $port = 0 ] } + - Return [ Socket|false ] } Method [ public method bind ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $uid ] - } - } - - Method [ public method after ] { - - - Parameters [2] { - Parameter #0 [ $ms ] - Parameter #1 [ callable $callback ] - } - } - - Method [ public method tick ] { - - - Parameters [2] { - Parameter #0 [ $ms ] - Parameter #1 [ callable $callback ] - } - } - - Method [ public method clearTimer ] { - - - Parameters [1] { - Parameter #0 [ $timer_id ] - } - } - - Method [ public method defer ] { - - - Parameters [1] { - Parameter #0 [ callable $callback ] + Parameter #0 [ int $fd ] + Parameter #1 [ int $uid ] } + - Return [ bool ] } } } @@ -7183,8 +7562,9 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ static public method pack ] { - Parameters [1] { - Parameter #0 [ $data ] + Parameter #0 [ mixed $data ] } + - Return [ string|false ] } } @@ -7200,8 +7580,9 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method finish ] { - Parameters [1] { - Parameter #0 [ $data ] + Parameter #0 [ mixed $data ] } + - Return [ bool ] } } } @@ -7389,7 +7770,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method offsetExists ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ mixed $fd ] } - Return [ bool ] } @@ -7397,7 +7778,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method offsetGet ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ mixed $fd ] } - Return [ mixed ] } @@ -7405,8 +7786,8 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method offsetSet ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $value ] + Parameter #0 [ mixed $fd ] + Parameter #1 [ mixed $value ] } - Return [ void ] } @@ -7414,7 +7795,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method offsetUnset ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ mixed $fd ] } - Return [ void ] } @@ -7432,7 +7813,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Static methods [0] { } - - Properties [17] { + - Properties [18] { Property [ private $onConnect = NULL ] Property [ private $onReceive = NULL ] Property [ private $onClose = NULL ] @@ -7448,6 +7829,7 @@ Extension [ extension #88 swoole version 4.8.11 ] { Property [ public $port = 0 ] Property [ public $type = 0 ] Property [ public $sock = -1 ] + Property [ public $ssl = false ] Property [ public $setting = NULL ] Property [ public $connections = NULL ] } @@ -7470,27 +7852,31 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ void ] } Method [ public method on ] { - Parameters [2] { - Parameter #0 [ $event_name ] + Parameter #0 [ string $event_name ] Parameter #1 [ callable $callback ] } + - Return [ bool ] } Method [ public method getCallback ] { - Parameters [1] { - Parameter #0 [ $event_name ] + Parameter #0 [ string $event_name ] } + - Return [ ?Closure ] } Method [ public method getSocket ] { - Parameters [0] { } + - Return [ Socket|false ] } } } @@ -7507,8 +7893,9 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ static public method create ] { - Parameters [1] { - Parameter #0 [ $options = ] + Parameter #0 [ array $options = [] ] } + - Return [ Swoole\Http\Request ] } } @@ -7529,37 +7916,43 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [0] { } + - Return [ string|false ] } Method [ public method rawContent ] { - Parameters [0] { } + - Return [ string|false ] } Method [ public method getData ] { - Parameters [0] { } + - Return [ string|false ] } Method [ public method parse ] { - Parameters [1] { - Parameter #0 [ $data ] + Parameter #0 [ string $data ] } + - Return [ int|false ] } Method [ public method isCompleted ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method getMethod ] { - Parameters [0] { } + - Return [ string|false ] } Method [ public method __destruct ] { @@ -7582,9 +7975,10 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ static public method create ] { - Parameters [2] { - Parameter #0 [ $server ] - Parameter #1 [ $fd = ] + Parameter #0 [ object|array|int $server = -1 ] + Parameter #1 [ int $fd = -1 ] } + - Return [ Swoole\Http\Response|false ] } } @@ -7601,175 +7995,199 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method isWritable ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method cookie ] { - Parameters [9] { - Parameter #0 [ $name ] - Parameter #1 [ $value = ] - Parameter #2 [ $expires = ] - Parameter #3 [ $path = ] - Parameter #4 [ $domain = ] - Parameter #5 [ $secure = ] - Parameter #6 [ $httponly = ] - Parameter #7 [ $samesite = ] - Parameter #8 [ $priority = ] + Parameter #0 [ string $name ] + Parameter #1 [ string $value = '' ] + Parameter #2 [ int $expire = 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 = '' ] } + - Return [ bool ] } Method [ public method setCookie ] { - Parameters [9] { - Parameter #0 [ $name ] - Parameter #1 [ $value = ] - Parameter #2 [ $expires = ] - Parameter #3 [ $path = ] - Parameter #4 [ $domain = ] - Parameter #5 [ $secure = ] - Parameter #6 [ $httponly = ] - Parameter #7 [ $samesite = ] - Parameter #8 [ $priority = ] + Parameter #0 [ string $name ] + Parameter #1 [ string $value = '' ] + Parameter #2 [ int $expire = 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 = '' ] } + - Return [ bool ] } Method [ public method rawcookie ] { - Parameters [9] { - Parameter #0 [ $name ] - Parameter #1 [ $value = ] - Parameter #2 [ $expires = ] - Parameter #3 [ $path = ] - Parameter #4 [ $domain = ] - Parameter #5 [ $secure = ] - Parameter #6 [ $httponly = ] - Parameter #7 [ $samesite = ] - Parameter #8 [ $priority = ] + Parameter #0 [ string $name ] + Parameter #1 [ string $value = '' ] + Parameter #2 [ int $expire = 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 = '' ] } + - Return [ bool ] } Method [ public method status ] { - Parameters [2] { - Parameter #0 [ $http_code ] - Parameter #1 [ $reason = ] + Parameter #0 [ int $http_code ] + Parameter #1 [ string $reason = '' ] } + - Return [ bool ] } Method [ public method setStatusCode ] { - Parameters [2] { - Parameter #0 [ $http_code ] - Parameter #1 [ $reason = ] + Parameter #0 [ int $http_code ] + Parameter #1 [ string $reason = '' ] } + - Return [ bool ] } Method [ public method header ] { - Parameters [3] { - Parameter #0 [ $key ] - Parameter #1 [ $value ] - Parameter #2 [ $format = ] + Parameter #0 [ string $key ] + Parameter #1 [ array|string $value ] + Parameter #2 [ bool $format = true ] } + - Return [ bool ] } Method [ public method setHeader ] { - Parameters [3] { - Parameter #0 [ $key ] - Parameter #1 [ $value ] - Parameter #2 [ $format = ] + Parameter #0 [ string $key ] + Parameter #1 [ array|string $value ] + Parameter #2 [ bool $format = true ] } + - Return [ bool ] } Method [ public method trailer ] { - Parameters [2] { - Parameter #0 [ $key ] - Parameter #1 [ $value ] + Parameter #0 [ string $key ] + Parameter #1 [ string $value ] } + - Return [ bool ] } Method [ public method ping ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method goaway ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ int $error_code = SWOOLE_HTTP2_ERROR_NO_ERROR ] + Parameter #1 [ string $debug_data = '' ] } + - Return [ bool ] } Method [ public method write ] { - Parameters [1] { - Parameter #0 [ $content ] + Parameter #0 [ string $content ] } + - Return [ bool ] } Method [ public method end ] { - Parameters [1] { - Parameter #0 [ $content = ] + Parameter #0 [ ?string $content = null ] } + - Return [ bool ] } Method [ public method sendfile ] { - Parameters [3] { - Parameter #0 [ $filename ] - Parameter #1 [ $offset = ] - Parameter #2 [ $length = ] + Parameter #0 [ string $filename ] + Parameter #1 [ int $offset = 0 ] + Parameter #2 [ int $length = 0 ] } + - Return [ bool ] } Method [ public method redirect ] { - Parameters [2] { - Parameter #0 [ $location ] - Parameter #1 [ $http_code = ] + Parameter #0 [ string $location ] + Parameter #1 [ int $http_code = 302 ] } + - Return [ bool ] } Method [ public method detach ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method upgrade ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method push ] { - Parameters [3] { - Parameter #0 [ $data ] - Parameter #1 [ $opcode = ] - Parameter #2 [ $flags = ] + Parameter #0 [ Swoole\WebSocket\Frame|string $data ] + Parameter #1 [ int $opcode = SWOOLE_WEBSOCKET_OPCODE_TEXT ] + Parameter #2 [ int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] } + - Return [ bool ] } Method [ public method recv ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ float $timeout = 0 ] } + - Return [ Swoole\WebSocket\Frame|string|false ] } Method [ public method close ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method __destruct ] { @@ -7791,12 +8209,13 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Static methods [0] { } - - Properties [14] { + - Properties [15] { Property [ public $setting = NULL ] Property [ public $connections = NULL ] Property [ public $host = '' ] Property [ public $port = 0 ] Property [ public $type = 0 ] + Property [ public $ssl = false ] Property [ public $mode = 0 ] Property [ public $ports = NULL ] Property [ public $master_pid = 0 ] @@ -7808,14 +8227,14 @@ Extension [ extension #88 swoole version 4.8.11 ] { Property [ public $admin_server = NULL ] } - - Methods [49] { + - Methods [45] { Method [ public method __construct ] { - Parameters [4] { - Parameter #0 [ $host ] - Parameter #1 [ $port = ] - Parameter #2 [ $mode = ] - Parameter #3 [ $sock_type = ] + Parameter #0 [ string $host = '0.0.0.0' ] + Parameter #1 [ int $port = 0 ] + Parameter #2 [ int $mode = SWOOLE_PROCESS ] + Parameter #3 [ int $sock_type = SWOOLE_SOCK_TCP ] } } @@ -7828,34 +8247,38 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method listen ] { - Parameters [3] { - Parameter #0 [ $host ] - Parameter #1 [ $port ] - Parameter #2 [ $sock_type ] + Parameter #0 [ string $host ] + Parameter #1 [ int $port ] + Parameter #2 [ int $sock_type ] } + - Return [ Swoole\Server\Port|false ] } Method [ public method addlistener ] { - Parameters [3] { - Parameter #0 [ $host ] - Parameter #1 [ $port ] - Parameter #2 [ $sock_type ] + Parameter #0 [ string $host ] + Parameter #1 [ int $port ] + Parameter #2 [ int $sock_type ] } + - Return [ Swoole\Server\Port|false ] } Method [ public method on ] { - Parameters [2] { - Parameter #0 [ $event_name ] + Parameter #0 [ string $event_name ] Parameter #1 [ callable $callback ] } + - Return [ bool ] } Method [ public method getCallback ] { - Parameters [1] { - Parameter #0 [ $event_name ] + Parameter #0 [ string $event_name ] } + - Return [ Closure|array|string|null ] } Method [ public method set ] { @@ -7863,323 +8286,336 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ bool ] } Method [ public method start ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method send ] { - Parameters [3] { - Parameter #0 [ $fd ] - Parameter #1 [ $send_data ] - Parameter #2 [ $server_socket = ] + Parameter #0 [ string|int $fd ] + Parameter #1 [ string $send_data ] + Parameter #2 [ int $serverSocket = -1 ] } + - Return [ bool ] } Method [ public method sendto ] { - Parameters [4] { - Parameter #0 [ $ip ] - Parameter #1 [ $port ] - Parameter #2 [ $send_data ] - Parameter #3 [ $server_socket = ] + Parameter #0 [ string $ip ] + Parameter #1 [ int $port ] + Parameter #2 [ string $send_data ] + Parameter #3 [ int $server_socket = -1 ] } + - Return [ bool ] } Method [ public method sendwait ] { - Parameters [2] { - Parameter #0 [ $conn_fd ] - Parameter #1 [ $send_data ] + Parameter #0 [ int $conn_fd ] + Parameter #1 [ string $send_data ] } + - Return [ bool ] } Method [ public method exists ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method exist ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method protect ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $is_protected = ] + Parameter #0 [ int $fd ] + Parameter #1 [ bool $is_protected = true ] } + - Return [ bool ] } Method [ public method sendfile ] { - Parameters [4] { - Parameter #0 [ $conn_fd ] - Parameter #1 [ $filename ] - Parameter #2 [ $offset = ] - Parameter #3 [ $length = ] + Parameter #0 [ int $conn_fd ] + Parameter #1 [ string $filename ] + Parameter #2 [ int $offset = 0 ] + Parameter #3 [ int $length = 0 ] } + - Return [ bool ] } Method [ public method close ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $reset = ] + Parameter #0 [ int $fd ] + Parameter #1 [ bool $reset = false ] } + - Return [ bool ] } Method [ public method confirm ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method pause ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method resume ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method task ] { - Parameters [3] { - Parameter #0 [ $data ] - Parameter #1 [ $task_worker_index = ] - Parameter #2 [ ?callable $finish_callback = ] + Parameter #0 [ mixed $data ] + Parameter #1 [ int $taskWorkerIndex = -1 ] + Parameter #2 [ ?callable $finishCallback = null ] } + - Return [ int|false ] } Method [ public method taskwait ] { - Parameters [3] { - Parameter #0 [ $data ] - Parameter #1 [ $timeout = ] - Parameter #2 [ $task_worker_index = ] + Parameter #0 [ mixed $data ] + Parameter #1 [ float $timeout = 0.5 ] + Parameter #2 [ int $taskWorkerIndex = -1 ] } + - Return [ string|false ] } Method [ public method taskWaitMulti ] { - Parameters [2] { Parameter #0 [ array $tasks ] - Parameter #1 [ $timeout = ] + Parameter #1 [ float $timeout = 0.5 ] } + - Return [ array|false ] } Method [ public method taskCo ] { - Parameters [2] { Parameter #0 [ array $tasks ] - Parameter #1 [ $timeout = ] + Parameter #1 [ float $timeout = 0.5 ] } + - Return [ array|false ] } Method [ public method finish ] { - Parameters [1] { - Parameter #0 [ $data ] + Parameter #0 [ mixed $data ] } + - Return [ bool ] } Method [ public method reload ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ bool $only_reload_taskworker = false ] } + - Return [ bool ] } Method [ public method shutdown ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method stop ] { - - Parameters [1] { - Parameter #0 [ $worker_id = ] + - Parameters [2] { + Parameter #0 [ int $workerId = -1 ] + Parameter #1 [ bool $waitEvent = false ] } + - Return [ bool ] } Method [ public method getLastError ] { - Parameters [0] { } + - Return [ int ] } Method [ public method heartbeat ] { - Parameters [1] { - Parameter #0 [ $reactor_id ] + Parameter #0 [ bool $ifCloseConnection = true ] } + - Return [ array|false ] } Method [ public method getClientInfo ] { - - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $reactor_id = ] + - Parameters [3] { + Parameter #0 [ int $fd ] + Parameter #1 [ int $reactor_id = -1 ] + Parameter #2 [ bool $ignoreError = false ] } + - Return [ array|false ] } Method [ public method getClientList ] { - Parameters [2] { - Parameter #0 [ $start_fd ] - Parameter #1 [ $find_count = ] + Parameter #0 [ int $start_fd = 0 ] + Parameter #1 [ int $find_count = 10 ] } + - Return [ array|false ] } Method [ public method getWorkerId ] { - Parameters [0] { } + - Return [ int|false ] } Method [ public method getWorkerPid ] { - Parameters [1] { - Parameter #0 [ $worker_id = ] + Parameter #0 [ int $worker_id = -1 ] } + - Return [ int|false ] } Method [ public method getWorkerStatus ] { - Parameters [1] { - Parameter #0 [ $worker_id = ] + Parameter #0 [ int $worker_id = -1 ] } + - Return [ int|false ] } Method [ public method getManagerPid ] { - Parameters [0] { } + - Return [ int ] } Method [ public method getMasterPid ] { - Parameters [0] { } + - Return [ int ] } Method [ public method connection_info ] { - - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $reactor_id = ] + - Parameters [3] { + Parameter #0 [ int $fd ] + Parameter #1 [ int $reactor_id = -1 ] + Parameter #2 [ bool $ignoreError = false ] } + - Return [ array|false ] } Method [ public method connection_list ] { - Parameters [2] { - Parameter #0 [ $start_fd ] - Parameter #1 [ $find_count = ] + Parameter #0 [ int $start_fd = 0 ] + Parameter #1 [ int $find_count = 10 ] } + - Return [ array|false ] } Method [ public method sendMessage ] { - Parameters [2] { - Parameter #0 [ $message ] - Parameter #1 [ $dst_worker_id ] + Parameter #0 [ mixed $message ] + Parameter #1 [ int $dst_worker_id ] } + - Return [ bool ] } Method [ public method command ] { - Parameters [5] { - Parameter #0 [ $name ] - Parameter #1 [ $process_id ] - Parameter #2 [ $process_type ] - Parameter #3 [ $data ] - Parameter #4 [ $json_encode = ] + Parameter #0 [ string $name ] + Parameter #1 [ int $process_id ] + Parameter #2 [ int $process_type ] + Parameter #3 [ mixed $data ] + Parameter #4 [ bool $json_decode = true ] } + - Return [ string|false ] } Method [ public method addCommand ] { - Parameters [3] { - Parameter #0 [ $name ] - Parameter #1 [ $accepted_process_types ] + Parameter #0 [ string $name ] + Parameter #1 [ int $accepted_process_types ] Parameter #2 [ callable $callback ] } + - Return [ bool ] } Method [ public method addProcess ] { - Parameters [1] { - Parameter #0 [ swoole_process $process ] + Parameter #0 [ Swoole\Process $process ] } + - Return [ int ] } Method [ public method stats ] { - Parameters [0] { } + - Return [ array ] } Method [ public method getSocket ] { - Parameters [1] { - Parameter #0 [ $port = ] + Parameter #0 [ int $port = 0 ] } + - Return [ Socket|false ] } Method [ public method bind ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $uid ] - } - } - - Method [ public method after ] { - - - Parameters [2] { - Parameter #0 [ $ms ] - Parameter #1 [ callable $callback ] - } - } - - Method [ public method tick ] { - - - Parameters [2] { - Parameter #0 [ $ms ] - Parameter #1 [ callable $callback ] - } - } - - Method [ public method clearTimer ] { - - - Parameters [1] { - Parameter #0 [ $timer_id ] - } - } - - Method [ public method defer ] { - - - Parameters [1] { - Parameter #0 [ callable $callback ] + Parameter #0 [ int $fd ] + Parameter #1 [ int $uid ] } + - Return [ bool ] } } } @@ -8209,10 +8645,10 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method __construct ] { - Parameters [4] { - Parameter #0 [ $host ] - Parameter #1 [ $port = ] - Parameter #2 [ $ssl = ] - Parameter #3 [ $reuse_port = ] + Parameter #0 [ string $host ] + Parameter #1 [ int $port = 0 ] + Parameter #2 [ bool $ssl = false ] + Parameter #3 [ bool $reuse_port = false ] } } @@ -8227,32 +8663,37 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ bool ] } Method [ public method handle ] { - Parameters [2] { - Parameter #0 [ $pattern ] + Parameter #0 [ string $pattern ] Parameter #1 [ callable $callback ] } + - Return [ void ] } Method [ private method onAccept ] { - Parameters [0] { } + - Return [ void ] } Method [ public method start ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method shutdown ] { - Parameters [0] { } + - Return [ void ] } } } @@ -8269,26 +8710,29 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ static public method pack ] { - Parameters [3] { - Parameter #0 [ $data ] - Parameter #1 [ $opcode = ] - Parameter #2 [ $flags = ] + Parameter #0 [ Swoole\WebSocket\Frame|string $data ] + Parameter #1 [ int $opcode = WEBSOCKET_OPCODE_TEXT ] + Parameter #2 [ int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] } + - Return [ string ] } Method [ static public method unpack ] { - Parameters [1] { - Parameter #0 [ $data ] + Parameter #0 [ string $data ] } + - Return [ Swoole\WebSocket\Frame ] } } - - Properties [14] { + - Properties [15] { Property [ public $setting = NULL ] Property [ public $connections = NULL ] Property [ public $host = '' ] Property [ public $port = 0 ] Property [ public $type = 0 ] + Property [ public $ssl = false ] Property [ public $mode = 0 ] Property [ public $ports = NULL ] Property [ public $master_pid = 0 ] @@ -8300,40 +8744,43 @@ Extension [ extension #88 swoole version 4.8.11 ] { Property [ public $admin_server = NULL ] } - - Methods [52] { + - Methods [48] { Method [ public method push ] { - Parameters [4] { - Parameter #0 [ $fd ] - Parameter #1 [ $data ] - Parameter #2 [ $opcode = ] - Parameter #3 [ $flags = ] + Parameter #0 [ int $fd ] + Parameter #1 [ Swoole\WebSocket\Frame|string $data ] + Parameter #2 [ int $opcode = WEBSOCKET_OPCODE_TEXT ] + Parameter #3 [ int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] } + - Return [ bool ] } Method [ public method disconnect ] { - Parameters [3] { - Parameter #0 [ $fd ] - Parameter #1 [ $code = ] - Parameter #2 [ $reason = ] + Parameter #0 [ int $fd ] + Parameter #1 [ int $code = SWOOLE_WEBSOCKET_CLOSE_NORMAL ] + Parameter #2 [ string $reason = "" ] } + - Return [ bool ] } Method [ public method isEstablished ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method __construct ] { - Parameters [4] { - Parameter #0 [ $host ] - Parameter #1 [ $port = ] - Parameter #2 [ $mode = ] - Parameter #3 [ $sock_type = ] + Parameter #0 [ string $host = '0.0.0.0' ] + Parameter #1 [ int $port = 0 ] + Parameter #2 [ int $mode = SWOOLE_PROCESS ] + Parameter #3 [ int $sock_type = SWOOLE_SOCK_TCP ] } } @@ -8346,34 +8793,38 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method listen ] { - Parameters [3] { - Parameter #0 [ $host ] - Parameter #1 [ $port ] - Parameter #2 [ $sock_type ] + Parameter #0 [ string $host ] + Parameter #1 [ int $port ] + Parameter #2 [ int $sock_type ] } + - Return [ Swoole\Server\Port|false ] } Method [ public method addlistener ] { - Parameters [3] { - Parameter #0 [ $host ] - Parameter #1 [ $port ] - Parameter #2 [ $sock_type ] + Parameter #0 [ string $host ] + Parameter #1 [ int $port ] + Parameter #2 [ int $sock_type ] } + - Return [ Swoole\Server\Port|false ] } Method [ public method on ] { - Parameters [2] { - Parameter #0 [ $event_name ] + Parameter #0 [ string $event_name ] Parameter #1 [ callable $callback ] } + - Return [ bool ] } Method [ public method getCallback ] { - Parameters [1] { - Parameter #0 [ $event_name ] + Parameter #0 [ string $event_name ] } + - Return [ Closure|array|string|null ] } Method [ public method set ] { @@ -8381,323 +8832,336 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ bool ] } Method [ public method start ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method send ] { - Parameters [3] { - Parameter #0 [ $fd ] - Parameter #1 [ $send_data ] - Parameter #2 [ $server_socket = ] + Parameter #0 [ string|int $fd ] + Parameter #1 [ string $send_data ] + Parameter #2 [ int $serverSocket = -1 ] } + - Return [ bool ] } Method [ public method sendto ] { - Parameters [4] { - Parameter #0 [ $ip ] - Parameter #1 [ $port ] - Parameter #2 [ $send_data ] - Parameter #3 [ $server_socket = ] + Parameter #0 [ string $ip ] + Parameter #1 [ int $port ] + Parameter #2 [ string $send_data ] + Parameter #3 [ int $server_socket = -1 ] } + - Return [ bool ] } Method [ public method sendwait ] { - Parameters [2] { - Parameter #0 [ $conn_fd ] - Parameter #1 [ $send_data ] + Parameter #0 [ int $conn_fd ] + Parameter #1 [ string $send_data ] } + - Return [ bool ] } Method [ public method exists ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method exist ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method protect ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $is_protected = ] + Parameter #0 [ int $fd ] + Parameter #1 [ bool $is_protected = true ] } + - Return [ bool ] } Method [ public method sendfile ] { - Parameters [4] { - Parameter #0 [ $conn_fd ] - Parameter #1 [ $filename ] - Parameter #2 [ $offset = ] - Parameter #3 [ $length = ] + Parameter #0 [ int $conn_fd ] + Parameter #1 [ string $filename ] + Parameter #2 [ int $offset = 0 ] + Parameter #3 [ int $length = 0 ] } + - Return [ bool ] } Method [ public method close ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $reset = ] + Parameter #0 [ int $fd ] + Parameter #1 [ bool $reset = false ] } + - Return [ bool ] } Method [ public method confirm ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method pause ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method resume ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method task ] { - Parameters [3] { - Parameter #0 [ $data ] - Parameter #1 [ $task_worker_index = ] - Parameter #2 [ ?callable $finish_callback = ] + Parameter #0 [ mixed $data ] + Parameter #1 [ int $taskWorkerIndex = -1 ] + Parameter #2 [ ?callable $finishCallback = null ] } + - Return [ int|false ] } Method [ public method taskwait ] { - Parameters [3] { - Parameter #0 [ $data ] - Parameter #1 [ $timeout = ] - Parameter #2 [ $task_worker_index = ] + Parameter #0 [ mixed $data ] + Parameter #1 [ float $timeout = 0.5 ] + Parameter #2 [ int $taskWorkerIndex = -1 ] } + - Return [ string|false ] } Method [ public method taskWaitMulti ] { - Parameters [2] { Parameter #0 [ array $tasks ] - Parameter #1 [ $timeout = ] + Parameter #1 [ float $timeout = 0.5 ] } + - Return [ array|false ] } Method [ public method taskCo ] { - Parameters [2] { Parameter #0 [ array $tasks ] - Parameter #1 [ $timeout = ] + Parameter #1 [ float $timeout = 0.5 ] } + - Return [ array|false ] } Method [ public method finish ] { - Parameters [1] { - Parameter #0 [ $data ] + Parameter #0 [ mixed $data ] } + - Return [ bool ] } Method [ public method reload ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ bool $only_reload_taskworker = false ] } + - Return [ bool ] } Method [ public method shutdown ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method stop ] { - - Parameters [1] { - Parameter #0 [ $worker_id = ] + - Parameters [2] { + Parameter #0 [ int $workerId = -1 ] + Parameter #1 [ bool $waitEvent = false ] } + - Return [ bool ] } Method [ public method getLastError ] { - Parameters [0] { } + - Return [ int ] } Method [ public method heartbeat ] { - Parameters [1] { - Parameter #0 [ $reactor_id ] + Parameter #0 [ bool $ifCloseConnection = true ] } + - Return [ array|false ] } Method [ public method getClientInfo ] { - - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $reactor_id = ] + - Parameters [3] { + Parameter #0 [ int $fd ] + Parameter #1 [ int $reactor_id = -1 ] + Parameter #2 [ bool $ignoreError = false ] } + - Return [ array|false ] } Method [ public method getClientList ] { - Parameters [2] { - Parameter #0 [ $start_fd ] - Parameter #1 [ $find_count = ] + Parameter #0 [ int $start_fd = 0 ] + Parameter #1 [ int $find_count = 10 ] } + - Return [ array|false ] } Method [ public method getWorkerId ] { - Parameters [0] { } + - Return [ int|false ] } Method [ public method getWorkerPid ] { - Parameters [1] { - Parameter #0 [ $worker_id = ] + Parameter #0 [ int $worker_id = -1 ] } + - Return [ int|false ] } Method [ public method getWorkerStatus ] { - Parameters [1] { - Parameter #0 [ $worker_id = ] + Parameter #0 [ int $worker_id = -1 ] } + - Return [ int|false ] } Method [ public method getManagerPid ] { - Parameters [0] { } + - Return [ int ] } Method [ public method getMasterPid ] { - Parameters [0] { } + - Return [ int ] } Method [ public method connection_info ] { - - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $reactor_id = ] + - Parameters [3] { + Parameter #0 [ int $fd ] + Parameter #1 [ int $reactor_id = -1 ] + Parameter #2 [ bool $ignoreError = false ] } + - Return [ array|false ] } Method [ public method connection_list ] { - Parameters [2] { - Parameter #0 [ $start_fd ] - Parameter #1 [ $find_count = ] + Parameter #0 [ int $start_fd = 0 ] + Parameter #1 [ int $find_count = 10 ] } + - Return [ array|false ] } Method [ public method sendMessage ] { - Parameters [2] { - Parameter #0 [ $message ] - Parameter #1 [ $dst_worker_id ] + Parameter #0 [ mixed $message ] + Parameter #1 [ int $dst_worker_id ] } + - Return [ bool ] } Method [ public method command ] { - Parameters [5] { - Parameter #0 [ $name ] - Parameter #1 [ $process_id ] - Parameter #2 [ $process_type ] - Parameter #3 [ $data ] - Parameter #4 [ $json_encode = ] + Parameter #0 [ string $name ] + Parameter #1 [ int $process_id ] + Parameter #2 [ int $process_type ] + Parameter #3 [ mixed $data ] + Parameter #4 [ bool $json_decode = true ] } + - Return [ string|false ] } Method [ public method addCommand ] { - Parameters [3] { - Parameter #0 [ $name ] - Parameter #1 [ $accepted_process_types ] + Parameter #0 [ string $name ] + Parameter #1 [ int $accepted_process_types ] Parameter #2 [ callable $callback ] } + - Return [ bool ] } Method [ public method addProcess ] { - Parameters [1] { - Parameter #0 [ swoole_process $process ] + Parameter #0 [ Swoole\Process $process ] } + - Return [ int ] } Method [ public method stats ] { - Parameters [0] { } + - Return [ array ] } Method [ public method getSocket ] { - Parameters [1] { - Parameter #0 [ $port = ] + Parameter #0 [ int $port = 0 ] } + - Return [ Socket|false ] } Method [ public method bind ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $uid ] - } - } - - Method [ public method after ] { - - - Parameters [2] { - Parameter #0 [ $ms ] - Parameter #1 [ callable $callback ] - } - } - - Method [ public method tick ] { - - - Parameters [2] { - Parameter #0 [ $ms ] - Parameter #1 [ callable $callback ] - } - } - - Method [ public method clearTimer ] { - - - Parameters [1] { - Parameter #0 [ $timer_id ] - } - } - - Method [ public method defer ] { - - - Parameters [1] { - Parameter #0 [ callable $callback ] + Parameter #0 [ int $fd ] + Parameter #1 [ int $uid ] } + - Return [ bool ] } } } @@ -8714,17 +9178,19 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ static public method pack ] { - Parameters [3] { - Parameter #0 [ $data ] - Parameter #1 [ $opcode = ] - Parameter #2 [ $flags = ] + Parameter #0 [ Swoole\WebSocket\Frame|string $data ] + Parameter #1 [ int $opcode = WEBSOCKET_OPCODE_TEXT ] + Parameter #2 [ int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] } + - Return [ string ] } Method [ static public method unpack ] { - Parameters [1] { - Parameter #0 [ $data ] + Parameter #0 [ string $data ] } + - Return [ Swoole\WebSocket\Frame ] } } @@ -8758,17 +9224,19 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ static public method pack ] { - Parameters [3] { - Parameter #0 [ $data ] - Parameter #1 [ $opcode = ] - Parameter #2 [ $flags = ] + Parameter #0 [ Swoole\WebSocket\Frame|string $data ] + Parameter #1 [ int $opcode = WEBSOCKET_OPCODE_TEXT ] + Parameter #2 [ int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] } + - Return [ string ] } Method [ static public method unpack ] { - Parameters [1] { - Parameter #0 [ $data ] + Parameter #0 [ string $data ] } + - Return [ Swoole\WebSocket\Frame ] } } @@ -8811,18 +9279,20 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ static public method format ] { - Parameters [2] { - Parameter #0 [ $type ] - Parameter #1 [ $value = ] + Parameter #0 [ int $type ] + Parameter #1 [ mixed $value = null ] } + - Return [ string|false ] } } - - Properties [14] { + - Properties [15] { Property [ public $setting = NULL ] Property [ public $connections = NULL ] Property [ public $host = '' ] Property [ public $port = 0 ] Property [ public $type = 0 ] + Property [ public $ssl = false ] Property [ public $mode = 0 ] Property [ public $ports = NULL ] Property [ public $master_pid = 0 ] @@ -8834,29 +9304,31 @@ Extension [ extension #88 swoole version 4.8.11 ] { Property [ public $admin_server = NULL ] } - - Methods [51] { + - Methods [47] { Method [ public method setHandler ] { - Parameters [2] { - Parameter #0 [ $command ] + Parameter #0 [ string $command ] Parameter #1 [ callable $callback ] } + - Return [ bool ] } Method [ public method getHandler ] { - Parameters [1] { - Parameter #0 [ $command ] + Parameter #0 [ string $command ] } + - Return [ Closure ] } Method [ public method __construct ] { - Parameters [4] { - Parameter #0 [ $host ] - Parameter #1 [ $port = ] - Parameter #2 [ $mode = ] - Parameter #3 [ $sock_type = ] + Parameter #0 [ string $host = '0.0.0.0' ] + Parameter #1 [ int $port = 0 ] + Parameter #2 [ int $mode = SWOOLE_PROCESS ] + Parameter #3 [ int $sock_type = SWOOLE_SOCK_TCP ] } } @@ -8869,34 +9341,38 @@ Extension [ extension #88 swoole version 4.8.11 ] { Method [ public method listen ] { - Parameters [3] { - Parameter #0 [ $host ] - Parameter #1 [ $port ] - Parameter #2 [ $sock_type ] + Parameter #0 [ string $host ] + Parameter #1 [ int $port ] + Parameter #2 [ int $sock_type ] } + - Return [ Swoole\Server\Port|false ] } Method [ public method addlistener ] { - Parameters [3] { - Parameter #0 [ $host ] - Parameter #1 [ $port ] - Parameter #2 [ $sock_type ] + Parameter #0 [ string $host ] + Parameter #1 [ int $port ] + Parameter #2 [ int $sock_type ] } + - Return [ Swoole\Server\Port|false ] } Method [ public method on ] { - Parameters [2] { - Parameter #0 [ $event_name ] + Parameter #0 [ string $event_name ] Parameter #1 [ callable $callback ] } + - Return [ bool ] } Method [ public method getCallback ] { - Parameters [1] { - Parameter #0 [ $event_name ] + Parameter #0 [ string $event_name ] } + - Return [ Closure|array|string|null ] } Method [ public method set ] { @@ -8904,323 +9380,548 @@ Extension [ extension #88 swoole version 4.8.11 ] { - Parameters [1] { Parameter #0 [ array $settings ] } + - Return [ bool ] } Method [ public method start ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method send ] { - Parameters [3] { - Parameter #0 [ $fd ] - Parameter #1 [ $send_data ] - Parameter #2 [ $server_socket = ] + Parameter #0 [ string|int $fd ] + Parameter #1 [ string $send_data ] + Parameter #2 [ int $serverSocket = -1 ] } + - Return [ bool ] } Method [ public method sendto ] { - Parameters [4] { - Parameter #0 [ $ip ] - Parameter #1 [ $port ] - Parameter #2 [ $send_data ] - Parameter #3 [ $server_socket = ] + Parameter #0 [ string $ip ] + Parameter #1 [ int $port ] + Parameter #2 [ string $send_data ] + Parameter #3 [ int $server_socket = -1 ] } + - Return [ bool ] } Method [ public method sendwait ] { - Parameters [2] { - Parameter #0 [ $conn_fd ] - Parameter #1 [ $send_data ] + Parameter #0 [ int $conn_fd ] + Parameter #1 [ string $send_data ] } + - Return [ bool ] } Method [ public method exists ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method exist ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method protect ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $is_protected = ] + Parameter #0 [ int $fd ] + Parameter #1 [ bool $is_protected = true ] } + - Return [ bool ] } Method [ public method sendfile ] { - Parameters [4] { - Parameter #0 [ $conn_fd ] - Parameter #1 [ $filename ] - Parameter #2 [ $offset = ] - Parameter #3 [ $length = ] + Parameter #0 [ int $conn_fd ] + Parameter #1 [ string $filename ] + Parameter #2 [ int $offset = 0 ] + Parameter #3 [ int $length = 0 ] } + - Return [ bool ] } Method [ public method close ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $reset = ] + Parameter #0 [ int $fd ] + Parameter #1 [ bool $reset = false ] } + - Return [ bool ] } Method [ public method confirm ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method pause ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method resume ] { - Parameters [1] { - Parameter #0 [ $fd ] + Parameter #0 [ int $fd ] } + - Return [ bool ] } Method [ public method task ] { - Parameters [3] { - Parameter #0 [ $data ] - Parameter #1 [ $task_worker_index = ] - Parameter #2 [ ?callable $finish_callback = ] + Parameter #0 [ mixed $data ] + Parameter #1 [ int $taskWorkerIndex = -1 ] + Parameter #2 [ ?callable $finishCallback = null ] } + - Return [ int|false ] } Method [ public method taskwait ] { - Parameters [3] { - Parameter #0 [ $data ] - Parameter #1 [ $timeout = ] - Parameter #2 [ $task_worker_index = ] + Parameter #0 [ mixed $data ] + Parameter #1 [ float $timeout = 0.5 ] + Parameter #2 [ int $taskWorkerIndex = -1 ] } + - Return [ string|false ] } Method [ public method taskWaitMulti ] { - Parameters [2] { Parameter #0 [ array $tasks ] - Parameter #1 [ $timeout = ] + Parameter #1 [ float $timeout = 0.5 ] } + - Return [ array|false ] } Method [ public method taskCo ] { - Parameters [2] { Parameter #0 [ array $tasks ] - Parameter #1 [ $timeout = ] + Parameter #1 [ float $timeout = 0.5 ] } + - Return [ array|false ] } Method [ public method finish ] { - Parameters [1] { - Parameter #0 [ $data ] + Parameter #0 [ mixed $data ] } + - Return [ bool ] } Method [ public method reload ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ bool $only_reload_taskworker = false ] } + - Return [ bool ] } Method [ public method shutdown ] { - Parameters [0] { } + - Return [ bool ] } Method [ public method stop ] { - - Parameters [1] { - Parameter #0 [ $worker_id = ] + - Parameters [2] { + Parameter #0 [ int $workerId = -1 ] + Parameter #1 [ bool $waitEvent = false ] } + - Return [ bool ] } Method [ public method getLastError ] { - Parameters [0] { } + - Return [ int ] } Method [ public method heartbeat ] { - Parameters [1] { - Parameter #0 [ $reactor_id ] + Parameter #0 [ bool $ifCloseConnection = true ] } + - Return [ array|false ] } Method [ public method getClientInfo ] { - - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $reactor_id = ] + - Parameters [3] { + Parameter #0 [ int $fd ] + Parameter #1 [ int $reactor_id = -1 ] + Parameter #2 [ bool $ignoreError = false ] } + - Return [ array|false ] } Method [ public method getClientList ] { - Parameters [2] { - Parameter #0 [ $start_fd ] - Parameter #1 [ $find_count = ] + Parameter #0 [ int $start_fd = 0 ] + Parameter #1 [ int $find_count = 10 ] } + - Return [ array|false ] } Method [ public method getWorkerId ] { - Parameters [0] { } + - Return [ int|false ] } Method [ public method getWorkerPid ] { - Parameters [1] { - Parameter #0 [ $worker_id = ] + Parameter #0 [ int $worker_id = -1 ] } + - Return [ int|false ] } Method [ public method getWorkerStatus ] { - Parameters [1] { - Parameter #0 [ $worker_id = ] + Parameter #0 [ int $worker_id = -1 ] } + - Return [ int|false ] } Method [ public method getManagerPid ] { - Parameters [0] { } + - Return [ int ] } Method [ public method getMasterPid ] { - Parameters [0] { } + - Return [ int ] } Method [ public method connection_info ] { - - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $reactor_id = ] + - Parameters [3] { + Parameter #0 [ int $fd ] + Parameter #1 [ int $reactor_id = -1 ] + Parameter #2 [ bool $ignoreError = false ] } + - Return [ array|false ] } Method [ public method connection_list ] { - Parameters [2] { - Parameter #0 [ $start_fd ] - Parameter #1 [ $find_count = ] + Parameter #0 [ int $start_fd = 0 ] + Parameter #1 [ int $find_count = 10 ] } + - Return [ array|false ] } Method [ public method sendMessage ] { - Parameters [2] { - Parameter #0 [ $message ] - Parameter #1 [ $dst_worker_id ] + Parameter #0 [ mixed $message ] + Parameter #1 [ int $dst_worker_id ] } + - Return [ bool ] } Method [ public method command ] { - Parameters [5] { - Parameter #0 [ $name ] - Parameter #1 [ $process_id ] - Parameter #2 [ $process_type ] - Parameter #3 [ $data ] - Parameter #4 [ $json_encode = ] + Parameter #0 [ string $name ] + Parameter #1 [ int $process_id ] + Parameter #2 [ int $process_type ] + Parameter #3 [ mixed $data ] + Parameter #4 [ bool $json_decode = true ] } + - Return [ string|false ] } Method [ public method addCommand ] { - Parameters [3] { - Parameter #0 [ $name ] - Parameter #1 [ $accepted_process_types ] + Parameter #0 [ string $name ] + Parameter #1 [ int $accepted_process_types ] Parameter #2 [ callable $callback ] } + - Return [ bool ] } Method [ public method addProcess ] { - Parameters [1] { - Parameter #0 [ swoole_process $process ] + Parameter #0 [ Swoole\Process $process ] } + - Return [ int ] } Method [ public method stats ] { - Parameters [0] { } + - Return [ array ] } Method [ public method getSocket ] { - Parameters [1] { - Parameter #0 [ $port = ] + Parameter #0 [ int $port = 0 ] } + - Return [ Socket|false ] } Method [ public method bind ] { - Parameters [2] { - Parameter #0 [ $fd ] - Parameter #1 [ $uid ] + Parameter #0 [ int $fd ] + Parameter #1 [ int $uid ] } + - Return [ bool ] } + } + } + + Class [ class Swoole\NameResolver\Context ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } - Method [ public method after ] { + - Methods [1] { + Method [ public method __construct ] { - Parameters [2] { - Parameter #0 [ $ms ] - Parameter #1 [ callable $callback ] + Parameter #0 [ int $family = AF_INET ] + Parameter #1 [ bool $withPort = false ] + } + } + } + } + + Class [ class Swoole\Coroutine\PostgreSQL ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [5] { + Property [ public $error = NULL ] + Property [ public $errCode = 0 ] + Property [ public $resultStatus = 0 ] + Property [ public $resultDiag = NULL ] + Property [ public $notices = NULL ] + } + + - Methods [9] { + Method [ public method __construct ] { + + - Parameters [0] { } } - Method [ public method tick ] { + Method [ public method connect ] { - Parameters [2] { - Parameter #0 [ $ms ] - Parameter #1 [ callable $callback ] + Parameter #0 [ string $conninfo ] + Parameter #1 [ float $timeout = 2 ] + } + - Return [ bool ] + } + + Method [ public method query ] { + + - Parameters [1] { + Parameter #0 [ string $query ] } + - Return [ Swoole\Coroutine\PostgreSQLStatement|false ] } - Method [ public method clearTimer ] { + Method [ public method prepare ] { - Parameters [1] { - Parameter #0 [ $timer_id ] + Parameter #0 [ string $query ] } + - Return [ Swoole\Coroutine\PostgreSQLStatement|false ] } - Method [ public method defer ] { + Method [ public method metaData ] { - Parameters [1] { - Parameter #0 [ callable $callback ] + Parameter #0 [ string $table_name ] + } + - Return [ array|false ] + } + + Method [ public method escape ] { + + - Parameters [1] { + Parameter #0 [ string $string ] + } + - Return [ string|false ] + } + + Method [ public method escapeLiteral ] { + + - Parameters [1] { + Parameter #0 [ string $string ] + } + - Return [ string|false ] + } + + Method [ public method escapeIdentifier ] { + + - Parameters [1] { + Parameter #0 [ string $string ] + } + - Return [ string|false ] + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Coroutine\PostgreSQLStatement ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [5] { + Property [ public $error = NULL ] + Property [ public $errCode = 0 ] + Property [ public $resultStatus = 0 ] + Property [ public $resultDiag = NULL ] + Property [ public $notices = NULL ] + } + + - Methods [9] { + Method [ public method execute ] { + + - Parameters [1] { + Parameter #0 [ array $params = [] ] + } + - Return [ bool ] + } + + Method [ public method fetchAll ] { + + - Parameters [1] { + Parameter #0 [ int $result_type = SW_PGSQL_ASSOC ] + } + - Return [ array|false ] + } + + Method [ public method affectedRows ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ public method numRows ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ public method fieldCount ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ public method fetchObject ] { + + - Parameters [3] { + Parameter #0 [ ?int $row = 0 ] + Parameter #1 [ ?string $class_name = null ] + Parameter #2 [ array $ctor_params = [] ] + } + - Return [ object|false ] + } + + Method [ public method fetchAssoc ] { + + - Parameters [2] { + Parameter #0 [ ?int $row = 0 ] + Parameter #1 [ int $result_type = SW_PGSQL_ASSOC ] + } + - Return [ array|false ] + } + + Method [ public method fetchArray ] { + + - Parameters [2] { + Parameter #0 [ ?int $row = 0 ] + Parameter #1 [ int $result_type = SW_PGSQL_BOTH ] + } + - Return [ array|false ] + } + + Method [ public method fetchRow ] { + + - Parameters [2] { + Parameter #0 [ ?int $row = 0 ] + Parameter #1 [ int $result_type = SW_PGSQL_NUM ] } + - Return [ array|false ] } } } -- cgit