summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-08-02 08:21:44 +0200
committerRemi Collet <remi@php.net>2022-08-02 08:21:44 +0200
commite36e91a9c8a442cf1b302462085a145104142d39 (patch)
treecd93f21b8168313d4167653d444109e9359811c3
parent9bce209f6a1ff8a8f5d7f4362d88fac4fc02985b (diff)
update to 5.0.0HEADmaster
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
-rw-r--r--PHPINFO7
-rw-r--r--REFLECTION3051
-rw-r--r--php-pecl-swoole5.spec74
3 files changed, 1928 insertions, 1204 deletions
diff --git a/PHPINFO b/PHPINFO
index 4c94a61..fd9a3b4 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -3,8 +3,8 @@ swoole
Swoole => enabled
Author => Swoole Team <team@swoole.com>
-Version => 4.8.11
-Built => Jul 12 2022 00:00:00
+Version => 5.0.0
+Built => Aug 2 2022 00:00:00
coroutine => enabled with boost asm context
trace_log => enabled
epoll => enabled
@@ -14,7 +14,7 @@ cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
-openssl => OpenSSL 1.1.1o FIPS 3 May 2022
+openssl => OpenSSL 1.1.1q FIPS 5 Jul 2022
dtls => enabled
http2 => enabled
json => enabled
@@ -28,6 +28,7 @@ pthread_barrier => enabled
futex => enabled
mysqlnd => enabled
async_redis => enabled
+coroutine_postgresql => enabled
Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
diff --git a/REFLECTION b/REFLECTION
index 5576ab6..6cf632f 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
+Extension [ <persistent> extension #88 swoole version 5.0.0 ] {
- Dependencies {
Dependency [ json (Required) ]
@@ -28,12 +28,12 @@ Extension [ <persistent> 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 [ <persistent> 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 [ <persistent> 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 [ <persistent> 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 [ <persistent> 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 [ <persistent> 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 [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [0] {
}
+ - Return [ string ]
}
Function [ <internal:swoole> function swoole_cpu_num ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Function [ <internal:swoole> function swoole_last_error ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Function [ <internal:swoole> function swoole_async_dns_lookup_coro ] {
- Parameters [3] {
- Parameter #0 [ <required> $domain_name ]
- Parameter #1 [ <optional> $timeout = <default> ]
- Parameter #2 [ <optional> $type = <default> ]
+ Parameter #0 [ <required> mixed $domain_name ]
+ Parameter #1 [ <optional> float $timeout = 60 ]
+ Parameter #2 [ <optional> int $type = AF_INET ]
}
+ - Return [ string|false ]
}
Function [ <internal:swoole> function swoole_async_set ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ void ]
}
Function [ <internal:swoole> function swoole_coroutine_create ] {
- Parameters [2] {
Parameter #0 [ <required> callable $func ]
- Parameter #1 [ <optional> ...$params ]
+ Parameter #1 [ <optional> mixed ...$params ]
}
+ - Return [ int|false ]
}
Function [ <internal:swoole> function swoole_coroutine_defer ] {
- Parameters [1] {
Parameter #0 [ <required> callable $callback ]
}
+ - Return [ void ]
}
Function [ <internal:swoole> function swoole_coroutine_socketpair ] {
- Parameters [3] {
- Parameter #0 [ <required> $domain ]
- Parameter #1 [ <required> $type ]
- Parameter #2 [ <required> $protocol ]
+ Parameter #0 [ <required> int $domain ]
+ Parameter #1 [ <required> int $type ]
+ Parameter #2 [ <required> int $protocol ]
}
+ - Return [ array|false ]
}
Function [ <internal:swoole> function swoole_test_kernel_coroutine ] {
- Parameters [2] {
- Parameter #0 [ <optional> $count = <default> ]
- Parameter #1 [ <optional> $sleep_time = <default> ]
+ Parameter #0 [ <optional> int $count = 100 ]
+ Parameter #1 [ <optional> float $sleep_time = 1.0 ]
}
+ - Return [ void ]
}
Function [ <internal:swoole> function swoole_client_select ] {
- Parameters [4] {
- Parameter #0 [ <required> &$read_array ]
- Parameter #1 [ <required> &$write_array ]
- Parameter #2 [ <required> &$error_array ]
- Parameter #3 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> array &$read_array ]
+ Parameter #1 [ <required> array &$write_array ]
+ Parameter #2 [ <required> array &$error_array ]
+ Parameter #3 [ <optional> float $timeout = 0.5 ]
}
+ - Return [ int|false ]
}
Function [ <internal:swoole> function swoole_select ] {
- Parameters [4] {
- Parameter #0 [ <required> &$read_array ]
- Parameter #1 [ <required> &$write_array ]
- Parameter #2 [ <required> &$error_array ]
- Parameter #3 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> array &$read_array ]
+ Parameter #1 [ <required> array &$write_array ]
+ Parameter #2 [ <required> array &$error_array ]
+ Parameter #3 [ <optional> float $timeout = 0.5 ]
}
+ - Return [ int|false ]
}
Function [ <internal:swoole> function swoole_set_process_name ] {
- Parameters [1] {
- Parameter #0 [ <required> $process_name ]
+ Parameter #0 [ <required> string $process_name ]
}
+ - Return [ bool ]
}
Function [ <internal:swoole> function swoole_get_local_ip ] {
- Parameters [0] {
}
+ - Return [ array ]
}
Function [ <internal:swoole> function swoole_get_local_mac ] {
- Parameters [0] {
}
+ - Return [ array ]
}
Function [ <internal:swoole> function swoole_strerror ] {
- Parameters [2] {
- Parameter #0 [ <required> $errno ]
- Parameter #1 [ <optional> $error_type = <default> ]
+ Parameter #0 [ <required> int $errno ]
+ Parameter #1 [ <optional> int $error_type = SWOOLE_STRERROR_SYSTEM ]
}
+ - Return [ string ]
}
Function [ <internal:swoole> function swoole_errno ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Function [ <internal:swoole> function swoole_clear_error ] {
- Parameters [0] {
}
+ - Return [ void ]
}
Function [ <internal:swoole> function swoole_error_log ] {
- Parameters [2] {
- Parameter #0 [ <required> $level ]
- Parameter #1 [ <required> $msg ]
+ Parameter #0 [ <required> int $level ]
+ Parameter #1 [ <required> string $msg ]
}
+ - Return [ void ]
}
Function [ <internal:swoole> function swoole_error_log_ex ] {
- Parameters [3] {
- Parameter #0 [ <required> $level ]
- Parameter #1 [ <required> $error ]
- Parameter #2 [ <required> $msg ]
+ Parameter #0 [ <required> int $level ]
+ Parameter #1 [ <required> int $error ]
+ Parameter #2 [ <required> string $msg ]
}
+ - Return [ void ]
}
Function [ <internal:swoole> function swoole_ignore_error ] {
- Parameters [1] {
- Parameter #0 [ <required> $error ]
+ Parameter #0 [ <required> int $error ]
}
+ - Return [ void ]
}
Function [ <internal:swoole> function swoole_hashcode ] {
- Parameters [2] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $type = <default> ]
+ Parameter #0 [ <required> string $data ]
+ Parameter #1 [ <optional> int $type = 0 ]
}
+ - Return [ int|false ]
}
Function [ <internal:swoole> function swoole_mime_type_add ] {
- Parameters [2] {
- Parameter #0 [ <required> $suffix ]
- Parameter #1 [ <required> $mime_type ]
+ Parameter #0 [ <required> string $suffix ]
+ Parameter #1 [ <required> string $mime_type ]
}
+ - Return [ bool ]
}
Function [ <internal:swoole> function swoole_mime_type_set ] {
- Parameters [2] {
- Parameter #0 [ <required> $suffix ]
- Parameter #1 [ <required> $mime_type ]
+ Parameter #0 [ <required> string $suffix ]
+ Parameter #1 [ <required> string $mime_type ]
}
+ - Return [ void ]
}
Function [ <internal:swoole> function swoole_mime_type_delete ] {
- Parameters [1] {
- Parameter #0 [ <required> $suffix ]
+ Parameter #0 [ <required> string $suffix ]
}
+ - Return [ bool ]
}
Function [ <internal:swoole> function swoole_mime_type_get ] {
- Parameters [1] {
- Parameter #0 [ <required> $filename ]
+ Parameter #0 [ <required> string $filename ]
}
+ - Return [ string ]
}
Function [ <internal:swoole> function swoole_get_mime_type ] {
- Parameters [1] {
- Parameter #0 [ <required> $filename ]
+ Parameter #0 [ <required> string $filename ]
}
+ - Return [ string ]
}
Function [ <internal:swoole> function swoole_mime_type_exists ] {
- Parameters [1] {
- Parameter #0 [ <required> $filename ]
+ Parameter #0 [ <required> string $filename ]
}
+ - Return [ bool ]
}
Function [ <internal:swoole> function swoole_mime_type_list ] {
- Parameters [0] {
}
+ - Return [ array ]
}
Function [ <internal:swoole> function swoole_clear_dns_cache ] {
- Parameters [0] {
}
+ - Return [ void ]
}
Function [ <internal:swoole> function swoole_substr_unserialize ] {
- Parameters [4] {
- Parameter #0 [ <required> $str ]
- Parameter #1 [ <required> $offset ]
- Parameter #2 [ <optional> $length = <default> ]
- Parameter #3 [ <optional> $options = <default> ]
+ Parameter #0 [ <required> string $str ]
+ Parameter #1 [ <required> int $offset ]
+ Parameter #2 [ <optional> int $length = 0 ]
+ Parameter #3 [ <optional> array $options = [] ]
}
+ - Return [ mixed ]
}
Function [ <internal:swoole> function swoole_substr_json_decode ] {
- Parameters [6] {
- Parameter #0 [ <required> $json ]
- Parameter #1 [ <required> $offset ]
- Parameter #2 [ <optional> $length = <default> ]
- Parameter #3 [ <optional> $associative = <default> ]
- Parameter #4 [ <optional> $depth = <default> ]
- Parameter #5 [ <optional> $flags = <default> ]
+ Parameter #0 [ <required> string $str ]
+ Parameter #1 [ <required> int $offset ]
+ Parameter #2 [ <optional> int $length = 0 ]
+ Parameter #3 [ <optional> bool $associative = false ]
+ Parameter #4 [ <optional> int $depth = 512 ]
+ Parameter #5 [ <optional> int $flags = 0 ]
}
+ - Return [ mixed ]
}
Function [ <internal:swoole> function swoole_internal_call_user_shutdown_begin ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Function [ <internal:swoole> function swoole_get_objects ] {
- Parameters [0] {
}
- - Return [ array|bool ]
+ - Return [ array|false ]
}
Function [ <internal:swoole> function swoole_get_vm_status ] {
- Parameters [0] {
}
- - Return [ array|bool ]
+ - Return [ array ]
}
Function [ <internal:swoole> function swoole_get_object_by_handle ] {
- Parameters [1] {
Parameter #0 [ <required> int $handle ]
}
- - Return [ object|bool ]
+ - Return [ object|false ]
+ }
+ Function [ <internal:swoole> function swoole_name_resolver_lookup ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> string $name ]
+ Parameter #1 [ <required> Swoole\NameResolver\Context $ctx ]
+ }
+ - Return [ string ]
+ }
+ Function [ <internal:swoole> function swoole_name_resolver_add ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> Swoole\NameResolver $ns ]
+ }
+ - Return [ bool ]
+ }
+ Function [ <internal:swoole> function swoole_name_resolver_remove ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> Swoole\NameResolver $ns ]
+ }
+ - Return [ bool ]
}
Function [ <internal:swoole> function go ] {
- Parameters [1] {
Parameter #0 [ <required> callable $func ]
}
+ - Return [ int|false ]
}
Function [ <internal:swoole> function defer ] {
- Parameters [1] {
Parameter #0 [ <required> callable $callback ]
}
+ - Return [ void ]
}
- Method [ <internal:swoole> public method swoole_event_add ] {
+ Function [ <internal:swoole> function swoole_event_add ] {
- Parameters [4] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <required> ?callable $read_callback ]
- Parameter #2 [ <optional> ?callable $write_callback = <default> ]
- Parameter #3 [ <optional> $events = <default> ]
+ Parameter #0 [ <required> mixed $fd ]
+ Parameter #1 [ <optional> ?callable $read_callback = null ]
+ Parameter #2 [ <optional> ?callable $write_callback = null ]
+ Parameter #3 [ <optional> int $events = SWOOLE_EVENT_READ ]
}
+ - Return [ int|false ]
}
- Method [ <internal:swoole> public method swoole_event_del ] {
+ Function [ <internal:swoole> function swoole_event_del ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> mixed $fd ]
}
+ - Return [ bool ]
}
- Method [ <internal:swoole> public method swoole_event_set ] {
+ Function [ <internal:swoole> function swoole_event_set ] {
- Parameters [4] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> ?callable $read_callback = <default> ]
- Parameter #2 [ <optional> ?callable $write_callback = <default> ]
- Parameter #3 [ <optional> $events = <default> ]
+ Parameter #0 [ <required> mixed $fd ]
+ Parameter #1 [ <optional> ?callable $read_callback = null ]
+ Parameter #2 [ <optional> ?callable $write_callback = null ]
+ Parameter #3 [ <optional> int $events = 0 ]
}
+ - Return [ bool ]
}
- Method [ <internal:swoole> public method swoole_event_isset ] {
+ Function [ <internal:swoole> function swoole_event_isset ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $events = <default> ]
+ Parameter #0 [ <required> mixed $fd ]
+ Parameter #1 [ <optional> int $events = SWOOLE_EVENT_READ | SWOOLE_EVENT_WRITE ]
}
+ - Return [ bool ]
}
- Method [ <internal:swoole> public method swoole_event_dispatch ] {
+ Function [ <internal:swoole> function swoole_event_dispatch ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
- Method [ <internal:swoole> public method swoole_event_defer ] {
+ Function [ <internal:swoole> function swoole_event_defer ] {
- Parameters [1] {
Parameter #0 [ <required> callable $callback ]
}
+ - Return [ bool ]
}
- Method [ <internal:swoole> public method swoole_event_cycle ] {
+ Function [ <internal:swoole> function swoole_event_cycle ] {
- Parameters [2] {
Parameter #0 [ <required> ?callable $callback ]
- Parameter #1 [ <optional> $before = <default> ]
+ Parameter #1 [ <optional> bool $before = false ]
}
+ - Return [ bool ]
}
- Method [ <internal:swoole> public method swoole_event_write ] {
+ Function [ <internal:swoole> function swoole_event_write ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <required> $data ]
+ Parameter #0 [ <required> mixed $fd ]
+ Parameter #1 [ <required> string $data ]
}
+ - Return [ bool ]
}
- Method [ <internal:swoole> public method swoole_event_wait ] {
+ Function [ <internal:swoole> function swoole_event_wait ] {
- Parameters [0] {
}
+ - Return [ void ]
}
- Method [ <internal:swoole> public method swoole_event_exit ] {
+ Function [ <internal:swoole> function swoole_event_exit ] {
- Parameters [0] {
}
+ - Return [ void ]
}
- Method [ <internal:swoole> public method swoole_timer_set ] {
+ Function [ <internal:swoole> function swoole_timer_set ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ void ]
}
- Method [ <internal:swoole> public method swoole_timer_after ] {
+ Function [ <internal:swoole> function swoole_timer_after ] {
- Parameters [2] {
- Parameter #0 [ <required> $ms ]
+ Parameter #0 [ <required> int $ms ]
Parameter #1 [ <required> callable $callback ]
}
+ - Return [ int|false ]
}
- Method [ <internal:swoole> public method swoole_timer_tick ] {
+ Function [ <internal:swoole> function swoole_timer_tick ] {
- Parameters [2] {
- Parameter #0 [ <required> $ms ]
+ Parameter #0 [ <required> int $ms ]
Parameter #1 [ <required> callable $callback ]
}
+ - Return [ int|false ]
}
- Method [ <internal:swoole> public method swoole_timer_exists ] {
+ Function [ <internal:swoole> function swoole_timer_exists ] {
- Parameters [1] {
- Parameter #0 [ <required> $timer_id ]
+ Parameter #0 [ <required> int $timer_id ]
}
+ - Return [ bool ]
}
- Method [ <internal:swoole> public method swoole_timer_info ] {
+ Function [ <internal:swoole> function swoole_timer_info ] {
- Parameters [1] {
- Parameter #0 [ <required> $timer_id ]
+ Parameter #0 [ <required> int $timer_id ]
}
+ - Return [ ?array ]
}
- Method [ <internal:swoole> public method swoole_timer_stats ] {
+ Function [ <internal:swoole> function swoole_timer_stats ] {
- Parameters [0] {
}
+ - Return [ array ]
}
- Method [ <internal:swoole> public method swoole_timer_list ] {
+ Function [ <internal:swoole> function swoole_timer_list ] {
- Parameters [0] {
}
+ - Return [  ]
}
- Method [ <internal:swoole> public method swoole_timer_clear ] {
+ Function [ <internal:swoole> function swoole_timer_clear ] {
- Parameters [1] {
- Parameter #0 [ <required> $timer_id ]
+ Parameter #0 [ <required> int $timer_id ]
}
+ - Return [ bool ]
}
- Method [ <internal:swoole> public method swoole_timer_clear_all ] {
+ Function [ <internal:swoole> function swoole_timer_clear_all ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Function [ <internal:swoole> function swoole_native_socket_create_listen ] {
@@ -1004,6 +1084,13 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
}
- Return [ void ]
}
+ Function [ <internal:swoole> function swoole_native_socket_import_stream ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $stream ]
+ }
+ - Return [ Swoole\Coroutine\Socket ]
+ }
Function [ <internal:swoole> function swoole_native_curl_close ] {
- Parameters [1] {
@@ -1180,7 +1267,7 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
}
}
- - Classes [52] {
+ - Classes [55] {
Class [ <internal:swoole> class Swoole\Exception extends Exception implements Throwable, Stringable ] {
- Constants [0] {
@@ -1375,42 +1462,47 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole> static public method add ] {
- Parameters [4] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <required> ?callable $read_callback ]
- Parameter #2 [ <optional> ?callable $write_callback = <default> ]
- Parameter #3 [ <optional> $events = <default> ]
+ Parameter #0 [ <required> mixed $fd ]
+ Parameter #1 [ <optional> ?callable $read_callback = null ]
+ Parameter #2 [ <optional> ?callable $write_callback = null ]
+ Parameter #3 [ <optional> int $events = SWOOLE_EVENT_READ ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> static public method del ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> mixed $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method set ] {
- Parameters [4] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> ?callable $read_callback = <default> ]
- Parameter #2 [ <optional> ?callable $write_callback = <default> ]
- Parameter #3 [ <optional> $events = <default> ]
+ Parameter #0 [ <required> mixed $fd ]
+ Parameter #1 [ <optional> ?callable $read_callback = null ]
+ Parameter #2 [ <optional> ?callable $write_callback = null ]
+ Parameter #3 [ <optional> int $events = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method isset ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $events = <default> ]
+ Parameter #0 [ <required> mixed $fd ]
+ Parameter #1 [ <optional> int $events = SWOOLE_EVENT_READ | SWOOLE_EVENT_WRITE ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method dispatch ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method defer ] {
@@ -1418,40 +1510,46 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> callable $callback ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method cycle ] {
- Parameters [2] {
Parameter #0 [ <required> ?callable $callback ]
- Parameter #1 [ <optional> $before = <default> ]
+ Parameter #1 [ <optional> bool $before = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method write ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <required> $data ]
+ Parameter #0 [ <required> mixed $fd ]
+ Parameter #1 [ <required> string $data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method wait ] {
- Parameters [0] {
}
+ - Return [ void ]
}
Method [ <internal:swoole> static public method rshutdown ] {
- Parameters [0] {
}
+ - Return [ void ]
}
Method [ <internal:swoole> static public method exit ] {
- Parameters [0] {
}
+ - Return [ void ]
}
}
@@ -1480,57 +1578,64 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [1] {
- Parameter #0 [ <optional> $value = <default> ]
+ Parameter #0 [ <optional> int $value = 0 ]
}
}
Method [ <internal:swoole> public method add ] {
- Parameters [1] {
- Parameter #0 [ <optional> $add_value = <default> ]
+ Parameter #0 [ <optional> int $add_value = 1 ]
}
+ - Return [ int ]
}
Method [ <internal:swoole> public method sub ] {
- Parameters [1] {
- Parameter #0 [ <optional> $sub_value = <default> ]
+ Parameter #0 [ <optional> int $sub_value = 1 ]
}
+ - Return [ int ]
}
Method [ <internal:swoole> public method get ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole> public method set ] {
- Parameters [1] {
- Parameter #0 [ <required> $value ]
+ Parameter #0 [ <required> int $value ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> public method wait ] {
- Parameters [1] {
- Parameter #0 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <optional> float $timeout = 1.0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method wakeup ] {
- Parameters [1] {
- Parameter #0 [ <optional> $count = <default> ]
+ Parameter #0 [ <optional> int $count = 1 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method cmpset ] {
- Parameters [2] {
- Parameter #0 [ <required> $cmp_value ]
- Parameter #1 [ <required> $new_value ]
+ Parameter #0 [ <required> int $cmp_value ]
+ Parameter #1 [ <required> int $new_value ]
}
+ - Return [ bool ]
}
}
}
@@ -1553,43 +1658,48 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [1] {
- Parameter #0 [ <optional> $value = <default> ]
+ Parameter #0 [ <optional> int $value = 0 ]
}
}
Method [ <internal:swoole> public method add ] {
- Parameters [1] {
- Parameter #0 [ <optional> $add_value = <default> ]
+ Parameter #0 [ <optional> int $add_value = 1 ]
}
+ - Return [ int ]
}
Method [ <internal:swoole> public method sub ] {
- Parameters [1] {
- Parameter #0 [ <optional> $sub_value = <default> ]
+ Parameter #0 [ <optional> int $sub_value = 1 ]
}
+ - Return [ int ]
}
Method [ <internal:swoole> public method get ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole> public method set ] {
- Parameters [1] {
- Parameter #0 [ <required> $value ]
+ Parameter #0 [ <required> int $value ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> public method cmpset ] {
- Parameters [2] {
- Parameter #0 [ <required> $cmp_value ]
- Parameter #1 [ <required> $new_value ]
+ Parameter #0 [ <required> int $cmp_value ]
+ Parameter #1 [ <required> int $new_value ]
}
+ - Return [ bool ]
}
}
}
@@ -1618,8 +1728,8 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [2] {
- Parameter #0 [ <optional> $type = <default> ]
- Parameter #1 [ <optional> $filename = <default> ]
+ Parameter #0 [ <optional> int $type = SWOOLE_MUTEX ]
+ Parameter #1 [ <optional> string $filename = '' ]
}
}
@@ -1633,43 +1743,50 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method lockwait ] {
- Parameters [1] {
- Parameter #0 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <optional> float $timeout = 1.0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method trylock ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method lock_read ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method trylock_read ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method unlock ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method destroy ] {
- Parameters [0] {
}
+ - Return [ void ]
}
}
}
@@ -1691,41 +1808,46 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole> static public method wait ] {
- Parameters [1] {
- Parameter #0 [ <optional> $blocking = <default> ]
+ Parameter #0 [ <optional> bool $blocking = true ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> static public method signal ] {
- Parameters [2] {
- Parameter #0 [ <required> $signal_no ]
- Parameter #1 [ <required> $callback ]
+ Parameter #0 [ <required> int $signal_no ]
+ Parameter #1 [ <optional> ?callable $callback = null ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method alarm ] {
- Parameters [2] {
- Parameter #0 [ <required> $usec ]
- Parameter #1 [ <optional> $type = <default> ]
+ Parameter #0 [ <required> int $usec ]
+ Parameter #1 [ <optional> int $type = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method kill ] {
- Parameters [2] {
- Parameter #0 [ <required> $pid ]
- Parameter #1 [ <optional> $signal_no = <default> ]
+ Parameter #0 [ <required> int $pid ]
+ Parameter #1 [ <optional> int $signal_no = SIGTERM ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method daemon ] {
- Parameters [3] {
- Parameter #0 [ <optional> $nochdir = <default> ]
- Parameter #1 [ <optional> $noclose = <default> ]
- Parameter #2 [ <optional> $pipes = <default> ]
+ Parameter #0 [ <optional> bool $nochdir = true ]
+ Parameter #1 [ <optional> bool $noclose = true ]
+ Parameter #2 [ <optional> array $pipes = [] ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method setAffinity ] {
@@ -1733,6 +1855,7 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $cpu_settings ]
}
+ - Return [ bool ]
}
}
@@ -1750,9 +1873,9 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [4] {
Parameter #0 [ <required> callable $callback ]
- Parameter #1 [ <optional> $redirect_stdin_and_stdout = <default> ]
- Parameter #2 [ <optional> $pipe_type = <default> ]
- Parameter #3 [ <optional> $enable_coroutine = <default> ]
+ Parameter #1 [ <optional> bool $redirect_stdin_and_stdout = false ]
+ Parameter #2 [ <optional> int $pipe_type = SOCK_DGRAM ]
+ Parameter #3 [ <optional> bool $enable_coroutine = false ]
}
}
@@ -1765,16 +1888,18 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole> public method setPriority ] {
- Parameters [2] {
- Parameter #0 [ <required> $which ]
- Parameter #1 [ <required> $priority ]
+ Parameter #0 [ <required> int $which ]
+ Parameter #1 [ <required> int $priority ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getPriority ] {
- Parameters [1] {
- Parameter #0 [ <required> $which ]
+ Parameter #0 [ <required> int $which ]
}
+ - Return [ int ]
}
Method [ <internal:swoole> public method set ] {
@@ -1782,109 +1907,126 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> public method setTimeout ] {
- Parameters [1] {
- Parameter #0 [ <required> $seconds ]
+ Parameter #0 [ <required> float $seconds ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method setBlocking ] {
- Parameters [1] {
- Parameter #0 [ <required> $blocking ]
+ Parameter #0 [ <required> bool $blocking ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> public method useQueue ] {
- Parameters [3] {
- Parameter #0 [ <optional> $key = <default> ]
- Parameter #1 [ <optional> $mode = <default> ]
- Parameter #2 [ <optional> $capacity = <default> ]
+ Parameter #0 [ <optional> int $key = 0 ]
+ Parameter #1 [ <optional> int $mode = 2 ]
+ Parameter #2 [ <optional> int $capacity = -1 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method statQueue ] {
- Parameters [0] {
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method freeQueue ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method start ] {
- Parameters [0] {
}
+ - Return [ int|bool ]
}
Method [ <internal:swoole> public method write ] {
- Parameters [1] {
- Parameter #0 [ <required> $data ]
+ Parameter #0 [ <required> string $data ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method close ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> int $which = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method read ] {
- Parameters [1] {
- Parameter #0 [ <optional> $size = <default> ]
+ Parameter #0 [ <optional> int $size = 8192 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method push ] {
- Parameters [1] {
- Parameter #0 [ <required> $data ]
+ Parameter #0 [ <required> string $data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method pop ] {
- Parameters [1] {
- Parameter #0 [ <optional> $size = <default> ]
+ Parameter #0 [ <optional> int $size = 65536 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method exit ] {
- Parameters [1] {
- Parameter #0 [ <optional> $exit_code = <default> ]
+ Parameter #0 [ <optional> int $exit_code = 0 ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> public method exec ] {
- Parameters [2] {
- Parameter #0 [ <required> $exec_file ]
- Parameter #1 [ <required> $args ]
+ Parameter #0 [ <required> string $exec_file ]
+ Parameter #1 [ <required> array $args ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method exportSocket ] {
- Parameters [0] {
}
+ - Return [ Swoole\Coroutine\Socket|false ]
}
Method [ <internal:swoole> public method name ] {
- Parameters [1] {
- Parameter #0 [ <required> $process_name ]
+ Parameter #0 [ <required> string $process_name ]
}
+ - Return [ bool ]
}
}
}
@@ -1909,10 +2051,10 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [4] {
- Parameter #0 [ <required> $worker_num ]
- Parameter #1 [ <optional> $ipc_type = <default> ]
- Parameter #2 [ <optional> $msgqueue_key = <default> ]
- Parameter #3 [ <optional> $enable_coroutine = <default> ]
+ Parameter #0 [ <required> int $worker_num ]
+ Parameter #1 [ <optional> int $ipc_type = SWOOLE_IPC_NONE ]
+ Parameter #2 [ <optional> int $msgqueue_key = 0 ]
+ Parameter #3 [ <optional> bool $enable_coroutine = false ]
}
}
@@ -1927,61 +2069,70 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> public method on ] {
- Parameters [2] {
- Parameter #0 [ <required> $event_name ]
+ Parameter #0 [ <required> string $name ]
Parameter #1 [ <required> callable $callback ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getProcess ] {
- Parameters [1] {
- Parameter #0 [ <optional> $worker_id = <default> ]
+ Parameter #0 [ <optional> int $work_id = -1 ]
}
+ - Return [ Swoole\Process|false ]
}
Method [ <internal:swoole> public method listen ] {
- Parameters [3] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <optional> $port = <default> ]
- Parameter #2 [ <optional> $backlog = <default> ]
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <optional> int $port = 0 ]
+ Parameter #2 [ <optional> int $backlog = 2048 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method write ] {
- Parameters [1] {
- Parameter #0 [ <required> $data ]
+ Parameter #0 [ <required> string $data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method detach ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method start ] {
- Parameters [0] {
}
+ - Return [ ?false ]
}
Method [ <internal:swoole> public method stop ] {
- Parameters [0] {
}
+ - Return [ void ]
}
Method [ <internal:swoole> public method shutdown ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
}
}
@@ -2009,46 +2160,51 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [2] {
- Parameter #0 [ <required> $table_size ]
- Parameter #1 [ <optional> $conflict_proportion = <default> ]
+ Parameter #0 [ <required> int $table_size ]
+ Parameter #1 [ <optional> float $conflict_proportion = 0.2 ]
}
}
Method [ <internal:swoole> public method column ] {
- Parameters [3] {
- Parameter #0 [ <required> $name ]
- Parameter #1 [ <required> $type ]
- Parameter #2 [ <optional> $size = <default> ]
+ Parameter #0 [ <required> string $name ]
+ Parameter #1 [ <required> int $type ]
+ Parameter #2 [ <optional> int $size = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method create ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method destroy ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method set ] {
- Parameters [2] {
- Parameter #0 [ <required> $key ]
+ Parameter #0 [ <required> string $key ]
Parameter #1 [ <required> array $value ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method get ] {
- Parameters [2] {
- Parameter #0 [ <required> $key ]
- Parameter #1 [ <optional> $field = <default> ]
+ Parameter #0 [ <required> string $key ]
+ Parameter #1 [ <optional> ?string $field = null ]
}
+ - Return [ array|string|int|float|false ]
}
Method [ <internal:swoole, prototype Countable> public method count ] {
@@ -2061,65 +2217,74 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole> public method del ] {
- Parameters [1] {
- Parameter #0 [ <required> $key ]
+ Parameter #0 [ <required> string $key ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method delete ] {
- Parameters [1] {
- Parameter #0 [ <required> $key ]
+ Parameter #0 [ <required> string $key ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method exists ] {
- Parameters [1] {
- Parameter #0 [ <required> $key ]
+ Parameter #0 [ <required> string $key ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method exist ] {
- Parameters [1] {
- Parameter #0 [ <required> $key ]
+ Parameter #0 [ <required> string $key ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method incr ] {
- Parameters [3] {
- Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $column ]
- Parameter #2 [ <optional> $incrby = <default> ]
+ Parameter #0 [ <required> string $key ]
+ Parameter #1 [ <required> string $column ]
+ Parameter #2 [ <optional> int|float $incrby = 1 ]
}
+ - Return [ int|float ]
}
Method [ <internal:swoole> public method decr ] {
- Parameters [3] {
- Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $column ]
- Parameter #2 [ <optional> $decrby = <default> ]
+ Parameter #0 [ <required> string $key ]
+ Parameter #1 [ <required> string $column ]
+ Parameter #2 [ <optional> int|float $incrby = 1 ]
}
+ - Return [ int|float ]
}
Method [ <internal:swoole> public method getSize ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole> public method getMemorySize ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole> public method stats ] {
- Parameters [0] {
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, prototype Iterator> public method rewind ] {
@@ -2173,63 +2338,72 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> static public method tick ] {
- Parameters [3] {
- Parameter #0 [ <required> $ms ]
+ Parameter #0 [ <required> int $ms ]
Parameter #1 [ <required> callable $callback ]
- Parameter #2 [ <optional> ...$params ]
+ Parameter #2 [ <optional> mixed ...$params ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> static public method after ] {
- Parameters [3] {
- Parameter #0 [ <required> $ms ]
+ Parameter #0 [ <required> int $ms ]
Parameter #1 [ <required> callable $callback ]
- Parameter #2 [ <optional> ...$params ]
+ Parameter #2 [ <optional> mixed ...$params ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> static public method exists ] {
- Parameters [1] {
- Parameter #0 [ <required> $timer_id ]
+ Parameter #0 [ <required> int $timer_id ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method info ] {
- Parameters [1] {
- Parameter #0 [ <required> $timer_id ]
+ Parameter #0 [ <required> int $timer_id ]
}
+ - Return [ ?array ]
}
Method [ <internal:swoole> static public method stats ] {
- Parameters [0] {
}
+ - Return [ array ]
}
Method [ <internal:swoole> static public method list ] {
- Parameters [0] {
}
+ - Return [ Swoole\Timer\Iterator ]
}
Method [ <internal:swoole> static public method clear ] {
- Parameters [1] {
- Parameter #0 [ <required> $timer_id ]
+ Parameter #0 [ <required> int $timer_id ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method clearAll ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
}
@@ -2445,276 +2619,321 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Static properties [0] {
}
- - Static methods [39] {
+ - Static methods [40] {
Method [ <internal:swoole> static public method create ] {
- Parameters [2] {
Parameter #0 [ <required> callable $func ]
- Parameter #1 [ <optional> ...$params ]
+ Parameter #1 [ <optional> mixed ...$param ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> static public method defer ] {
- Parameters [1] {
- Parameter #0 [ <required> $callback ]
+ Parameter #0 [ <required> callable $callback ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> static public method set ] {
- Parameters [1] {
- Parameter #0 [ <required> $options ]
+ Parameter #0 [ <required> array $options ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> static public method getOptions ] {
- Parameters [0] {
}
+ - Return [ ?array ]
}
Method [ <internal:swoole> static public method exists ] {
- Parameters [1] {
- Parameter #0 [ <required> $cid ]
+ Parameter #0 [ <required> int $cid ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method yield ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method cancel ] {
- Parameters [1] {
- Parameter #0 [ <required> $cid ]
+ Parameter #0 [ <required> int $cid ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method join ] {
- Parameters [2] {
- Parameter #0 [ <required> $cid_array ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> array $cid_array ]
+ Parameter #1 [ <optional> float $timeout = -1 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method isCanceled ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method suspend ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method resume ] {
- Parameters [1] {
- Parameter #0 [ <required> $cid ]
+ Parameter #0 [ <required> int $cid ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method stats ] {
- Parameters [0] {
}
+ - Return [ array ]
}
Method [ <internal:swoole> static public method getCid ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole> static public method getuid ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole> static public method getPcid ] {
- Parameters [1] {
- Parameter #0 [ <optional> $cid = <default> ]
+ Parameter #0 [ <optional> int $cid = 0 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> static public method getContext ] {
- Parameters [1] {
- Parameter #0 [ <optional> $cid = <default> ]
+ Parameter #0 [ <optional> int $cid = 0 ]
}
+ - Return [ ?Swoole\Coroutine\Context ]
}
Method [ <internal:swoole> static public method getBackTrace ] {
- Parameters [3] {
- Parameter #0 [ <optional> $cid = <default> ]
- Parameter #1 [ <optional> $options = <default> ]
- Parameter #2 [ <optional> $limit = <default> ]
+ Parameter #0 [ <optional> int $cid = 0 ]
+ Parameter #1 [ <optional> int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT ]
+ Parameter #2 [ <optional> int $limit = 0 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> static public method printBackTrace ] {
- Parameters [3] {
- Parameter #0 [ <optional> $cid = <default> ]
- Parameter #1 [ <optional> $options = <default> ]
- Parameter #2 [ <optional> $limit = <default> ]
+ Parameter #0 [ <optional> int $cid = 0 ]
+ Parameter #1 [ <optional> int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT ]
+ Parameter #2 [ <optional> int $limit = 0 ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> static public method getElapsed ] {
- Parameters [1] {
- Parameter #0 [ <optional> $cid = <default> ]
+ Parameter #0 [ <optional> int $cid = 0 ]
}
+ - Return [ int ]
}
Method [ <internal:swoole> static public method getStackUsage ] {
- Parameters [1] {
- Parameter #0 [ <optional> $cid = <default> ]
+ Parameter #0 [ <optional> int $cid = 0 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> static public method list ] {
- Parameters [0] {
}
+ - Return [ Swoole\Coroutine\Iterator ]
}
Method [ <internal:swoole> static public method listCoroutines ] {
- Parameters [0] {
}
+ - Return [ Swoole\Coroutine\Iterator ]
}
Method [ <internal:swoole> static public method enableScheduler ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method disableScheduler ] {
- Parameters [0] {
}
+ - Return [ bool ]
+ }
+
+ Method [ <internal:swoole> static public method getExecuteTime ] {
+
+ - Parameters [0] {
+ }
+ - Return [ int ]
}
Method [ <internal:swoole> static public method gethostbyname ] {
- Parameters [3] {
- Parameter #0 [ <required> $domain_name ]
- Parameter #1 [ <optional> $family = <default> ]
- Parameter #2 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> string $domain_name ]
+ Parameter #1 [ <optional> int $type = AF_INET ]
+ Parameter #2 [ <optional> float $timeout = -1 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> static public method dnsLookup ] {
- Parameters [3] {
- Parameter #0 [ <required> $domain_name ]
- Parameter #1 [ <optional> $timeout = <default> ]
- Parameter #2 [ <optional> $type = <default> ]
+ Parameter #0 [ <required> string $domain_name ]
+ Parameter #1 [ <optional> float $timeout = 60 ]
+ Parameter #2 [ <optional> int $type = AF_INET ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> static public method exec ] {
- Parameters [2] {
- Parameter #0 [ <required> $command ]
- Parameter #1 [ <optional> $get_error_stream = <default> ]
+ Parameter #0 [ <required> string $command ]
+ Parameter #1 [ <optional> bool $get_error_stream = false ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> static public method sleep ] {
- Parameters [1] {
- Parameter #0 [ <required> $seconds ]
+ Parameter #0 [ <required> float $seconds ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method getaddrinfo ] {
- Parameters [6] {
- Parameter #0 [ <required> $hostname ]
- Parameter #1 [ <optional> $family = <default> ]
- Parameter #2 [ <optional> $socktype = <default> ]
- Parameter #3 [ <optional> $protocol = <default> ]
- Parameter #4 [ <optional> $service = <default> ]
- Parameter #5 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> string $domain ]
+ Parameter #1 [ <optional> int $family = AF_INET ]
+ Parameter #2 [ <optional> int $socktype = SOCK_STREAM ]
+ Parameter #3 [ <optional> int $protocol = STREAM_IPPROTO_TCP ]
+ Parameter #4 [ <optional> ?string $service = null ]
+ Parameter #5 [ <optional> float $timeout = -1 ]
}
+ - Return [ array|bool ]
}
Method [ <internal:swoole> static public method statvfs ] {
- Parameters [1] {
- Parameter #0 [ <required> $path ]
+ Parameter #0 [ <required> string $path ]
}
+ - Return [ array ]
}
Method [ <internal:swoole> static public method readFile ] {
- - Parameters [1] {
- Parameter #0 [ <required> $filename ]
+ - Parameters [2] {
+ Parameter #0 [ <required> string $filename ]
+ Parameter #1 [ <optional> int $flag = 0 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> static public method writeFile ] {
- Parameters [3] {
- Parameter #0 [ <required> $filename ]
- Parameter #1 [ <required> $data ]
- Parameter #2 [ <optional> $flags = <default> ]
+ Parameter #0 [ <required> string $filename ]
+ Parameter #1 [ <required> string $fileContent ]
+ Parameter #2 [ <optional> int $flags = 0 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> static public method wait ] {
- Parameters [1] {
- Parameter #0 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <optional> float $timeout = -1 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> static public method waitPid ] {
- Parameters [2] {
- Parameter #0 [ <required> $pid ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> int $pid ]
+ Parameter #1 [ <optional> float $timeout = -1 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> static public method waitSignal ] {
- Parameters [2] {
- Parameter #0 [ <required> $signo ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> int $signo ]
+ Parameter #1 [ <optional> float $timeout = -1 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method waitEvent ] {
- Parameters [3] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $events = <default> ]
- Parameter #2 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> mixed $socket ]
+ Parameter #1 [ <optional> int $events = SWOOLE_EVENT_READ ]
+ Parameter #2 [ <optional> float $timeout = -1 ]
}
+ - Return [ int|false ]
}
Method [ <internal, deprecated:swoole> static public method fread ] {
- Parameters [2] {
Parameter #0 [ <required> $handle ]
- Parameter #1 [ <optional> $length = <default> ]
+ Parameter #1 [ <optional> int $length = 0 ]
}
+ - Return [ string|false ]
}
Method [ <internal, deprecated:swoole> static public method fgets ] {
@@ -2722,15 +2941,17 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> $handle ]
}
+ - Return [ string|false ]
}
Method [ <internal, deprecated:swoole> static public method fwrite ] {
- Parameters [3] {
Parameter #0 [ <required> $handle ]
- Parameter #1 [ <required> $string ]
- Parameter #2 [ <optional> $length = <default> ]
+ Parameter #1 [ <required> string $data ]
+ Parameter #2 [ <optional> int $length = 0 ]
}
+ - Return [ int|false ]
}
}
@@ -3150,12 +3371,14 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole> public method getStatus ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:Core, inherits Exception, ctor> public method __construct ] {
@@ -3242,118 +3465,133 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole> static public method gethostbyname ] {
- Parameters [3] {
- Parameter #0 [ <required> $domain_name ]
- Parameter #1 [ <optional> $family = <default> ]
- Parameter #2 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> string $domain_name ]
+ Parameter #1 [ <optional> int $type = AF_INET ]
+ Parameter #2 [ <optional> float $timeout = -1 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> static public method dnsLookup ] {
- Parameters [3] {
- Parameter #0 [ <required> $domain_name ]
- Parameter #1 [ <optional> $timeout = <default> ]
- Parameter #2 [ <optional> $type = <default> ]
+ Parameter #0 [ <required> string $domain_name ]
+ Parameter #1 [ <optional> float $timeout = 60 ]
+ Parameter #2 [ <optional> int $type = AF_INET ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> static public method exec ] {
- Parameters [2] {
- Parameter #0 [ <required> $command ]
- Parameter #1 [ <optional> $get_error_stream = <default> ]
+ Parameter #0 [ <required> string $command ]
+ Parameter #1 [ <optional> bool $get_error_stream = false ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> static public method sleep ] {
- Parameters [1] {
- Parameter #0 [ <required> $seconds ]
+ Parameter #0 [ <required> float $seconds ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method getaddrinfo ] {
- Parameters [6] {
- Parameter #0 [ <required> $hostname ]
- Parameter #1 [ <optional> $family = <default> ]
- Parameter #2 [ <optional> $socktype = <default> ]
- Parameter #3 [ <optional> $protocol = <default> ]
- Parameter #4 [ <optional> $service = <default> ]
- Parameter #5 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> string $domain ]
+ Parameter #1 [ <optional> int $family = AF_INET ]
+ Parameter #2 [ <optional> int $socktype = SOCK_STREAM ]
+ Parameter #3 [ <optional> int $protocol = STREAM_IPPROTO_TCP ]
+ Parameter #4 [ <optional> ?string $service = null ]
+ Parameter #5 [ <optional> float $timeout = -1 ]
}
+ - Return [ array|bool ]
}
Method [ <internal:swoole> static public method statvfs ] {
- Parameters [1] {
- Parameter #0 [ <required> $path ]
+ Parameter #0 [ <required> string $path ]
}
+ - Return [ array ]
}
Method [ <internal:swoole> static public method readFile ] {
- - Parameters [1] {
- Parameter #0 [ <required> $filename ]
+ - Parameters [2] {
+ Parameter #0 [ <required> string $filename ]
+ Parameter #1 [ <optional> int $flag = 0 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> static public method writeFile ] {
- Parameters [3] {
- Parameter #0 [ <required> $filename ]
- Parameter #1 [ <required> $data ]
- Parameter #2 [ <optional> $flags = <default> ]
+ Parameter #0 [ <required> string $filename ]
+ Parameter #1 [ <required> string $fileContent ]
+ Parameter #2 [ <optional> int $flags = 0 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> static public method wait ] {
- Parameters [1] {
- Parameter #0 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <optional> float $timeout = -1 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> static public method waitPid ] {
- Parameters [2] {
- Parameter #0 [ <required> $pid ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> int $pid ]
+ Parameter #1 [ <optional> float $timeout = -1 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> static public method waitSignal ] {
- Parameters [2] {
- Parameter #0 [ <required> $signo ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> int $signo ]
+ Parameter #1 [ <optional> float $timeout = -1 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method waitEvent ] {
- Parameters [3] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $events = <default> ]
- Parameter #2 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> mixed $socket ]
+ Parameter #1 [ <optional> int $events = SWOOLE_EVENT_READ ]
+ Parameter #2 [ <optional> float $timeout = -1 ]
}
+ - Return [ int|false ]
}
Method [ <internal, deprecated:swoole> static public method fread ] {
- Parameters [2] {
Parameter #0 [ <required> $handle ]
- Parameter #1 [ <optional> $length = <default> ]
+ Parameter #1 [ <optional> int $length = 0 ]
}
+ - Return [ string|false ]
}
Method [ <internal, deprecated:swoole> static public method fwrite ] {
- Parameters [3] {
Parameter #0 [ <required> $handle ]
- Parameter #1 [ <required> $string ]
- Parameter #2 [ <optional> $length = <default> ]
+ Parameter #1 [ <required> string $data ]
+ Parameter #2 [ <optional> int $length = 0 ]
}
+ - Return [ int|false ]
}
Method [ <internal, deprecated:swoole> static public method fgets ] {
@@ -3361,6 +3599,7 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> $handle ]
}
+ - Return [ string|false ]
}
}
@@ -3390,17 +3629,19 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [2] {
Parameter #0 [ <required> callable $func ]
- Parameter #1 [ <optional> ...$params ]
+ Parameter #1 [ <optional> mixed ...$param ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> public method parallel ] {
- Parameters [3] {
- Parameter #0 [ <required> $n ]
- Parameter #1 [ <optional> callable $func = <default> ]
- Parameter #2 [ <optional> ...$params ]
+ Parameter #0 [ <required> int $n ]
+ Parameter #1 [ <required> callable $func ]
+ Parameter #2 [ <optional> mixed ...$param ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> public method set ] {
@@ -3408,18 +3649,21 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> public method getOptions ] {
- Parameters [0] {
}
+ - Return [ ?array ]
}
Method [ <internal:swoole> public method start ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
}
}
@@ -3444,53 +3688,60 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [1] {
- Parameter #0 [ <optional> $size = <default> ]
+ Parameter #0 [ <optional> int $size = 1 ]
}
}
Method [ <internal:swoole> public method push ] {
- Parameters [2] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> mixed $data ]
+ Parameter #1 [ <optional> float $timeout = -1 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method pop ] {
- Parameters [1] {
- Parameter #0 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <optional> float $timeout = -1 ]
}
+ - Return [ mixed ]
}
Method [ <internal:swoole> public method isEmpty ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method isFull ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method close ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method stats ] {
- Parameters [0] {
}
+ - Return [ array ]
}
Method [ <internal:swoole> public method length ] {
- Parameters [0] {
}
+ - Return [ int ]
}
}
}
@@ -3507,22 +3758,25 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole> static public method enableCoroutine ] {
- Parameters [2] {
- Parameter #0 [ <optional> $enable = <default> ]
- Parameter #1 [ <optional> $flags = <default> ]
+ Parameter #0 [ <optional> int|bool $enable = SWOOLE_HOOK_ALL ]
+ Parameter #1 [ <optional> int $flags = SWOOLE_HOOK_ALL ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> static public method getHookFlags ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole> static public method setHookFlags ] {
- Parameters [1] {
- Parameter #0 [ <required> $flags ]
+ Parameter #0 [ <required> int $flags ]
}
+ - Return [ bool ]
}
}
@@ -3632,7 +3886,14 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Static properties [0] {
}
- - Static methods [0] {
+ - Static methods [1] {
+ Method [ <internal:swoole> static public method import ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $stream ]
+ }
+ - Return [ Swoole\Coroutine\Socket|false ]
+ }
}
- Properties [6] {
@@ -3648,175 +3909,196 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [3] {
- Parameter #0 [ <required> $domain ]
- Parameter #1 [ <required> $type ]
- Parameter #2 [ <optional> $protocol = <default> ]
+ Parameter #0 [ <required> int $domain ]
+ Parameter #1 [ <required> int $type ]
+ Parameter #2 [ <optional> int $protocol = IPPROTO_IP ]
}
}
Method [ <internal:swoole> public method bind ] {
- Parameters [2] {
- Parameter #0 [ <required> $address ]
- Parameter #1 [ <optional> $port = <default> ]
+ Parameter #0 [ <required> string $address ]
+ Parameter #1 [ <optional> int $port = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method listen ] {
- Parameters [1] {
- Parameter #0 [ <optional> $backlog = <default> ]
+ Parameter #0 [ <optional> int $backlog = 512 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method accept ] {
- Parameters [1] {
- Parameter #0 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <optional> float $timeout = 0 ]
}
+ - Return [ Swoole\Coroutine\Socket|false ]
}
Method [ <internal:swoole> public method connect ] {
- Parameters [3] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <optional> $port = <default> ]
- Parameter #2 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <optional> int $port = 0 ]
+ Parameter #2 [ <optional> float $timeout = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method checkLiveness ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method peek ] {
- Parameters [1] {
- Parameter #0 [ <optional> $length = <default> ]
+ Parameter #0 [ <optional> int $length = 65536 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method recv ] {
- Parameters [2] {
- Parameter #0 [ <optional> $length = <default> ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <optional> int $length = 65536 ]
+ Parameter #1 [ <optional> float $timeout = 0 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method recvAll ] {
- Parameters [2] {
- Parameter #0 [ <optional> $length = <default> ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <optional> int $length = 65536 ]
+ Parameter #1 [ <optional> float $timeout = 0 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method recvLine ] {
- Parameters [2] {
- Parameter #0 [ <optional> $length = <default> ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <optional> int $length = 65535 ]
+ Parameter #1 [ <optional> float $timeout = 0 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method recvWithBuffer ] {
- Parameters [2] {
- Parameter #0 [ <optional> $length = <default> ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <optional> int $length = 65535 ]
+ Parameter #1 [ <optional> float $timeout = 0 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method recvPacket ] {
- Parameters [1] {
- Parameter #0 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <optional> float $timeout = 0 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method send ] {
- Parameters [2] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> string $data ]
+ Parameter #1 [ <optional> float $timeout = 0 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method readVector ] {
- Parameters [2] {
- Parameter #0 [ <required> $io_vector ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> array $io_vector ]
+ Parameter #1 [ <optional> float $timeout = 0 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method readVectorAll ] {
- Parameters [2] {
- Parameter #0 [ <required> $io_vector ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> array $io_vector ]
+ Parameter #1 [ <optional> float $timeout = 0 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method writeVector ] {
- Parameters [2] {
- Parameter #0 [ <required> $io_vector ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> array $io_vector ]
+ Parameter #1 [ <optional> float $timeout = 0 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method writeVectorAll ] {
- Parameters [2] {
- Parameter #0 [ <required> $io_vector ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> array $io_vector ]
+ Parameter #1 [ <optional> float $timeout = 0 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method sendFile ] {
- Parameters [3] {
- Parameter #0 [ <required> $filename ]
- Parameter #1 [ <optional> $offset = <default> ]
- Parameter #2 [ <optional> $length = <default> ]
+ Parameter #0 [ <required> string $file ]
+ Parameter #1 [ <optional> int $offset = 0 ]
+ Parameter #2 [ <optional> int $length = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method sendAll ] {
- Parameters [2] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> string $data ]
+ Parameter #1 [ <optional> float $timeout = 0 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method recvfrom ] {
- Parameters [2] {
- Parameter #0 [ <required> &$peername ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <required> mixed &$peername ]
+ Parameter #1 [ <optional> float $timeout = 0 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method sendto ] {
- Parameters [3] {
- Parameter #0 [ <required> $addr ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $data ]
+ Parameter #0 [ <required> string $addr ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> string $data ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method getOption ] {
- Parameters [2] {
- Parameter #0 [ <required> $level ]
- Parameter #1 [ <required> $opt_name ]
+ Parameter #0 [ <required> int $level ]
+ Parameter #1 [ <required> int $opt_name ]
}
+ - Return [ mixed ]
}
Method [ <internal:swoole> public method setProtocol ] {
@@ -3824,59 +4106,68 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method setOption ] {
- Parameters [3] {
- Parameter #0 [ <required> $level ]
- Parameter #1 [ <required> $opt_name ]
- Parameter #2 [ <required> $opt_value ]
+ Parameter #0 [ <required> int $level ]
+ Parameter #1 [ <required> int $opt_name ]
+ Parameter #2 [ <required> mixed $opt_value ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method sslHandshake ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method shutdown ] {
- Parameters [1] {
- Parameter #0 [ <optional> $how = <default> ]
+ Parameter #0 [ <optional> int $how = 2 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method cancel ] {
- Parameters [1] {
- Parameter #0 [ <optional> $event = <default> ]
+ Parameter #0 [ <optional> int $event = SWOOLE_EVENT_READ ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method close ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getpeername ] {
- Parameters [0] {
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method getsockname ] {
- Parameters [0] {
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method isClosed ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
}
}
@@ -4004,9 +4295,9 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [3] {
- Parameter #0 [ <required> $type ]
- Parameter #1 [ <optional> $async = <default> ]
- Parameter #2 [ <optional> $id = <default> ]
+ Parameter #0 [ <required> int $type ]
+ Parameter #1 [ <optional> bool $async = SWOOLE_SOCK_SYNC ]
+ Parameter #2 [ <optional> string $id = '' ]
}
}
@@ -4021,106 +4312,121 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method connect ] {
- Parameters [4] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <optional> $port = <default> ]
- Parameter #2 [ <optional> $timeout = <default> ]
- Parameter #3 [ <optional> $sock_flag = <default> ]
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <optional> int $port = 0 ]
+ Parameter #2 [ <optional> float $timeout = 0.5 ]
+ Parameter #3 [ <optional> int $sock_flag = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method recv ] {
- Parameters [2] {
- Parameter #0 [ <optional> $size = <default> ]
- Parameter #1 [ <optional> $flag = <default> ]
+ Parameter #0 [ <optional> int $size = 65536 ]
+ Parameter #1 [ <optional> int $flag = 0 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method send ] {
- Parameters [2] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $flag = <default> ]
+ Parameter #0 [ <required> string $data ]
+ Parameter #1 [ <optional> int $flag = 0 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method sendfile ] {
- Parameters [3] {
- Parameter #0 [ <required> $filename ]
- Parameter #1 [ <optional> $offset = <default> ]
- Parameter #2 [ <optional> $length = <default> ]
+ Parameter #0 [ <required> string $filename ]
+ Parameter #1 [ <optional> int $offset = 0 ]
+ Parameter #2 [ <optional> int $length = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method sendto ] {
- Parameters [3] {
- Parameter #0 [ <required> $ip ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $data ]
+ Parameter #0 [ <required> string $ip ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> string $data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method shutdown ] {
- Parameters [1] {
- Parameter #0 [ <required> $how ]
+ Parameter #0 [ <required> int $how ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method enableSSL ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getPeerCert ] {
- Parameters [0] {
}
+ - Return [ string|bool ]
}
Method [ <internal:swoole> public method verifyPeerCert ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method isConnected ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getsockname ] {
- Parameters [0] {
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method getpeername ] {
- Parameters [0] {
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method close ] {
- Parameters [1] {
- Parameter #0 [ <optional> $force = <default> ]
+ Parameter #0 [ <optional> bool $force = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getSocket ] {
- Parameters [0] {
}
+ - Return [ Socket|false ]
}
}
}
@@ -4245,7 +4551,7 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [1] {
- Parameter #0 [ <required> $type ]
+ Parameter #0 [ <required> int $type ]
}
}
@@ -4260,112 +4566,130 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method connect ] {
- Parameters [4] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <optional> $port = <default> ]
- Parameter #2 [ <optional> $timeout = <default> ]
- Parameter #3 [ <optional> $sock_flag = <default> ]
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <optional> int $port = 0 ]
+ Parameter #2 [ <optional> float $timeout = 0 ]
+ Parameter #3 [ <optional> int $sock_flag = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method recv ] {
- Parameters [1] {
- Parameter #0 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <optional> float $timeout = 0 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method peek ] {
- Parameters [1] {
- Parameter #0 [ <optional> $length = <default> ]
+ Parameter #0 [ <optional> int $length = 65535 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method send ] {
- - Parameters [1] {
- Parameter #0 [ <required> $data ]
+ - Parameters [2] {
+ Parameter #0 [ <required> string $data ]
+ Parameter #1 [ <optional> float $timeout = 0 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method sendfile ] {
- Parameters [3] {
- Parameter #0 [ <required> $filename ]
- Parameter #1 [ <optional> $offset = <default> ]
- Parameter #2 [ <optional> $length = <default> ]
+ Parameter #0 [ <required> string $filename ]
+ Parameter #1 [ <optional> int $offset = 0 ]
+ Parameter #2 [ <optional> int $length = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method sendto ] {
- Parameters [3] {
- Parameter #0 [ <required> $address ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $data ]
+ Parameter #0 [ <required> string $address ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> string $data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method recvfrom ] {
- Parameters [3] {
- Parameter #0 [ <required> $length ]
- Parameter #1 [ <required> &$address ]
- Parameter #2 [ <optional> &$port = <default> ]
+ Parameter #0 [ <required> int $length ]
+ Parameter #1 [ <required> mixed &$address ]
+ Parameter #2 [ <optional> mixed &$port = 0 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method enableSSL ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getPeerCert ] {
- Parameters [0] {
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method verifyPeerCert ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> bool $allow_self_signed = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method isConnected ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getsockname ] {
- Parameters [0] {
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method getpeername ] {
- Parameters [0] {
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method close ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method exportSocket ] {
- Parameters [0] {
}
+ - Return [ Swoole\Coroutine\Socket|false ]
}
}
}
@@ -4406,9 +4730,9 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [3] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <optional> $port = <default> ]
- Parameter #2 [ <optional> $ssl = <default> ]
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <optional> int $port = 0 ]
+ Parameter #2 [ <optional> bool $ssl = false ]
}
}
@@ -4423,26 +4747,30 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getDefer ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method setDefer ] {
- Parameters [1] {
- Parameter #0 [ <optional> $defer = <default> ]
+ Parameter #0 [ <optional> bool $defer = true ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method setMethod ] {
- Parameters [1] {
- Parameter #0 [ <required> $method ]
+ Parameter #0 [ <required> string $method ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method setHeaders ] {
@@ -4450,14 +4778,16 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $headers ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method setBasicAuth ] {
- Parameters [2] {
- Parameter #0 [ <required> $username ]
- Parameter #1 [ <required> $password ]
+ Parameter #0 [ <required> string $username ]
+ Parameter #1 [ <required> string $password ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> public method setCookies ] {
@@ -4465,143 +4795,163 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $cookies ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method setData ] {
- Parameters [1] {
- Parameter #0 [ <required> $data ]
+ Parameter #0 [ <required> array|string $data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method addFile ] {
- Parameters [6] {
- Parameter #0 [ <required> $path ]
- Parameter #1 [ <required> $name ]
- Parameter #2 [ <optional> $type = <default> ]
- Parameter #3 [ <optional> $filename = <default> ]
- Parameter #4 [ <optional> $offset = <default> ]
- Parameter #5 [ <optional> $length = <default> ]
+ Parameter #0 [ <required> string $path ]
+ Parameter #1 [ <required> string $name ]
+ Parameter #2 [ <optional> ?string $type = null ]
+ Parameter #3 [ <optional> ?string $filename = null ]
+ Parameter #4 [ <optional> int $offset = 0 ]
+ Parameter #5 [ <optional> int $length = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method addData ] {
- Parameters [4] {
- Parameter #0 [ <required> $path ]
- Parameter #1 [ <required> $name ]
- Parameter #2 [ <optional> $type = <default> ]
- Parameter #3 [ <optional> $filename = <default> ]
+ Parameter #0 [ <required> string $path ]
+ Parameter #1 [ <required> string $name ]
+ Parameter #2 [ <optional> ?string $type = null ]
+ Parameter #3 [ <optional> ?string $filename = null ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method execute ] {
- Parameters [1] {
- Parameter #0 [ <required> $path ]
+ Parameter #0 [ <required> string $path ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getpeername ] {
- Parameters [0] {
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method getsockname ] {
- Parameters [0] {
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method get ] {
- Parameters [1] {
- Parameter #0 [ <required> $path ]
+ Parameter #0 [ <required> string $path ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method post ] {
- Parameters [2] {
- Parameter #0 [ <required> $path ]
- Parameter #1 [ <required> $data ]
+ Parameter #0 [ <required> string $path ]
+ Parameter #1 [ <required> mixed $data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method download ] {
- Parameters [3] {
- Parameter #0 [ <required> $path ]
- Parameter #1 [ <required> $file ]
- Parameter #2 [ <optional> $offset = <default> ]
+ Parameter #0 [ <required> string $path ]
+ Parameter #1 [ <required> string $file ]
+ Parameter #2 [ <optional> int $offset = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getBody ] {
- Parameters [0] {
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method getHeaders ] {
- Parameters [0] {
}
+ - Return [ array|false|null ]
}
Method [ <internal:swoole> public method getCookies ] {
- Parameters [0] {
}
+ - Return [ array|false|null ]
}
Method [ <internal:swoole> public method getStatusCode ] {
- Parameters [0] {
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method getHeaderOut ] {
- Parameters [0] {
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method getPeerCert ] {
- Parameters [0] {
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method upgrade ] {
- Parameters [1] {
- Parameter #0 [ <required> $path ]
+ Parameter #0 [ <required> string $path ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method push ] {
- Parameters [3] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $opcode = <default> ]
- Parameter #2 [ <optional> $flags = <default> ]
+ Parameter #0 [ <required> mixed $data ]
+ Parameter #1 [ <optional> int $opcode = SWOOLE_WEBSOCKET_OPCODE_TEXT ]
+ Parameter #2 [ <optional> int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method recv ] {
- Parameters [1] {
- Parameter #0 [ <optional> $timeout = <default> ]
+ Parameter #0 [ <optional> float $timeout = 0 ]
}
+ - Return [ Swoole\WebSocket\Frame|bool ]
}
Method [ <internal:swoole> public method close ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
}
}
@@ -4697,6 +5047,276 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
}
}
+ Class [ <internal:swoole> 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 [ <internal:swoole, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <optional> int $port = 80 ]
+ Parameter #2 [ <optional> bool $open_ssl = false ]
+ }
+ }
+
+ Method [ <internal:swoole> public method __destruct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method set ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $settings ]
+ }
+ - Return [ bool ]
+ }
+
+ Method [ <internal:swoole> public method connect ] {
+
+ - Parameters [0] {
+ }
+ - Return [ bool ]
+ }
+
+ Method [ <internal:swoole> public method stats ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> string $key = '' ]
+ }
+ - Return [ array|int ]
+ }
+
+ Method [ <internal:swoole> public method isStreamExist ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> int $stream_id ]
+ }
+ - Return [ bool ]
+ }
+
+ Method [ <internal:swoole> public method send ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> Swoole\Http2\Request $request ]
+ }
+ - Return [ int|false ]
+ }
+
+ Method [ <internal:swoole> public method write ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> int $stream_id ]
+ Parameter #1 [ <required> mixed $data ]
+ Parameter #2 [ <optional> bool $end_stream = false ]
+ }
+ - Return [ bool ]
+ }
+
+ Method [ <internal:swoole> public method recv ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> float $timeout = 0 ]
+ }
+ - Return [ Swoole\Http2\Response|false ]
+ }
+
+ Method [ <internal:swoole> public method read ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> float $timeout = 0 ]
+ }
+ - Return [ Swoole\Http2\Response|false ]
+ }
+
+ Method [ <internal:swoole> public method goaway ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <optional> int $error_code = SWOOLE_HTTP2_ERROR_NO_ERROR ]
+ Parameter #1 [ <optional> string $debug_data = '' ]
+ }
+ - Return [ bool ]
+ }
+
+ Method [ <internal:swoole> public method ping ] {
+
+ - Parameters [0] {
+ }
+ - Return [ bool ]
+ }
+
+ Method [ <internal:swoole> public method close ] {
+
+ - Parameters [0] {
+ }
+ - Return [ bool ]
+ }
+ }
+ }
+
+ Class [ <internal:swoole> 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 [ <internal:Core, inherits Exception, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> string $message = "" ]
+ Parameter #1 [ <optional> int $code = 0 ]
+ Parameter #2 [ <optional> ?Throwable $previous = null ]
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception> public method __wakeup ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
+
+ - Parameters [0] {
+ }
+ - Return [ int ]
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
+
+ - Parameters [0] {
+ }
+ - Return [ ?Throwable ]
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
+ }
+
+ Method [ <internal:Core, inherits Exception, prototype Stringable> public method __toString ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
+ }
+ }
+ }
+
+ Class [ <internal:swoole> 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 [ <internal:swoole> 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 [ <internal:swoole> class Swoole\Coroutine\MySQL ] {
- Constants [0] {
@@ -4721,7 +5341,7 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
}
- Methods [16] {
- Method [ <internal:swoole, ctor> public method __construct ] {
+ Method [ <internal, deprecated:swoole, ctor> public method __construct ] {
- Parameters [0] {
}
@@ -5008,7 +5628,7 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
}
- Methods [185] {
- Method [ <internal:swoole, ctor> public method __construct ] {
+ Method [ <internal, deprecated:swoole, ctor> public method __construct ] {
- Parameters [1] {
Parameter #0 [ <optional> $config = <default> ]
@@ -6494,265 +7114,6 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
}
}
- Class [ <internal:swoole> 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 [ <internal:swoole, ctor> public method __construct ] {
-
- - Parameters [3] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <optional> $port = <default> ]
- Parameter #2 [ <optional> $open_ssl = <default> ]
- }
- }
-
- Method [ <internal:swoole> public method __destruct ] {
-
- - Parameters [0] {
- }
- }
-
- Method [ <internal:swoole> public method set ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> array $settings ]
- }
- }
-
- Method [ <internal:swoole> public method connect ] {
-
- - Parameters [0] {
- }
- }
-
- Method [ <internal:swoole> public method stats ] {
-
- - Parameters [1] {
- Parameter #0 [ <optional> $key = <default> ]
- }
- }
-
- Method [ <internal:swoole> public method isStreamExist ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $stream_id ]
- }
- }
-
- Method [ <internal:swoole> public method send ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $request ]
- }
- }
-
- Method [ <internal:swoole> public method write ] {
-
- - Parameters [3] {
- Parameter #0 [ <required> $stream_id ]
- Parameter #1 [ <required> $data ]
- Parameter #2 [ <optional> $end_stream = <default> ]
- }
- }
-
- Method [ <internal:swoole> public method recv ] {
-
- - Parameters [1] {
- Parameter #0 [ <optional> $timeout = <default> ]
- }
- }
-
- Method [ <internal:swoole> public method read ] {
-
- - Parameters [1] {
- Parameter #0 [ <optional> $timeout = <default> ]
- }
- }
-
- Method [ <internal:swoole> public method goaway ] {
-
- - Parameters [2] {
- Parameter #0 [ <optional> $error_code = <default> ]
- Parameter #1 [ <optional> $debug_data = <default> ]
- }
- }
-
- Method [ <internal:swoole> public method ping ] {
-
- - Parameters [0] {
- }
- }
-
- Method [ <internal:swoole> public method close ] {
-
- - Parameters [0] {
- }
- }
- }
- }
-
- Class [ <internal:swoole> 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 [ <internal:Core, inherits Exception, ctor> public method __construct ] {
-
- - Parameters [3] {
- Parameter #0 [ <optional> string $message = "" ]
- Parameter #1 [ <optional> int $code = 0 ]
- Parameter #2 [ <optional> ?Throwable $previous = null ]
- }
- }
-
- Method [ <internal:Core, inherits Exception> public method __wakeup ] {
-
- - Parameters [0] {
- }
- }
-
- Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getMessage ] {
-
- - Parameters [0] {
- }
- - Return [ string ]
- }
-
- Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getCode ] {
-
- - Parameters [0] {
- }
- }
-
- Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getFile ] {
-
- - Parameters [0] {
- }
- - Return [ string ]
- }
-
- Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getLine ] {
-
- - Parameters [0] {
- }
- - Return [ int ]
- }
-
- Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTrace ] {
-
- - Parameters [0] {
- }
- - Return [ array ]
- }
-
- Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getPrevious ] {
-
- - Parameters [0] {
- }
- - Return [ ?Throwable ]
- }
-
- Method [ <internal:Core, inherits Exception, prototype Throwable> final public method getTraceAsString ] {
-
- - Parameters [0] {
- }
- - Return [ string ]
- }
-
- Method [ <internal:Core, inherits Exception, prototype Stringable> public method __toString ] {
-
- - Parameters [0] {
- }
- - Return [ string ]
- }
- }
- }
-
- Class [ <internal:swoole> 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 [ <internal:swoole> 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 [ <internal:swoole> class Swoole\Server ] {
- Constants [0] {
@@ -6764,7 +7125,7 @@ Extension [ <persistent> 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 [ <persistent> 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 [ <persistent> extension #88 swoole version 4.8.11 ] {
Property [ public $admin_server = NULL ]
}
- - Methods [49] {
+ - Methods [45] {
Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [4] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <optional> $port = <default> ]
- Parameter #2 [ <optional> $mode = <default> ]
- Parameter #3 [ <optional> $sock_type = <default> ]
+ Parameter #0 [ <optional> string $host = '0.0.0.0' ]
+ Parameter #1 [ <optional> int $port = 0 ]
+ Parameter #2 [ <optional> int $mode = SWOOLE_PROCESS ]
+ Parameter #3 [ <optional> int $sock_type = SWOOLE_SOCK_TCP ]
}
}
@@ -6815,34 +7177,38 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole> public method listen ] {
- Parameters [3] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $sock_type ]
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> int $sock_type ]
}
+ - Return [ Swoole\Server\Port|false ]
}
Method [ <internal:swoole> public method addlistener ] {
- Parameters [3] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $sock_type ]
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> int $sock_type ]
}
+ - Return [ Swoole\Server\Port|false ]
}
Method [ <internal:swoole> public method on ] {
- Parameters [2] {
- Parameter #0 [ <required> $event_name ]
+ Parameter #0 [ <required> string $event_name ]
Parameter #1 [ <required> callable $callback ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getCallback ] {
- Parameters [1] {
- Parameter #0 [ <required> $event_name ]
+ Parameter #0 [ <required> string $event_name ]
}
+ - Return [ Closure|array|string|null ]
}
Method [ <internal:swoole> public method set ] {
@@ -6850,323 +7216,336 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method start ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method send ] {
- Parameters [3] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <required> $send_data ]
- Parameter #2 [ <optional> $server_socket = <default> ]
+ Parameter #0 [ <required> string|int $fd ]
+ Parameter #1 [ <required> string $send_data ]
+ Parameter #2 [ <optional> int $serverSocket = -1 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method sendto ] {
- Parameters [4] {
- Parameter #0 [ <required> $ip ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $send_data ]
- Parameter #3 [ <optional> $server_socket = <default> ]
+ Parameter #0 [ <required> string $ip ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> string $send_data ]
+ Parameter #3 [ <optional> int $server_socket = -1 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method sendwait ] {
- Parameters [2] {
- Parameter #0 [ <required> $conn_fd ]
- Parameter #1 [ <required> $send_data ]
+ Parameter #0 [ <required> int $conn_fd ]
+ Parameter #1 [ <required> string $send_data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method exists ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method exist ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method protect ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $is_protected = <default> ]
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> bool $is_protected = true ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method sendfile ] {
- Parameters [4] {
- Parameter #0 [ <required> $conn_fd ]
- Parameter #1 [ <required> $filename ]
- Parameter #2 [ <optional> $offset = <default> ]
- Parameter #3 [ <optional> $length = <default> ]
+ Parameter #0 [ <required> int $conn_fd ]
+ Parameter #1 [ <required> string $filename ]
+ Parameter #2 [ <optional> int $offset = 0 ]
+ Parameter #3 [ <optional> int $length = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method close ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $reset = <default> ]
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> bool $reset = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method confirm ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method pause ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method resume ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method task ] {
- Parameters [3] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $task_worker_index = <default> ]
- Parameter #2 [ <optional> ?callable $finish_callback = <default> ]
+ Parameter #0 [ <required> mixed $data ]
+ Parameter #1 [ <optional> int $taskWorkerIndex = -1 ]
+ Parameter #2 [ <optional> ?callable $finishCallback = null ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method taskwait ] {
- Parameters [3] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $timeout = <default> ]
- Parameter #2 [ <optional> $task_worker_index = <default> ]
+ Parameter #0 [ <required> mixed $data ]
+ Parameter #1 [ <optional> float $timeout = 0.5 ]
+ Parameter #2 [ <optional> int $taskWorkerIndex = -1 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method taskWaitMulti ] {
- Parameters [2] {
Parameter #0 [ <required> array $tasks ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #1 [ <optional> float $timeout = 0.5 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method taskCo ] {
- Parameters [2] {
Parameter #0 [ <required> array $tasks ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #1 [ <optional> float $timeout = 0.5 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method finish ] {
- Parameters [1] {
- Parameter #0 [ <required> $data ]
+ Parameter #0 [ <required> mixed $data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method reload ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> bool $only_reload_taskworker = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method shutdown ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method stop ] {
- - Parameters [1] {
- Parameter #0 [ <optional> $worker_id = <default> ]
+ - Parameters [2] {
+ Parameter #0 [ <optional> int $workerId = -1 ]
+ Parameter #1 [ <optional> bool $waitEvent = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getLastError ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole> public method heartbeat ] {
- Parameters [1] {
- Parameter #0 [ <required> $reactor_id ]
+ Parameter #0 [ <optional> bool $ifCloseConnection = true ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method getClientInfo ] {
- - Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $reactor_id = <default> ]
+ - Parameters [3] {
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> int $reactor_id = -1 ]
+ Parameter #2 [ <optional> bool $ignoreError = false ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method getClientList ] {
- Parameters [2] {
- Parameter #0 [ <required> $start_fd ]
- Parameter #1 [ <optional> $find_count = <default> ]
+ Parameter #0 [ <optional> int $start_fd = 0 ]
+ Parameter #1 [ <optional> int $find_count = 10 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method getWorkerId ] {
- Parameters [0] {
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method getWorkerPid ] {
- Parameters [1] {
- Parameter #0 [ <optional> $worker_id = <default> ]
+ Parameter #0 [ <optional> int $worker_id = -1 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method getWorkerStatus ] {
- Parameters [1] {
- Parameter #0 [ <optional> $worker_id = <default> ]
+ Parameter #0 [ <optional> int $worker_id = -1 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method getManagerPid ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole> public method getMasterPid ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole> public method connection_info ] {
- - Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $reactor_id = <default> ]
+ - Parameters [3] {
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> int $reactor_id = -1 ]
+ Parameter #2 [ <optional> bool $ignoreError = false ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method connection_list ] {
- Parameters [2] {
- Parameter #0 [ <required> $start_fd ]
- Parameter #1 [ <optional> $find_count = <default> ]
+ Parameter #0 [ <optional> int $start_fd = 0 ]
+ Parameter #1 [ <optional> int $find_count = 10 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole> public method sendMessage ] {
- Parameters [2] {
- Parameter #0 [ <required> $message ]
- Parameter #1 [ <required> $dst_worker_id ]
+ Parameter #0 [ <required> mixed $message ]
+ Parameter #1 [ <required> int $dst_worker_id ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method command ] {
- Parameters [5] {
- Parameter #0 [ <required> $name ]
- Parameter #1 [ <required> $process_id ]
- Parameter #2 [ <required> $process_type ]
- Parameter #3 [ <required> $data ]
- Parameter #4 [ <optional> $json_encode = <default> ]
+ Parameter #0 [ <required> string $name ]
+ Parameter #1 [ <required> int $process_id ]
+ Parameter #2 [ <required> int $process_type ]
+ Parameter #3 [ <required> mixed $data ]
+ Parameter #4 [ <optional> bool $json_decode = true ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method addCommand ] {
- Parameters [3] {
- Parameter #0 [ <required> $name ]
- Parameter #1 [ <required> $accepted_process_types ]
+ Parameter #0 [ <required> string $name ]
+ Parameter #1 [ <required> int $accepted_process_types ]
Parameter #2 [ <required> callable $callback ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method addProcess ] {
- Parameters [1] {
- Parameter #0 [ <required> swoole_process $process ]
+ Parameter #0 [ <required> Swoole\Process $process ]
}
+ - Return [ int ]
}
Method [ <internal:swoole> public method stats ] {
- Parameters [0] {
}
+ - Return [ array ]
}
Method [ <internal:swoole> public method getSocket ] {
- Parameters [1] {
- Parameter #0 [ <optional> $port = <default> ]
+ Parameter #0 [ <optional> int $port = 0 ]
}
+ - Return [ Socket|false ]
}
Method [ <internal:swoole> public method bind ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <required> $uid ]
- }
- }
-
- Method [ <internal:swoole, inherits Swoole\Timer> public method after ] {
-
- - Parameters [2] {
- Parameter #0 [ <required> $ms ]
- Parameter #1 [ <required> callable $callback ]
- }
- }
-
- Method [ <internal:swoole, inherits Swoole\Timer> public method tick ] {
-
- - Parameters [2] {
- Parameter #0 [ <required> $ms ]
- Parameter #1 [ <required> callable $callback ]
- }
- }
-
- Method [ <internal:swoole, inherits Swoole\Timer> public method clearTimer ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $timer_id ]
- }
- }
-
- Method [ <internal:swoole, inherits Swoole\Event> public method defer ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> callable $callback ]
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <required> int $uid ]
}
+ - Return [ bool ]
}
}
}
@@ -7183,8 +7562,9 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole> static public method pack ] {
- Parameters [1] {
- Parameter #0 [ <required> $data ]
+ Parameter #0 [ <required> mixed $data ]
}
+ - Return [ string|false ]
}
}
@@ -7200,8 +7580,9 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole> public method finish ] {
- Parameters [1] {
- Parameter #0 [ <required> $data ]
+ Parameter #0 [ <required> mixed $data ]
}
+ - Return [ bool ]
}
}
}
@@ -7389,7 +7770,7 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, prototype ArrayAccess> public method offsetExists ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> mixed $fd ]
}
- Return [ bool ]
}
@@ -7397,7 +7778,7 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, prototype ArrayAccess> public method offsetGet ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> mixed $fd ]
}
- Return [ mixed ]
}
@@ -7405,8 +7786,8 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, prototype ArrayAccess> public method offsetSet ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <required> $value ]
+ Parameter #0 [ <required> mixed $fd ]
+ Parameter #1 [ <required> mixed $value ]
}
- Return [ void ]
}
@@ -7414,7 +7795,7 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, prototype ArrayAccess> public method offsetUnset ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> mixed $fd ]
}
- Return [ void ]
}
@@ -7432,7 +7813,7 @@ Extension [ <persistent> 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 [ <persistent> 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 [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> public method on ] {
- Parameters [2] {
- Parameter #0 [ <required> $event_name ]
+ Parameter #0 [ <required> string $event_name ]
Parameter #1 [ <required> callable $callback ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getCallback ] {
- Parameters [1] {
- Parameter #0 [ <required> $event_name ]
+ Parameter #0 [ <required> string $event_name ]
}
+ - Return [ ?Closure ]
}
Method [ <internal:swoole> public method getSocket ] {
- Parameters [0] {
}
+ - Return [ Socket|false ]
}
}
}
@@ -7507,8 +7893,9 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole> static public method create ] {
- Parameters [1] {
- Parameter #0 [ <optional> $options = <default> ]
+ Parameter #0 [ <optional> array $options = [] ]
}
+ - Return [ Swoole\Http\Request ]
}
}
@@ -7529,37 +7916,43 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [0] {
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method rawContent ] {
- Parameters [0] {
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method getData ] {
- Parameters [0] {
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method parse ] {
- Parameters [1] {
- Parameter #0 [ <required> $data ]
+ Parameter #0 [ <required> string $data ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method isCompleted ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getMethod ] {
- Parameters [0] {
}
+ - Return [ string|false ]
}
Method [ <internal:swoole> public method __destruct ] {
@@ -7582,9 +7975,10 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole> static public method create ] {
- Parameters [2] {
- Parameter #0 [ <required> $server ]
- Parameter #1 [ <optional> $fd = <default> ]
+ Parameter #0 [ <optional> object|array|int $server = -1 ]
+ Parameter #1 [ <optional> int $fd = -1 ]
}
+ - Return [ Swoole\Http\Response|false ]
}
}
@@ -7601,175 +7995,199 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method isWritable ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method cookie ] {
- Parameters [9] {
- Parameter #0 [ <required> $name ]
- Parameter #1 [ <optional> $value = <default> ]
- Parameter #2 [ <optional> $expires = <default> ]
- Parameter #3 [ <optional> $path = <default> ]
- Parameter #4 [ <optional> $domain = <default> ]
- Parameter #5 [ <optional> $secure = <default> ]
- Parameter #6 [ <optional> $httponly = <default> ]
- Parameter #7 [ <optional> $samesite = <default> ]
- Parameter #8 [ <optional> $priority = <default> ]
+ Parameter #0 [ <required> string $name ]
+ Parameter #1 [ <optional> string $value = '' ]
+ Parameter #2 [ <optional> int $expire = 0 ]
+ Parameter #3 [ <optional> string $path = '/' ]
+ Parameter #4 [ <optional> string $domain = '' ]
+ Parameter #5 [ <optional> bool $secure = false ]
+ Parameter #6 [ <optional> bool $httponly = false ]
+ Parameter #7 [ <optional> string $samesite = '' ]
+ Parameter #8 [ <optional> string $priority = '' ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method setCookie ] {
- Parameters [9] {
- Parameter #0 [ <required> $name ]
- Parameter #1 [ <optional> $value = <default> ]
- Parameter #2 [ <optional> $expires = <default> ]
- Parameter #3 [ <optional> $path = <default> ]
- Parameter #4 [ <optional> $domain = <default> ]
- Parameter #5 [ <optional> $secure = <default> ]
- Parameter #6 [ <optional> $httponly = <default> ]
- Parameter #7 [ <optional> $samesite = <default> ]
- Parameter #8 [ <optional> $priority = <default> ]
+ Parameter #0 [ <required> string $name ]
+ Parameter #1 [ <optional> string $value = '' ]
+ Parameter #2 [ <optional> int $expire = 0 ]
+ Parameter #3 [ <optional> string $path = '/' ]
+ Parameter #4 [ <optional> string $domain = '' ]
+ Parameter #5 [ <optional> bool $secure = false ]
+ Parameter #6 [ <optional> bool $httponly = false ]
+ Parameter #7 [ <optional> string $samesite = '' ]
+ Parameter #8 [ <optional> string $priority = '' ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method rawcookie ] {
- Parameters [9] {
- Parameter #0 [ <required> $name ]
- Parameter #1 [ <optional> $value = <default> ]
- Parameter #2 [ <optional> $expires = <default> ]
- Parameter #3 [ <optional> $path = <default> ]
- Parameter #4 [ <optional> $domain = <default> ]
- Parameter #5 [ <optional> $secure = <default> ]
- Parameter #6 [ <optional> $httponly = <default> ]
- Parameter #7 [ <optional> $samesite = <default> ]
- Parameter #8 [ <optional> $priority = <default> ]
+ Parameter #0 [ <required> string $name ]
+ Parameter #1 [ <optional> string $value = '' ]
+ Parameter #2 [ <optional> int $expire = 0 ]
+ Parameter #3 [ <optional> string $path = '/' ]
+ Parameter #4 [ <optional> string $domain = '' ]
+ Parameter #5 [ <optional> bool $secure = false ]
+ Parameter #6 [ <optional> bool $httponly = false ]
+ Parameter #7 [ <optional> string $samesite = '' ]
+ Parameter #8 [ <optional> string $priority = '' ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method status ] {
- Parameters [2] {
- Parameter #0 [ <required> $http_code ]
- Parameter #1 [ <optional> $reason = <default> ]
+ Parameter #0 [ <required> int $http_code ]
+ Parameter #1 [ <optional> string $reason = '' ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method setStatusCode ] {
- Parameters [2] {
- Parameter #0 [ <required> $http_code ]
- Parameter #1 [ <optional> $reason = <default> ]
+ Parameter #0 [ <required> int $http_code ]
+ Parameter #1 [ <optional> string $reason = '' ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method header ] {
- Parameters [3] {
- Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $value ]
- Parameter #2 [ <optional> $format = <default> ]
+ Parameter #0 [ <required> string $key ]
+ Parameter #1 [ <required> array|string $value ]
+ Parameter #2 [ <optional> bool $format = true ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method setHeader ] {
- Parameters [3] {
- Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $value ]
- Parameter #2 [ <optional> $format = <default> ]
+ Parameter #0 [ <required> string $key ]
+ Parameter #1 [ <required> array|string $value ]
+ Parameter #2 [ <optional> bool $format = true ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method trailer ] {
- Parameters [2] {
- Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $value ]
+ Parameter #0 [ <required> string $key ]
+ Parameter #1 [ <required> string $value ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method ping ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method goaway ] {
- - Parameters [0] {
+ - Parameters [2] {
+ Parameter #0 [ <optional> int $error_code = SWOOLE_HTTP2_ERROR_NO_ERROR ]
+ Parameter #1 [ <optional> string $debug_data = '' ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method write ] {
- Parameters [1] {
- Parameter #0 [ <required> $content ]
+ Parameter #0 [ <required> string $content ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method end ] {
- Parameters [1] {
- Parameter #0 [ <optional> $content = <default> ]
+ Parameter #0 [ <optional> ?string $content = null ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method sendfile ] {
- Parameters [3] {
- Parameter #0 [ <required> $filename ]
- Parameter #1 [ <optional> $offset = <default> ]
- Parameter #2 [ <optional> $length = <default> ]
+ Parameter #0 [ <required> string $filename ]
+ Parameter #1 [ <optional> int $offset = 0 ]
+ Parameter #2 [ <optional> int $length = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method redirect ] {
- Parameters [2] {
- Parameter #0 [ <required> $location ]
- Parameter #1 [ <optional> $http_code = <default> ]
+ Parameter #0 [ <required> string $location ]
+ Parameter #1 [ <optional> int $http_code = 302 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method detach ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method upgrade ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method push ] {
- Parameters [3] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $opcode = <default> ]
- Parameter #2 [ <optional> $flags = <default> ]
+ Parameter #0 [ <required> Swoole\WebSocket\Frame|string $data ]
+ Parameter #1 [ <optional> int $opcode = SWOOLE_WEBSOCKET_OPCODE_TEXT ]
+ Parameter #2 [ <optional> int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method recv ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> float $timeout = 0 ]
}
+ - Return [ Swoole\WebSocket\Frame|string|false ]
}
Method [ <internal:swoole> public method close ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method __destruct ] {
@@ -7791,12 +8209,13 @@ Extension [ <persistent> 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 [ <persistent> extension #88 swoole version 4.8.11 ] {
Property [ public $admin_server = NULL ]
}
- - Methods [49] {
+ - Methods [45] {
Method [ <internal:swoole, inherits Swoole\Server, ctor> public method __construct ] {
- Parameters [4] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <optional> $port = <default> ]
- Parameter #2 [ <optional> $mode = <default> ]
- Parameter #3 [ <optional> $sock_type = <default> ]
+ Parameter #0 [ <optional> string $host = '0.0.0.0' ]
+ Parameter #1 [ <optional> int $port = 0 ]
+ Parameter #2 [ <optional> int $mode = SWOOLE_PROCESS ]
+ Parameter #3 [ <optional> int $sock_type = SWOOLE_SOCK_TCP ]
}
}
@@ -7828,34 +8247,38 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, inherits Swoole\Server> public method listen ] {
- Parameters [3] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $sock_type ]
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> int $sock_type ]
}
+ - Return [ Swoole\Server\Port|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method addlistener ] {
- Parameters [3] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $sock_type ]
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> int $sock_type ]
}
+ - Return [ Swoole\Server\Port|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method on ] {
- Parameters [2] {
- Parameter #0 [ <required> $event_name ]
+ Parameter #0 [ <required> string $event_name ]
Parameter #1 [ <required> callable $callback ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getCallback ] {
- Parameters [1] {
- Parameter #0 [ <required> $event_name ]
+ Parameter #0 [ <required> string $event_name ]
}
+ - Return [ Closure|array|string|null ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method set ] {
@@ -7863,323 +8286,336 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method start ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method send ] {
- Parameters [3] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <required> $send_data ]
- Parameter #2 [ <optional> $server_socket = <default> ]
+ Parameter #0 [ <required> string|int $fd ]
+ Parameter #1 [ <required> string $send_data ]
+ Parameter #2 [ <optional> int $serverSocket = -1 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method sendto ] {
- Parameters [4] {
- Parameter #0 [ <required> $ip ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $send_data ]
- Parameter #3 [ <optional> $server_socket = <default> ]
+ Parameter #0 [ <required> string $ip ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> string $send_data ]
+ Parameter #3 [ <optional> int $server_socket = -1 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method sendwait ] {
- Parameters [2] {
- Parameter #0 [ <required> $conn_fd ]
- Parameter #1 [ <required> $send_data ]
+ Parameter #0 [ <required> int $conn_fd ]
+ Parameter #1 [ <required> string $send_data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method exists ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method exist ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method protect ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $is_protected = <default> ]
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> bool $is_protected = true ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method sendfile ] {
- Parameters [4] {
- Parameter #0 [ <required> $conn_fd ]
- Parameter #1 [ <required> $filename ]
- Parameter #2 [ <optional> $offset = <default> ]
- Parameter #3 [ <optional> $length = <default> ]
+ Parameter #0 [ <required> int $conn_fd ]
+ Parameter #1 [ <required> string $filename ]
+ Parameter #2 [ <optional> int $offset = 0 ]
+ Parameter #3 [ <optional> int $length = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method close ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $reset = <default> ]
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> bool $reset = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method confirm ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method pause ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method resume ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method task ] {
- Parameters [3] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $task_worker_index = <default> ]
- Parameter #2 [ <optional> ?callable $finish_callback = <default> ]
+ Parameter #0 [ <required> mixed $data ]
+ Parameter #1 [ <optional> int $taskWorkerIndex = -1 ]
+ Parameter #2 [ <optional> ?callable $finishCallback = null ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method taskwait ] {
- Parameters [3] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $timeout = <default> ]
- Parameter #2 [ <optional> $task_worker_index = <default> ]
+ Parameter #0 [ <required> mixed $data ]
+ Parameter #1 [ <optional> float $timeout = 0.5 ]
+ Parameter #2 [ <optional> int $taskWorkerIndex = -1 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method taskWaitMulti ] {
- Parameters [2] {
Parameter #0 [ <required> array $tasks ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #1 [ <optional> float $timeout = 0.5 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method taskCo ] {
- Parameters [2] {
Parameter #0 [ <required> array $tasks ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #1 [ <optional> float $timeout = 0.5 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method finish ] {
- Parameters [1] {
- Parameter #0 [ <required> $data ]
+ Parameter #0 [ <required> mixed $data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method reload ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> bool $only_reload_taskworker = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method shutdown ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method stop ] {
- - Parameters [1] {
- Parameter #0 [ <optional> $worker_id = <default> ]
+ - Parameters [2] {
+ Parameter #0 [ <optional> int $workerId = -1 ]
+ Parameter #1 [ <optional> bool $waitEvent = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getLastError ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method heartbeat ] {
- Parameters [1] {
- Parameter #0 [ <required> $reactor_id ]
+ Parameter #0 [ <optional> bool $ifCloseConnection = true ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getClientInfo ] {
- - Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $reactor_id = <default> ]
+ - Parameters [3] {
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> int $reactor_id = -1 ]
+ Parameter #2 [ <optional> bool $ignoreError = false ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getClientList ] {
- Parameters [2] {
- Parameter #0 [ <required> $start_fd ]
- Parameter #1 [ <optional> $find_count = <default> ]
+ Parameter #0 [ <optional> int $start_fd = 0 ]
+ Parameter #1 [ <optional> int $find_count = 10 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getWorkerId ] {
- Parameters [0] {
}
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getWorkerPid ] {
- Parameters [1] {
- Parameter #0 [ <optional> $worker_id = <default> ]
+ Parameter #0 [ <optional> int $worker_id = -1 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getWorkerStatus ] {
- Parameters [1] {
- Parameter #0 [ <optional> $worker_id = <default> ]
+ Parameter #0 [ <optional> int $worker_id = -1 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getManagerPid ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getMasterPid ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method connection_info ] {
- - Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $reactor_id = <default> ]
+ - Parameters [3] {
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> int $reactor_id = -1 ]
+ Parameter #2 [ <optional> bool $ignoreError = false ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method connection_list ] {
- Parameters [2] {
- Parameter #0 [ <required> $start_fd ]
- Parameter #1 [ <optional> $find_count = <default> ]
+ Parameter #0 [ <optional> int $start_fd = 0 ]
+ Parameter #1 [ <optional> int $find_count = 10 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method sendMessage ] {
- Parameters [2] {
- Parameter #0 [ <required> $message ]
- Parameter #1 [ <required> $dst_worker_id ]
+ Parameter #0 [ <required> mixed $message ]
+ Parameter #1 [ <required> int $dst_worker_id ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method command ] {
- Parameters [5] {
- Parameter #0 [ <required> $name ]
- Parameter #1 [ <required> $process_id ]
- Parameter #2 [ <required> $process_type ]
- Parameter #3 [ <required> $data ]
- Parameter #4 [ <optional> $json_encode = <default> ]
+ Parameter #0 [ <required> string $name ]
+ Parameter #1 [ <required> int $process_id ]
+ Parameter #2 [ <required> int $process_type ]
+ Parameter #3 [ <required> mixed $data ]
+ Parameter #4 [ <optional> bool $json_decode = true ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method addCommand ] {
- Parameters [3] {
- Parameter #0 [ <required> $name ]
- Parameter #1 [ <required> $accepted_process_types ]
+ Parameter #0 [ <required> string $name ]
+ Parameter #1 [ <required> int $accepted_process_types ]
Parameter #2 [ <required> callable $callback ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method addProcess ] {
- Parameters [1] {
- Parameter #0 [ <required> swoole_process $process ]
+ Parameter #0 [ <required> Swoole\Process $process ]
}
+ - Return [ int ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method stats ] {
- Parameters [0] {
}
+ - Return [ array ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getSocket ] {
- Parameters [1] {
- Parameter #0 [ <optional> $port = <default> ]
+ Parameter #0 [ <optional> int $port = 0 ]
}
+ - Return [ Socket|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method bind ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <required> $uid ]
- }
- }
-
- Method [ <internal:swoole, inherits Swoole\Timer> public method after ] {
-
- - Parameters [2] {
- Parameter #0 [ <required> $ms ]
- Parameter #1 [ <required> callable $callback ]
- }
- }
-
- Method [ <internal:swoole, inherits Swoole\Timer> public method tick ] {
-
- - Parameters [2] {
- Parameter #0 [ <required> $ms ]
- Parameter #1 [ <required> callable $callback ]
- }
- }
-
- Method [ <internal:swoole, inherits Swoole\Timer> public method clearTimer ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $timer_id ]
- }
- }
-
- Method [ <internal:swoole, inherits Swoole\Event> public method defer ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> callable $callback ]
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <required> int $uid ]
}
+ - Return [ bool ]
}
}
}
@@ -8209,10 +8645,10 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [4] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <optional> $port = <default> ]
- Parameter #2 [ <optional> $ssl = <default> ]
- Parameter #3 [ <optional> $reuse_port = <default> ]
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <optional> int $port = 0 ]
+ Parameter #2 [ <optional> bool $ssl = false ]
+ Parameter #3 [ <optional> bool $reuse_port = false ]
}
}
@@ -8227,32 +8663,37 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method handle ] {
- Parameters [2] {
- Parameter #0 [ <required> $pattern ]
+ Parameter #0 [ <required> string $pattern ]
Parameter #1 [ <required> callable $callback ]
}
+ - Return [ void ]
}
Method [ <internal:swoole> private method onAccept ] {
- Parameters [0] {
}
+ - Return [ void ]
}
Method [ <internal:swoole> public method start ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method shutdown ] {
- Parameters [0] {
}
+ - Return [ void ]
}
}
}
@@ -8269,26 +8710,29 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole> static public method pack ] {
- Parameters [3] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $opcode = <default> ]
- Parameter #2 [ <optional> $flags = <default> ]
+ Parameter #0 [ <required> Swoole\WebSocket\Frame|string $data ]
+ Parameter #1 [ <optional> int $opcode = WEBSOCKET_OPCODE_TEXT ]
+ Parameter #2 [ <optional> int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ]
}
+ - Return [ string ]
}
Method [ <internal:swoole> static public method unpack ] {
- Parameters [1] {
- Parameter #0 [ <required> $data ]
+ Parameter #0 [ <required> 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 [ <persistent> extension #88 swoole version 4.8.11 ] {
Property [ public $admin_server = NULL ]
}
- - Methods [52] {
+ - Methods [48] {
Method [ <internal:swoole> public method push ] {
- Parameters [4] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <required> $data ]
- Parameter #2 [ <optional> $opcode = <default> ]
- Parameter #3 [ <optional> $flags = <default> ]
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <required> Swoole\WebSocket\Frame|string $data ]
+ Parameter #2 [ <optional> int $opcode = WEBSOCKET_OPCODE_TEXT ]
+ Parameter #3 [ <optional> int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method disconnect ] {
- Parameters [3] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $code = <default> ]
- Parameter #2 [ <optional> $reason = <default> ]
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> int $code = SWOOLE_WEBSOCKET_CLOSE_NORMAL ]
+ Parameter #2 [ <optional> string $reason = "" ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method isEstablished ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server, ctor> public method __construct ] {
- Parameters [4] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <optional> $port = <default> ]
- Parameter #2 [ <optional> $mode = <default> ]
- Parameter #3 [ <optional> $sock_type = <default> ]
+ Parameter #0 [ <optional> string $host = '0.0.0.0' ]
+ Parameter #1 [ <optional> int $port = 0 ]
+ Parameter #2 [ <optional> int $mode = SWOOLE_PROCESS ]
+ Parameter #3 [ <optional> int $sock_type = SWOOLE_SOCK_TCP ]
}
}
@@ -8346,34 +8793,38 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, inherits Swoole\Server> public method listen ] {
- Parameters [3] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $sock_type ]
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> int $sock_type ]
}
+ - Return [ Swoole\Server\Port|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method addlistener ] {
- Parameters [3] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $sock_type ]
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> int $sock_type ]
}
+ - Return [ Swoole\Server\Port|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method on ] {
- Parameters [2] {
- Parameter #0 [ <required> $event_name ]
+ Parameter #0 [ <required> string $event_name ]
Parameter #1 [ <required> callable $callback ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getCallback ] {
- Parameters [1] {
- Parameter #0 [ <required> $event_name ]
+ Parameter #0 [ <required> string $event_name ]
}
+ - Return [ Closure|array|string|null ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method set ] {
@@ -8381,323 +8832,336 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method start ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method send ] {
- Parameters [3] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <required> $send_data ]
- Parameter #2 [ <optional> $server_socket = <default> ]
+ Parameter #0 [ <required> string|int $fd ]
+ Parameter #1 [ <required> string $send_data ]
+ Parameter #2 [ <optional> int $serverSocket = -1 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method sendto ] {
- Parameters [4] {
- Parameter #0 [ <required> $ip ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $send_data ]
- Parameter #3 [ <optional> $server_socket = <default> ]
+ Parameter #0 [ <required> string $ip ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> string $send_data ]
+ Parameter #3 [ <optional> int $server_socket = -1 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method sendwait ] {
- Parameters [2] {
- Parameter #0 [ <required> $conn_fd ]
- Parameter #1 [ <required> $send_data ]
+ Parameter #0 [ <required> int $conn_fd ]
+ Parameter #1 [ <required> string $send_data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method exists ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method exist ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method protect ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $is_protected = <default> ]
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> bool $is_protected = true ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method sendfile ] {
- Parameters [4] {
- Parameter #0 [ <required> $conn_fd ]
- Parameter #1 [ <required> $filename ]
- Parameter #2 [ <optional> $offset = <default> ]
- Parameter #3 [ <optional> $length = <default> ]
+ Parameter #0 [ <required> int $conn_fd ]
+ Parameter #1 [ <required> string $filename ]
+ Parameter #2 [ <optional> int $offset = 0 ]
+ Parameter #3 [ <optional> int $length = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method close ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $reset = <default> ]
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> bool $reset = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method confirm ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method pause ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method resume ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method task ] {
- Parameters [3] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $task_worker_index = <default> ]
- Parameter #2 [ <optional> ?callable $finish_callback = <default> ]
+ Parameter #0 [ <required> mixed $data ]
+ Parameter #1 [ <optional> int $taskWorkerIndex = -1 ]
+ Parameter #2 [ <optional> ?callable $finishCallback = null ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method taskwait ] {
- Parameters [3] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $timeout = <default> ]
- Parameter #2 [ <optional> $task_worker_index = <default> ]
+ Parameter #0 [ <required> mixed $data ]
+ Parameter #1 [ <optional> float $timeout = 0.5 ]
+ Parameter #2 [ <optional> int $taskWorkerIndex = -1 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method taskWaitMulti ] {
- Parameters [2] {
Parameter #0 [ <required> array $tasks ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #1 [ <optional> float $timeout = 0.5 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method taskCo ] {
- Parameters [2] {
Parameter #0 [ <required> array $tasks ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #1 [ <optional> float $timeout = 0.5 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method finish ] {
- Parameters [1] {
- Parameter #0 [ <required> $data ]
+ Parameter #0 [ <required> mixed $data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method reload ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> bool $only_reload_taskworker = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method shutdown ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method stop ] {
- - Parameters [1] {
- Parameter #0 [ <optional> $worker_id = <default> ]
+ - Parameters [2] {
+ Parameter #0 [ <optional> int $workerId = -1 ]
+ Parameter #1 [ <optional> bool $waitEvent = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getLastError ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method heartbeat ] {
- Parameters [1] {
- Parameter #0 [ <required> $reactor_id ]
+ Parameter #0 [ <optional> bool $ifCloseConnection = true ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getClientInfo ] {
- - Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $reactor_id = <default> ]
+ - Parameters [3] {
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> int $reactor_id = -1 ]
+ Parameter #2 [ <optional> bool $ignoreError = false ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getClientList ] {
- Parameters [2] {
- Parameter #0 [ <required> $start_fd ]
- Parameter #1 [ <optional> $find_count = <default> ]
+ Parameter #0 [ <optional> int $start_fd = 0 ]
+ Parameter #1 [ <optional> int $find_count = 10 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getWorkerId ] {
- Parameters [0] {
}
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getWorkerPid ] {
- Parameters [1] {
- Parameter #0 [ <optional> $worker_id = <default> ]
+ Parameter #0 [ <optional> int $worker_id = -1 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getWorkerStatus ] {
- Parameters [1] {
- Parameter #0 [ <optional> $worker_id = <default> ]
+ Parameter #0 [ <optional> int $worker_id = -1 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getManagerPid ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getMasterPid ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method connection_info ] {
- - Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $reactor_id = <default> ]
+ - Parameters [3] {
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> int $reactor_id = -1 ]
+ Parameter #2 [ <optional> bool $ignoreError = false ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method connection_list ] {
- Parameters [2] {
- Parameter #0 [ <required> $start_fd ]
- Parameter #1 [ <optional> $find_count = <default> ]
+ Parameter #0 [ <optional> int $start_fd = 0 ]
+ Parameter #1 [ <optional> int $find_count = 10 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method sendMessage ] {
- Parameters [2] {
- Parameter #0 [ <required> $message ]
- Parameter #1 [ <required> $dst_worker_id ]
+ Parameter #0 [ <required> mixed $message ]
+ Parameter #1 [ <required> int $dst_worker_id ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method command ] {
- Parameters [5] {
- Parameter #0 [ <required> $name ]
- Parameter #1 [ <required> $process_id ]
- Parameter #2 [ <required> $process_type ]
- Parameter #3 [ <required> $data ]
- Parameter #4 [ <optional> $json_encode = <default> ]
+ Parameter #0 [ <required> string $name ]
+ Parameter #1 [ <required> int $process_id ]
+ Parameter #2 [ <required> int $process_type ]
+ Parameter #3 [ <required> mixed $data ]
+ Parameter #4 [ <optional> bool $json_decode = true ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method addCommand ] {
- Parameters [3] {
- Parameter #0 [ <required> $name ]
- Parameter #1 [ <required> $accepted_process_types ]
+ Parameter #0 [ <required> string $name ]
+ Parameter #1 [ <required> int $accepted_process_types ]
Parameter #2 [ <required> callable $callback ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method addProcess ] {
- Parameters [1] {
- Parameter #0 [ <required> swoole_process $process ]
+ Parameter #0 [ <required> Swoole\Process $process ]
}
+ - Return [ int ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method stats ] {
- Parameters [0] {
}
+ - Return [ array ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getSocket ] {
- Parameters [1] {
- Parameter #0 [ <optional> $port = <default> ]
+ Parameter #0 [ <optional> int $port = 0 ]
}
+ - Return [ Socket|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method bind ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <required> $uid ]
- }
- }
-
- Method [ <internal:swoole, inherits Swoole\Timer> public method after ] {
-
- - Parameters [2] {
- Parameter #0 [ <required> $ms ]
- Parameter #1 [ <required> callable $callback ]
- }
- }
-
- Method [ <internal:swoole, inherits Swoole\Timer> public method tick ] {
-
- - Parameters [2] {
- Parameter #0 [ <required> $ms ]
- Parameter #1 [ <required> callable $callback ]
- }
- }
-
- Method [ <internal:swoole, inherits Swoole\Timer> public method clearTimer ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $timer_id ]
- }
- }
-
- Method [ <internal:swoole, inherits Swoole\Event> public method defer ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> callable $callback ]
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <required> int $uid ]
}
+ - Return [ bool ]
}
}
}
@@ -8714,17 +9178,19 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole> static public method pack ] {
- Parameters [3] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $opcode = <default> ]
- Parameter #2 [ <optional> $flags = <default> ]
+ Parameter #0 [ <required> Swoole\WebSocket\Frame|string $data ]
+ Parameter #1 [ <optional> int $opcode = WEBSOCKET_OPCODE_TEXT ]
+ Parameter #2 [ <optional> int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ]
}
+ - Return [ string ]
}
Method [ <internal:swoole> static public method unpack ] {
- Parameters [1] {
- Parameter #0 [ <required> $data ]
+ Parameter #0 [ <required> string $data ]
}
+ - Return [ Swoole\WebSocket\Frame ]
}
}
@@ -8758,17 +9224,19 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, inherits Swoole\WebSocket\Frame> static public method pack ] {
- Parameters [3] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $opcode = <default> ]
- Parameter #2 [ <optional> $flags = <default> ]
+ Parameter #0 [ <required> Swoole\WebSocket\Frame|string $data ]
+ Parameter #1 [ <optional> int $opcode = WEBSOCKET_OPCODE_TEXT ]
+ Parameter #2 [ <optional> int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ]
}
+ - Return [ string ]
}
Method [ <internal:swoole, inherits Swoole\WebSocket\Frame> static public method unpack ] {
- Parameters [1] {
- Parameter #0 [ <required> $data ]
+ Parameter #0 [ <required> string $data ]
}
+ - Return [ Swoole\WebSocket\Frame ]
}
}
@@ -8811,18 +9279,20 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole> static public method format ] {
- Parameters [2] {
- Parameter #0 [ <required> $type ]
- Parameter #1 [ <optional> $value = <default> ]
+ Parameter #0 [ <required> int $type ]
+ Parameter #1 [ <optional> 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 [ <persistent> extension #88 swoole version 4.8.11 ] {
Property [ public $admin_server = NULL ]
}
- - Methods [51] {
+ - Methods [47] {
Method [ <internal:swoole> public method setHandler ] {
- Parameters [2] {
- Parameter #0 [ <required> $command ]
+ Parameter #0 [ <required> string $command ]
Parameter #1 [ <required> callable $callback ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole> public method getHandler ] {
- Parameters [1] {
- Parameter #0 [ <required> $command ]
+ Parameter #0 [ <required> string $command ]
}
+ - Return [ Closure ]
}
Method [ <internal:swoole, inherits Swoole\Server, ctor> public method __construct ] {
- Parameters [4] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <optional> $port = <default> ]
- Parameter #2 [ <optional> $mode = <default> ]
- Parameter #3 [ <optional> $sock_type = <default> ]
+ Parameter #0 [ <optional> string $host = '0.0.0.0' ]
+ Parameter #1 [ <optional> int $port = 0 ]
+ Parameter #2 [ <optional> int $mode = SWOOLE_PROCESS ]
+ Parameter #3 [ <optional> int $sock_type = SWOOLE_SOCK_TCP ]
}
}
@@ -8869,34 +9341,38 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
Method [ <internal:swoole, inherits Swoole\Server> public method listen ] {
- Parameters [3] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $sock_type ]
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> int $sock_type ]
}
+ - Return [ Swoole\Server\Port|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method addlistener ] {
- Parameters [3] {
- Parameter #0 [ <required> $host ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $sock_type ]
+ Parameter #0 [ <required> string $host ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> int $sock_type ]
}
+ - Return [ Swoole\Server\Port|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method on ] {
- Parameters [2] {
- Parameter #0 [ <required> $event_name ]
+ Parameter #0 [ <required> string $event_name ]
Parameter #1 [ <required> callable $callback ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getCallback ] {
- Parameters [1] {
- Parameter #0 [ <required> $event_name ]
+ Parameter #0 [ <required> string $event_name ]
}
+ - Return [ Closure|array|string|null ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method set ] {
@@ -8904,323 +9380,548 @@ Extension [ <persistent> extension #88 swoole version 4.8.11 ] {
- Parameters [1] {
Parameter #0 [ <required> array $settings ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method start ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method send ] {
- Parameters [3] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <required> $send_data ]
- Parameter #2 [ <optional> $server_socket = <default> ]
+ Parameter #0 [ <required> string|int $fd ]
+ Parameter #1 [ <required> string $send_data ]
+ Parameter #2 [ <optional> int $serverSocket = -1 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method sendto ] {
- Parameters [4] {
- Parameter #0 [ <required> $ip ]
- Parameter #1 [ <required> $port ]
- Parameter #2 [ <required> $send_data ]
- Parameter #3 [ <optional> $server_socket = <default> ]
+ Parameter #0 [ <required> string $ip ]
+ Parameter #1 [ <required> int $port ]
+ Parameter #2 [ <required> string $send_data ]
+ Parameter #3 [ <optional> int $server_socket = -1 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method sendwait ] {
- Parameters [2] {
- Parameter #0 [ <required> $conn_fd ]
- Parameter #1 [ <required> $send_data ]
+ Parameter #0 [ <required> int $conn_fd ]
+ Parameter #1 [ <required> string $send_data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method exists ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method exist ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method protect ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $is_protected = <default> ]
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> bool $is_protected = true ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method sendfile ] {
- Parameters [4] {
- Parameter #0 [ <required> $conn_fd ]
- Parameter #1 [ <required> $filename ]
- Parameter #2 [ <optional> $offset = <default> ]
- Parameter #3 [ <optional> $length = <default> ]
+ Parameter #0 [ <required> int $conn_fd ]
+ Parameter #1 [ <required> string $filename ]
+ Parameter #2 [ <optional> int $offset = 0 ]
+ Parameter #3 [ <optional> int $length = 0 ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method close ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $reset = <default> ]
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> bool $reset = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method confirm ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method pause ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method resume ] {
- Parameters [1] {
- Parameter #0 [ <required> $fd ]
+ Parameter #0 [ <required> int $fd ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method task ] {
- Parameters [3] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $task_worker_index = <default> ]
- Parameter #2 [ <optional> ?callable $finish_callback = <default> ]
+ Parameter #0 [ <required> mixed $data ]
+ Parameter #1 [ <optional> int $taskWorkerIndex = -1 ]
+ Parameter #2 [ <optional> ?callable $finishCallback = null ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method taskwait ] {
- Parameters [3] {
- Parameter #0 [ <required> $data ]
- Parameter #1 [ <optional> $timeout = <default> ]
- Parameter #2 [ <optional> $task_worker_index = <default> ]
+ Parameter #0 [ <required> mixed $data ]
+ Parameter #1 [ <optional> float $timeout = 0.5 ]
+ Parameter #2 [ <optional> int $taskWorkerIndex = -1 ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method taskWaitMulti ] {
- Parameters [2] {
Parameter #0 [ <required> array $tasks ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #1 [ <optional> float $timeout = 0.5 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method taskCo ] {
- Parameters [2] {
Parameter #0 [ <required> array $tasks ]
- Parameter #1 [ <optional> $timeout = <default> ]
+ Parameter #1 [ <optional> float $timeout = 0.5 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method finish ] {
- Parameters [1] {
- Parameter #0 [ <required> $data ]
+ Parameter #0 [ <required> mixed $data ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method reload ] {
- - Parameters [0] {
+ - Parameters [1] {
+ Parameter #0 [ <optional> bool $only_reload_taskworker = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method shutdown ] {
- Parameters [0] {
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method stop ] {
- - Parameters [1] {
- Parameter #0 [ <optional> $worker_id = <default> ]
+ - Parameters [2] {
+ Parameter #0 [ <optional> int $workerId = -1 ]
+ Parameter #1 [ <optional> bool $waitEvent = false ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getLastError ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method heartbeat ] {
- Parameters [1] {
- Parameter #0 [ <required> $reactor_id ]
+ Parameter #0 [ <optional> bool $ifCloseConnection = true ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getClientInfo ] {
- - Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $reactor_id = <default> ]
+ - Parameters [3] {
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> int $reactor_id = -1 ]
+ Parameter #2 [ <optional> bool $ignoreError = false ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getClientList ] {
- Parameters [2] {
- Parameter #0 [ <required> $start_fd ]
- Parameter #1 [ <optional> $find_count = <default> ]
+ Parameter #0 [ <optional> int $start_fd = 0 ]
+ Parameter #1 [ <optional> int $find_count = 10 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getWorkerId ] {
- Parameters [0] {
}
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getWorkerPid ] {
- Parameters [1] {
- Parameter #0 [ <optional> $worker_id = <default> ]
+ Parameter #0 [ <optional> int $worker_id = -1 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getWorkerStatus ] {
- Parameters [1] {
- Parameter #0 [ <optional> $worker_id = <default> ]
+ Parameter #0 [ <optional> int $worker_id = -1 ]
}
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getManagerPid ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getMasterPid ] {
- Parameters [0] {
}
+ - Return [ int ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method connection_info ] {
- - Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <optional> $reactor_id = <default> ]
+ - Parameters [3] {
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <optional> int $reactor_id = -1 ]
+ Parameter #2 [ <optional> bool $ignoreError = false ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method connection_list ] {
- Parameters [2] {
- Parameter #0 [ <required> $start_fd ]
- Parameter #1 [ <optional> $find_count = <default> ]
+ Parameter #0 [ <optional> int $start_fd = 0 ]
+ Parameter #1 [ <optional> int $find_count = 10 ]
}
+ - Return [ array|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method sendMessage ] {
- Parameters [2] {
- Parameter #0 [ <required> $message ]
- Parameter #1 [ <required> $dst_worker_id ]
+ Parameter #0 [ <required> mixed $message ]
+ Parameter #1 [ <required> int $dst_worker_id ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method command ] {
- Parameters [5] {
- Parameter #0 [ <required> $name ]
- Parameter #1 [ <required> $process_id ]
- Parameter #2 [ <required> $process_type ]
- Parameter #3 [ <required> $data ]
- Parameter #4 [ <optional> $json_encode = <default> ]
+ Parameter #0 [ <required> string $name ]
+ Parameter #1 [ <required> int $process_id ]
+ Parameter #2 [ <required> int $process_type ]
+ Parameter #3 [ <required> mixed $data ]
+ Parameter #4 [ <optional> bool $json_decode = true ]
}
+ - Return [ string|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method addCommand ] {
- Parameters [3] {
- Parameter #0 [ <required> $name ]
- Parameter #1 [ <required> $accepted_process_types ]
+ Parameter #0 [ <required> string $name ]
+ Parameter #1 [ <required> int $accepted_process_types ]
Parameter #2 [ <required> callable $callback ]
}
+ - Return [ bool ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method addProcess ] {
- Parameters [1] {
- Parameter #0 [ <required> swoole_process $process ]
+ Parameter #0 [ <required> Swoole\Process $process ]
}
+ - Return [ int ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method stats ] {
- Parameters [0] {
}
+ - Return [ array ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method getSocket ] {
- Parameters [1] {
- Parameter #0 [ <optional> $port = <default> ]
+ Parameter #0 [ <optional> int $port = 0 ]
}
+ - Return [ Socket|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method bind ] {
- Parameters [2] {
- Parameter #0 [ <required> $fd ]
- Parameter #1 [ <required> $uid ]
+ Parameter #0 [ <required> int $fd ]
+ Parameter #1 [ <required> int $uid ]
}
+ - Return [ bool ]
}
+ }
+ }
+
+ Class [ <internal:swoole> class Swoole\NameResolver\Context ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
- Method [ <internal:swoole, inherits Swoole\Timer> public method after ] {
+ - Properties [0] {
+ }
+
+ - Methods [1] {
+ Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [2] {
- Parameter #0 [ <required> $ms ]
- Parameter #1 [ <required> callable $callback ]
+ Parameter #0 [ <optional> int $family = AF_INET ]
+ Parameter #1 [ <optional> bool $withPort = false ]
}
}
+ }
+ }
- Method [ <internal:swoole, inherits Swoole\Timer> public method tick ] {
+ Class [ <internal:swoole> 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 [ <internal:swoole, ctor> public method __construct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method connect ] {
- Parameters [2] {
- Parameter #0 [ <required> $ms ]
- Parameter #1 [ <required> callable $callback ]
+ Parameter #0 [ <required> string $conninfo ]
+ Parameter #1 [ <optional> float $timeout = 2 ]
}
+ - Return [ bool ]
}
- Method [ <internal:swoole, inherits Swoole\Timer> public method clearTimer ] {
+ Method [ <internal:swoole> public method query ] {
- Parameters [1] {
- Parameter #0 [ <required> $timer_id ]
+ Parameter #0 [ <required> string $query ]
}
+ - Return [ Swoole\Coroutine\PostgreSQLStatement|false ]
}
- Method [ <internal:swoole, inherits Swoole\Event> public method defer ] {
+ Method [ <internal:swoole> public method prepare ] {
- Parameters [1] {
- Parameter #0 [ <required> callable $callback ]
+ Parameter #0 [ <required> string $query ]
+ }
+ - Return [ Swoole\Coroutine\PostgreSQLStatement|false ]
+ }
+
+ Method [ <internal:swoole> public method metaData ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string $table_name ]
+ }
+ - Return [ array|false ]
+ }
+
+ Method [ <internal:swoole> public method escape ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string $string ]
+ }
+ - Return [ string|false ]
+ }
+
+ Method [ <internal:swoole> public method escapeLiteral ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string $string ]
+ }
+ - Return [ string|false ]
+ }
+
+ Method [ <internal:swoole> public method escapeIdentifier ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string $string ]
+ }
+ - Return [ string|false ]
+ }
+
+ Method [ <internal:swoole> public method __destruct ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:swoole> 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 [ <internal:swoole> public method execute ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> array $params = [] ]
+ }
+ - Return [ bool ]
+ }
+
+ Method [ <internal:swoole> public method fetchAll ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> int $result_type = SW_PGSQL_ASSOC ]
+ }
+ - Return [ array|false ]
+ }
+
+ Method [ <internal:swoole> public method affectedRows ] {
+
+ - Parameters [0] {
+ }
+ - Return [ int ]
+ }
+
+ Method [ <internal:swoole> public method numRows ] {
+
+ - Parameters [0] {
+ }
+ - Return [ int ]
+ }
+
+ Method [ <internal:swoole> public method fieldCount ] {
+
+ - Parameters [0] {
+ }
+ - Return [ int ]
+ }
+
+ Method [ <internal:swoole> public method fetchObject ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <optional> ?int $row = 0 ]
+ Parameter #1 [ <optional> ?string $class_name = null ]
+ Parameter #2 [ <optional> array $ctor_params = [] ]
+ }
+ - Return [ object|false ]
+ }
+
+ Method [ <internal:swoole> public method fetchAssoc ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <optional> ?int $row = 0 ]
+ Parameter #1 [ <optional> int $result_type = SW_PGSQL_ASSOC ]
+ }
+ - Return [ array|false ]
+ }
+
+ Method [ <internal:swoole> public method fetchArray ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <optional> ?int $row = 0 ]
+ Parameter #1 [ <optional> int $result_type = SW_PGSQL_BOTH ]
+ }
+ - Return [ array|false ]
+ }
+
+ Method [ <internal:swoole> public method fetchRow ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <optional> ?int $row = 0 ]
+ Parameter #1 [ <optional> int $result_type = SW_PGSQL_NUM ]
}
+ - Return [ array|false ]
}
}
}
diff --git a/php-pecl-swoole5.spec b/php-pecl-swoole5.spec
index 9296752..a11651d 100644
--- a/php-pecl-swoole5.spec
+++ b/php-pecl-swoole5.spec
@@ -1,4 +1,4 @@
-# remirepo spec file for php-pecl-swoole4
+# remirepo spec file for php-pecl-swoole5
#
# Copyright (c) 2013-2022 Remi Collet
# License: CC-BY-SA
@@ -11,7 +11,7 @@
%undefine _strict_symbol_defs_build
%if 0%{?scl:1}
-%scl_package php-pecl-swoole4
+%scl_package php-pecl-swoole5
%endif
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
@@ -21,18 +21,31 @@
%bcond_without cares
%bcond_without nghttpd2
-%if 0%{?fedora} >= 25 || 0%{?rhel} >= 8
+
+%if 0%{?fedora} || 0%{?rhel} >= 8
+%bcond_without pgsql
+%else
+%bcond_with pgsql
+%endif
+
+%if 0%{?fedora} || 0%{?rhel} >= 8
%bcond_without brotli
%else
%bcond_with brotli
%endif
-%global upstream_version 4.8.11
+%if 0%{?fedora} || 0%{?rhel} >= 8
+%bcond_without curl
+%else
+%bcond_with curl
+%endif
+
+%global upstream_version 5.0.0
#global upstream_prever RC2
Summary: PHP's asynchronous concurrent distributed networking framework
-Name: %{?scl_prefix}php-pecl-%{pecl_name}4
+Name: %{?scl_prefix}php-pecl-%{pecl_name}5
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
# Extension is ASL 2.0
@@ -47,7 +60,7 @@ Patch0: %{pecl_name}-build.patch
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?dtsprefix}gcc-c++
-BuildRequires: %{?scl_prefix}php-devel >= 7.2
+BuildRequires: %{?scl_prefix}php-devel >= 8.0
BuildRequires: %{?scl_prefix}php-pear
BuildRequires: %{?scl_prefix}php-curl
BuildRequires: %{?scl_prefix}php-json
@@ -56,13 +69,18 @@ BuildRequires: %{?scl_prefix}php-mysqlnd
BuildRequires: pcre-devel
BuildRequires: openssl-devel >= 1.0.2
BuildRequires: zlib-devel
-BuildRequires: libcurl-devel
+%if %{with curl}
+BuildRequires: libcurl-devel >= 7.56
+%endif
%if %{with cares}
BuildRequires: c-ares-devel
%endif
%if %{with brotli}
BuildRequires: brotli-devel
%endif
+%if %{with pgsql}
+BuildRequires: libpq-devel
+%endif
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
@@ -77,33 +95,25 @@ Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
-%if 0%{?fedora} >= 29 || 0%{?rhel} >= 8 || "%{php_version}" > "7.3"
-Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name} < 4
+%if 0%{?fedora} >= 37 || 0%{?rhel} >= 10 || "%{php_version}" >= "8.2"
+Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name} < 5
Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release}
Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
-Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name}2 < 4
+Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name}2 < 5
Provides: %{?scl_prefix}php-pecl-%{pecl_name}2 = %{version}-%{release}
Provides: %{?scl_prefix}php-pecl-%{pecl_name}2%{?_isa} = %{version}-%{release}
+Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name}4 < 5
+Provides: %{?scl_prefix}php-pecl-%{pecl_name}4 = %{version}-%{release}
+Provides: %{?scl_prefix}php-pecl-%{pecl_name}4%{?_isa} = %{version}-%{release}
%else
# Single version can be installed
-Conflicts: %{?scl_prefix}php-pecl-%{pecl_name} < 4
-Conflicts: %{?scl_prefix}php-pecl-%{pecl_name}2 < 4
+Conflicts: %{?scl_prefix}php-pecl-%{pecl_name} < 5
+Conflicts: %{?scl_prefix}php-pecl-%{pecl_name}2 < 5
+Conflicts: %{?scl_prefix}php-pecl-%{pecl_name}4 < 5
%endif
# Only one extension can be installed (same symbols)
Conflicts: %{?scl_prefix}php-pecl-openswoole
-%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
-%if "%{php_version}" > "7.4"
-Obsoletes: php74-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "8.0"
-Obsoletes: php80-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "8.1"
-Obsoletes: php81-pecl-%{pecl_name} <= %{version}
-%endif
-%endif
-
%description
Event-driven asynchronous and concurrent networking engine with
@@ -193,10 +203,14 @@ peclbuild() {
--enable-sockets \
--enable-trace-log \
--enable-openssl \
- --enable-http2 \
--enable-mysqlnd \
- --enable-swoole-json \
+%if %{with pgsql}
+ --enable-swoole-pgsql \
+%endif
+%if %{with curl}
--enable-swoole-curl \
+%endif
+ --enable-swoole-coro-time \
%if %{with cares}
--enable-cares \
%endif
@@ -310,6 +324,7 @@ cd ../ZTS
%files devel
%doc %{pecl_testdir}/%{pecl_name}
+%doc %{pecl_docdir}/%{pecl_name}/core-tests
%doc %{pecl_docdir}/%{pecl_name}/examples
%doc %{pecl_docdir}/%{pecl_name}/gdbinit
%doc %{pecl_docdir}/%{pecl_name}/thirdparty
@@ -322,6 +337,13 @@ cd ../ZTS
%changelog
+* Tue Aug 2 2022 Remi Collet <remi@remirepo.net> - 5.0.0-1
+- 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
+
* Tue Jul 12 2022 Remi Collet <remi@remirepo.net> - 4.8.11-1
- update to 4.8.11