From 404f69deb283e127465e108141cd1814aee7ae04 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 22 Dec 2022 16:15:20 +0100 Subject: update to 22.0.0 rename to php-pecl-openswoole22 for new API drop dependency on json extension --- REFLECTION | 5485 ++++++++++++++++++++---------------------------------------- 1 file changed, 1795 insertions(+), 3690 deletions(-) (limited to 'REFLECTION') diff --git a/REFLECTION b/REFLECTION index 4a05c49..5d35426 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,48 +1,34 @@ -Extension [ extension #120 openswoole version 4.12.1 ] { +Extension [ extension #120 openswoole version 22.0.0 ] { - Dependencies { Dependency [ swoole (Conflicts) ] - Dependency [ json (Required) ] Dependency [ mysqlnd (Required) ] Dependency [ sockets (Required) ] Dependency [ curl (Required) ] } - INI { - Entry [ swoole.enable_coroutine ] + Entry [ openswoole.enable_coroutine ] Current = 'On' } - Entry [ swoole.enable_library ] - Current = 'On' - } - Entry [ swoole.enable_preemptive_scheduler ] + Entry [ openswoole.enable_preemptive_scheduler ] Current = 'Off' } - Entry [ swoole.display_errors ] - Current = 'On' - } - Entry [ swoole.use_shortname ] + Entry [ openswoole.display_errors ] Current = 'On' } - Entry [ swoole.unixsock_buffer_size ] + Entry [ openswoole.unixsock_buffer_size ] Current = '8388608' } } - - Constants [395] { - Constant [ string SWOOLE_VERSION ] { 4.12.1 } - Constant [ int SWOOLE_VERSION_ID ] { 41201 } - Constant [ int SWOOLE_MAJOR_VERSION ] { 4 } - Constant [ int SWOOLE_MINOR_VERSION ] { 12 } - Constant [ int SWOOLE_RELEASE_VERSION ] { 1 } - Constant [ string SWOOLE_EXTRA_VERSION ] { } - Constant [ bool SWOOLE_DEBUG ] { } - Constant [ bool SWOOLE_HAVE_COMPRESSION ] { 1 } - Constant [ bool SWOOLE_HAVE_ZLIB ] { 1 } - Constant [ bool SWOOLE_HAVE_BROTLI ] { 1 } - Constant [ bool SWOOLE_USE_HTTP2 ] { 1 } - Constant [ bool SWOOLE_USE_POSTGRES ] { 1 } - Constant [ bool SWOOLE_USE_SHORTNAME ] { 1 } + - Constants [357] { + Constant [ string OPENSWOOLE_VERSION ] { 22.0.0 } + Constant [ int OPENSWOOLE_VERSION_ID ] { 220000 } + Constant [ int OPENSWOOLE_MAJOR_VERSION ] { 22 } + Constant [ int OPENSWOOLE_MINOR_VERSION ] { 0 } + Constant [ int OPENSWOOLE_RELEASE_VERSION ] { 0 } + Constant [ string OPENSWOOLE_EXTRA_VERSION ] { } Constant [ int SWOOLE_SOCK_TCP ] { 1 } Constant [ int SWOOLE_SOCK_TCP6 ] { 3 } Constant [ int SWOOLE_SOCK_UDP ] { 2 } @@ -258,8 +244,6 @@ Extension [ extension #120 openswoole version 4.12.1 ] { Constant [ int SWOOLE_CORO_WAITING ] { 1 } Constant [ int SWOOLE_CORO_RUNNING ] { 2 } Constant [ int SWOOLE_CORO_END ] { 3 } - Constant [ int SWOOLE_EXIT_IN_COROUTINE ] { 2 } - Constant [ int SWOOLE_EXIT_IN_SERVER ] { 4 } Constant [ int SWOOLE_CHANNEL_OK ] { 0 } Constant [ int SWOOLE_CHANNEL_TIMEOUT ] { -1 } Constant [ int SWOOLE_CHANNEL_CLOSED ] { -2 } @@ -280,41 +264,12 @@ Extension [ extension #120 openswoole version 4.12.1 ] { Constant [ int SWOOLE_HOOK_NATIVE_CURL ] { 4096 } Constant [ int SWOOLE_HOOK_BLOCKING_FUNCTION ] { 8192 } Constant [ int SWOOLE_HOOK_SOCKETS ] { 16384 } - Constant [ int SWOOLE_HOOK_ALL ] { 2147481599 } + Constant [ int SWOOLE_HOOK_ALL ] { 2147457023 } Constant [ int SOCKET_ECANCELED ] { 125 } Constant [ int SWOOLE_HTTP_CLIENT_ESTATUS_CONNECT_FAILED ] { -1 } Constant [ int SWOOLE_HTTP_CLIENT_ESTATUS_REQUEST_TIMEOUT ] { -2 } Constant [ int SWOOLE_HTTP_CLIENT_ESTATUS_SERVER_RESET ] { -3 } Constant [ int SWOOLE_HTTP_CLIENT_ESTATUS_SEND_FAILED ] { -4 } - 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 } - Constant [ int SWOOLE_MYSQLND_CR_OUT_OF_MEMORY ] { 2008 } - Constant [ int SWOOLE_MYSQLND_CR_SERVER_LOST ] { 2013 } - Constant [ int SWOOLE_MYSQLND_CR_COMMANDS_OUT_OF_SYNC ] { 2014 } - Constant [ int SWOOLE_MYSQLND_CR_CANT_FIND_CHARSET ] { 2019 } - Constant [ int SWOOLE_MYSQLND_CR_MALFORMED_PACKET ] { 2027 } - Constant [ int SWOOLE_MYSQLND_CR_NOT_IMPLEMENTED ] { 2054 } - Constant [ int SWOOLE_MYSQLND_CR_NO_PREPARE_STMT ] { 2030 } - Constant [ int SWOOLE_MYSQLND_CR_PARAMS_NOT_BOUND ] { 2031 } - Constant [ int SWOOLE_MYSQLND_CR_INVALID_PARAMETER_NO ] { 2034 } - Constant [ int SWOOLE_MYSQLND_CR_INVALID_BUFFER_USE ] { 2035 } - Constant [ int SWOOLE_REDIS_MODE_MULTI ] { 0 } - Constant [ int SWOOLE_REDIS_MODE_PIPELINE ] { 1 } - Constant [ int SWOOLE_REDIS_TYPE_NOT_FOUND ] { 0 } - Constant [ int SWOOLE_REDIS_TYPE_STRING ] { 1 } - Constant [ int SWOOLE_REDIS_TYPE_SET ] { 2 } - Constant [ int SWOOLE_REDIS_TYPE_LIST ] { 3 } - Constant [ int SWOOLE_REDIS_TYPE_ZSET ] { 4 } - Constant [ int SWOOLE_REDIS_TYPE_HASH ] { 5 } - Constant [ int SWOOLE_REDIS_ERR_IO ] { 1 } - Constant [ int SWOOLE_REDIS_ERR_OTHER ] { 2 } - Constant [ int SWOOLE_REDIS_ERR_EOF ] { 3 } - Constant [ int SWOOLE_REDIS_ERR_PROTOCOL ] { 4 } - Constant [ int SWOOLE_REDIS_ERR_OOM ] { 5 } - 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 } @@ -428,35 +383,6 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } - Functions { - Function [ function swoole_version ] { - - - Parameters [0] { - } - } - Function [ function swoole_cpu_num ] { - - - Parameters [0] { - } - } - Function [ function swoole_last_error ] { - - - Parameters [0] { - } - } - Function [ function swoole_async_dns_lookup_coro ] { - - - Parameters [3] { - Parameter #0 [ $domain_name ] - Parameter #1 [ $timeout = ] - Parameter #2 [ $type = ] - } - } - Function [ function swoole_async_set ] { - - - Parameters [1] { - Parameter #0 [ array $settings ] - } - } Function [ function swoole_coroutine_create ] { - Parameters [2] { @@ -485,139 +411,6 @@ Extension [ extension #120 openswoole version 4.12.1 ] { Parameter #1 [ $sleep_time = ] } } - Function [ function swoole_client_select ] { - - - Parameters [4] { - Parameter #0 [ &$read_array ] - Parameter #1 [ &$write_array ] - Parameter #2 [ &$error_array ] - Parameter #3 [ $timeout = ] - } - } - Function [ function swoole_select ] { - - - Parameters [4] { - Parameter #0 [ &$read_array ] - Parameter #1 [ &$write_array ] - Parameter #2 [ &$error_array ] - Parameter #3 [ $timeout = ] - } - } - Function [ function swoole_set_process_name ] { - - - Parameters [1] { - Parameter #0 [ $process_name ] - } - } - Function [ function swoole_get_local_ip ] { - - - Parameters [0] { - } - } - Function [ function swoole_get_local_mac ] { - - - Parameters [0] { - } - } - Function [ function swoole_strerror ] { - - - Parameters [2] { - Parameter #0 [ $errno ] - Parameter #1 [ $error_type = ] - } - } - Function [ function swoole_errno ] { - - - Parameters [0] { - } - } - Function [ function swoole_clear_error ] { - - - Parameters [0] { - } - } - Function [ function swoole_error_log ] { - - - Parameters [2] { - Parameter #0 [ $level ] - Parameter #1 [ $msg ] - } - } - Function [ function swoole_hashcode ] { - - - Parameters [2] { - Parameter #0 [ $data ] - Parameter #1 [ $type = ] - } - } - Function [ function swoole_mime_type_add ] { - - - Parameters [2] { - Parameter #0 [ $suffix ] - Parameter #1 [ $mime_type ] - } - } - Function [ function swoole_mime_type_set ] { - - - Parameters [2] { - Parameter #0 [ $suffix ] - Parameter #1 [ $mime_type ] - } - } - Function [ function swoole_mime_type_delete ] { - - - Parameters [1] { - Parameter #0 [ $suffix ] - } - } - Function [ function swoole_mime_type_get ] { - - - Parameters [1] { - Parameter #0 [ $filename ] - } - } - Function [ function swoole_get_mime_type ] { - - - Parameters [1] { - Parameter #0 [ $filename ] - } - } - Function [ function swoole_mime_type_exists ] { - - - Parameters [1] { - Parameter #0 [ $filename ] - } - } - Function [ function swoole_mime_type_list ] { - - - Parameters [0] { - } - } - Function [ function swoole_clear_dns_cache ] { - - - Parameters [0] { - } - } - Function [ function swoole_substr_unserialize ] { - - - Parameters [4] { - Parameter #0 [ $str ] - Parameter #1 [ $offset ] - Parameter #2 [ $length = ] - Parameter #3 [ $options = ] - } - } - Function [ function swoole_substr_json_decode ] { - - - Parameters [6] { - Parameter #0 [ $json ] - Parameter #1 [ $offset ] - Parameter #2 [ $length = ] - Parameter #3 [ $associative = ] - Parameter #4 [ $depth = ] - Parameter #5 [ $flags = ] - } - } Function [ function swoole_internal_call_user_shutdown_begin ] { - Parameters [0] { @@ -641,7 +434,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { Parameter #0 [ mixed $sock ] Parameter #1 [ ?callable $readCallback = null ] Parameter #2 [ ?callable $writeCallback = null ] - Parameter #3 [ int $flags = SWOOLE_EVENT_READ ] + Parameter #3 [ int $flags = OpenSwoole\Event::EVENT_READ ] } - Return [ int|bool ] } @@ -658,7 +451,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { Parameter #0 [ mixed $sock ] Parameter #1 [ ?callable $readCallback = null ] Parameter #2 [ ?callable $writeCallback = null ] - Parameter #3 [ int $flags = SWOOLE_EVENT_READ ] + Parameter #3 [ int $flags = OpenSwoole\Event::EVENT_READ ] } - Return [ bool ] } @@ -666,7 +459,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Parameters [2] { Parameter #0 [ mixed $sock ] - Parameter #1 [ int $flags = SWOOLE_EVENT_READ | SWOOLE_EVENT_WRITE ] + Parameter #1 [ int $flags = OpenSwoole\Event::EVENT_READ | OpenSwoole\Event::EVENT_WRITE ] } - Return [ bool ] } @@ -711,13 +504,6 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } - Return [ void ] } - Method [ public method swoole_timer_set ] { - - - Parameters [1] { - Parameter #0 [ array $settings ] - } - - Return [ bool ] - } Method [ public method swoole_timer_after ] { - Parameters [2] { @@ -756,7 +542,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Parameters [0] { } - - Return [ Ù' ] + - Return [  ] } Method [ public method swoole_timer_clear ] { @@ -946,8 +732,437 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - - Classes [53] { - Class [ class Swoole\Exception extends Exception implements Throwable, Stringable ] { + - Classes [49] { + Class [ final class OpenSwoole\Constant ] { + + - Constants [411] { + Constant [ public bool HAVE_DEBUG ] { } + Constant [ public bool HAVE_COMPRESSION ] { 1 } + Constant [ public bool HAVE_ZLIB ] { 1 } + Constant [ public bool HAVE_BROTLI ] { 1 } + Constant [ public bool USE_HTTP2 ] { 1 } + Constant [ public bool USE_POSTGRES ] { 1 } + Constant [ public int SOCK_TCP ] { 1 } + Constant [ public int SOCK_TCP6 ] { 3 } + Constant [ public int SOCK_UDP ] { 2 } + Constant [ public int SOCK_UDP6 ] { 4 } + Constant [ public int SOCK_UNIX_DGRAM ] { 6 } + Constant [ public int SOCK_UNIX_STREAM ] { 5 } + Constant [ public int TCP ] { 1 } + Constant [ public int TCP6 ] { 3 } + Constant [ public int UDP ] { 2 } + Constant [ public int UDP6 ] { 4 } + Constant [ public int UNIX_DGRAM ] { 6 } + Constant [ public int UNIX_STREAM ] { 5 } + Constant [ public bool SOCK_SYNC ] { } + Constant [ public bool SOCK_ASYNC ] { 1 } + Constant [ public int SYNC ] { 2048 } + Constant [ public int ASYNC ] { 1024 } + Constant [ public int KEEP ] { 4096 } + Constant [ public int SSL ] { 512 } + Constant [ public int SSLv3_METHOD ] { 1 } + Constant [ public int SSLv3_SERVER_METHOD ] { 2 } + Constant [ public int SSLv3_CLIENT_METHOD ] { 3 } + Constant [ public int TLSv1_METHOD ] { 6 } + Constant [ public int TLSv1_SERVER_METHOD ] { 7 } + Constant [ public int TLSv1_CLIENT_METHOD ] { 8 } + Constant [ public int TLSv1_1_METHOD ] { 9 } + Constant [ public int TLSv1_1_SERVER_METHOD ] { 10 } + Constant [ public int TLSv1_1_CLIENT_METHOD ] { 11 } + Constant [ public int TLSv1_2_METHOD ] { 12 } + Constant [ public int TLSv1_2_SERVER_METHOD ] { 13 } + Constant [ public int TLSv1_2_CLIENT_METHOD ] { 14 } + Constant [ public int DTLS_SERVER_METHOD ] { 16 } + Constant [ public int DTLS_CLIENT_METHOD ] { 15 } + Constant [ public int SSLv23_METHOD ] { 0 } + Constant [ public int SSLv23_SERVER_METHOD ] { 4 } + Constant [ public int SSLv23_CLIENT_METHOD ] { 5 } + Constant [ public int TLS_METHOD ] { 0 } + Constant [ public int TLS_SERVER_METHOD ] { 4 } + Constant [ public int TLS_CLIENT_METHOD ] { 5 } + Constant [ public int SSL_TLSv1 ] { 8 } + Constant [ public int SSL_TLSv1_1 ] { 16 } + Constant [ public int SSL_TLSv1_2 ] { 32 } + Constant [ public int SSL_TLSv1_3 ] { 64 } + Constant [ public int SSL_DTLS ] { 128 } + Constant [ public int SSL_SSLv2 ] { 2 } + Constant [ public int STRERROR_SYSTEM ] { 0 } + Constant [ public int STRERROR_GAI ] { 1 } + Constant [ public int STRERROR_DNS ] { 2 } + Constant [ public int STRERROR_SWOOLE ] { 9 } + Constant [ public int ERROR_MALLOC_FAIL ] { 501 } + Constant [ public int ERROR_SYSTEM_CALL_FAIL ] { 502 } + Constant [ public int ERROR_PHP_FATAL_ERROR ] { 503 } + Constant [ public int ERROR_NAME_TOO_LONG ] { 504 } + Constant [ public int ERROR_INVALID_PARAMS ] { 505 } + Constant [ public int ERROR_QUEUE_FULL ] { 506 } + Constant [ public int ERROR_OPERATION_NOT_SUPPORT ] { 507 } + Constant [ public int ERROR_PROTOCOL_ERROR ] { 508 } + Constant [ public int ERROR_WRONG_OPERATION ] { 509 } + Constant [ public int ERROR_FILE_NOT_EXIST ] { 700 } + Constant [ public int ERROR_FILE_TOO_LARGE ] { 701 } + Constant [ public int ERROR_FILE_EMPTY ] { 702 } + Constant [ public int ERROR_DNSLOOKUP_DUPLICATE_REQUEST ] { 710 } + Constant [ public int ERROR_DNSLOOKUP_RESOLVE_FAILED ] { 711 } + Constant [ public int ERROR_DNSLOOKUP_RESOLVE_TIMEOUT ] { 712 } + Constant [ public int ERROR_DNSLOOKUP_UNSUPPORTED ] { 713 } + Constant [ public int ERROR_DNSLOOKUP_NO_SERVER ] { 714 } + Constant [ public int ERROR_BAD_IPV6_ADDRESS ] { 720 } + Constant [ public int ERROR_UNREGISTERED_SIGNAL ] { 721 } + Constant [ public int ERROR_EVENT_SOCKET_REMOVED ] { 800 } + Constant [ public int ERROR_SESSION_CLOSED_BY_SERVER ] { 1001 } + Constant [ public int ERROR_SESSION_CLOSED_BY_CLIENT ] { 1002 } + Constant [ public int ERROR_SESSION_CLOSING ] { 1003 } + Constant [ public int ERROR_SESSION_CLOSED ] { 1004 } + Constant [ public int ERROR_SESSION_NOT_EXIST ] { 1005 } + Constant [ public int ERROR_SESSION_INVALID_ID ] { 1006 } + Constant [ public int ERROR_SESSION_DISCARD_TIMEOUT_DATA ] { 1007 } + Constant [ public int ERROR_SESSION_DISCARD_DATA ] { 1008 } + Constant [ public int ERROR_OUTPUT_BUFFER_OVERFLOW ] { 1009 } + Constant [ public int ERROR_OUTPUT_SEND_YIELD ] { 1010 } + Constant [ public int ERROR_SSL_NOT_READY ] { 1011 } + Constant [ public int ERROR_SSL_CANNOT_USE_SENFILE ] { 1012 } + Constant [ public int ERROR_SSL_EMPTY_PEER_CERTIFICATE ] { 1013 } + Constant [ public int ERROR_SSL_VERIFY_FAILED ] { 1014 } + Constant [ public int ERROR_SSL_BAD_CLIENT ] { 1015 } + Constant [ public int ERROR_SSL_BAD_PROTOCOL ] { 1016 } + Constant [ public int ERROR_SSL_RESET ] { 1017 } + Constant [ public int ERROR_SSL_HANDSHAKE_FAILED ] { 1018 } + Constant [ public int ERROR_PACKAGE_LENGTH_TOO_LARGE ] { 1201 } + Constant [ public int ERROR_PACKAGE_LENGTH_NOT_FOUND ] { 1202 } + Constant [ public int ERROR_DATA_LENGTH_TOO_LARGE ] { 1203 } + Constant [ public int ERROR_TASK_PACKAGE_TOO_BIG ] { 2001 } + Constant [ public int ERROR_TASK_DISPATCH_FAIL ] { 2002 } + Constant [ public int ERROR_TASK_TIMEOUT ] { 2003 } + Constant [ public int ERROR_HTTP2_STREAM_ID_TOO_BIG ] { 3001 } + Constant [ public int ERROR_HTTP2_STREAM_NO_HEADER ] { 3002 } + Constant [ public int ERROR_HTTP2_STREAM_NOT_FOUND ] { 3003 } + Constant [ public int ERROR_HTTP2_STREAM_IGNORE ] { 3004 } + Constant [ public int ERROR_AIO_BAD_REQUEST ] { 4001 } + Constant [ public int ERROR_AIO_CANCELED ] { 4002 } + Constant [ public int ERROR_AIO_TIMEOUT ] { 4003 } + Constant [ public int ERROR_CLIENT_NO_CONNECTION ] { 5001 } + Constant [ public int ERROR_SOCKET_CLOSED ] { 6001 } + Constant [ public int ERROR_SOCKET_POLL_TIMEOUT ] { 6002 } + Constant [ public int ERROR_SOCKS5_UNSUPPORT_VERSION ] { 7001 } + Constant [ public int ERROR_SOCKS5_UNSUPPORT_METHOD ] { 7002 } + Constant [ public int ERROR_SOCKS5_AUTH_FAILED ] { 7003 } + Constant [ public int ERROR_SOCKS5_SERVER_ERROR ] { 7004 } + Constant [ public int ERROR_SOCKS5_HANDSHAKE_FAILED ] { 7005 } + Constant [ public int ERROR_HTTP_PROXY_HANDSHAKE_ERROR ] { 7101 } + Constant [ public int ERROR_HTTP_INVALID_PROTOCOL ] { 7102 } + Constant [ public int ERROR_HTTP_PROXY_HANDSHAKE_FAILED ] { 7103 } + Constant [ public int ERROR_HTTP_PROXY_BAD_RESPONSE ] { 7104 } + Constant [ public int ERROR_WEBSOCKET_BAD_CLIENT ] { 8501 } + Constant [ public int ERROR_WEBSOCKET_BAD_OPCODE ] { 8502 } + Constant [ public int ERROR_WEBSOCKET_UNCONNECTED ] { 8503 } + Constant [ public int ERROR_WEBSOCKET_HANDSHAKE_FAILED ] { 8504 } + Constant [ public int ERROR_WEBSOCKET_PACK_FAILED ] { 8505 } + Constant [ public int ERROR_SERVER_MUST_CREATED_BEFORE_CLIENT ] { 9001 } + Constant [ public int ERROR_SERVER_TOO_MANY_SOCKET ] { 9002 } + Constant [ public int ERROR_SERVER_WORKER_TERMINATED ] { 9003 } + Constant [ public int ERROR_SERVER_INVALID_LISTEN_PORT ] { 9004 } + Constant [ public int ERROR_SERVER_TOO_MANY_LISTEN_PORT ] { 9005 } + Constant [ public int ERROR_SERVER_PIPE_BUFFER_FULL ] { 9006 } + Constant [ public int ERROR_SERVER_NO_IDLE_WORKER ] { 9007 } + Constant [ public int ERROR_SERVER_ONLY_START_ONE ] { 9008 } + Constant [ public int ERROR_SERVER_SEND_IN_MASTER ] { 9009 } + Constant [ public int ERROR_SERVER_INVALID_REQUEST ] { 9010 } + Constant [ public int ERROR_SERVER_CONNECT_FAIL ] { 9011 } + Constant [ public int ERROR_SERVER_WORKER_EXIT_TIMEOUT ] { 9012 } + Constant [ public int ERROR_SERVER_WORKER_ABNORMAL_PIPE_DATA ] { 9013 } + Constant [ public int ERROR_SERVER_WORKER_UNPROCESSED_DATA ] { 9014 } + Constant [ public int ERROR_CO_OUT_OF_COROUTINE ] { 10001 } + Constant [ public int ERROR_CO_HAS_BEEN_BOUND ] { 10002 } + Constant [ public int ERROR_CO_HAS_BEEN_DISCARDED ] { 10003 } + Constant [ public int ERROR_CO_MUTEX_DOUBLE_UNLOCK ] { 10004 } + Constant [ public int ERROR_CO_BLOCK_OBJECT_LOCKED ] { 10005 } + Constant [ public int ERROR_CO_BLOCK_OBJECT_WAITING ] { 10006 } + Constant [ public int ERROR_CO_YIELD_FAILED ] { 10007 } + Constant [ public int ERROR_CO_GETCONTEXT_FAILED ] { 10008 } + Constant [ public int ERROR_CO_SWAPCONTEXT_FAILED ] { 10009 } + Constant [ public int ERROR_CO_MAKECONTEXT_FAILED ] { 10010 } + Constant [ public int ERROR_CO_IOCPINIT_FAILED ] { 10011 } + Constant [ public int ERROR_CO_PROTECT_STACK_FAILED ] { 10012 } + Constant [ public int ERROR_CO_STD_THREAD_LINK_ERROR ] { 10013 } + Constant [ public int ERROR_CO_DISABLED_MULTI_THREAD ] { 10014 } + Constant [ public int ERROR_CO_CANNOT_CANCEL ] { 10015 } + Constant [ public int ERROR_CO_NOT_EXISTS ] { 10016 } + Constant [ public int ERROR_CO_CANCELED ] { 10017 } + Constant [ public int ERROR_CO_TIMEDOUT ] { 10018 } + Constant [ public int TRACE_SERVER ] { 2 } + Constant [ public int TRACE_CLIENT ] { 4 } + Constant [ public int TRACE_BUFFER ] { 8 } + Constant [ public int TRACE_CONN ] { 16 } + Constant [ public int TRACE_EVENT ] { 32 } + Constant [ public int TRACE_WORKER ] { 64 } + Constant [ public int TRACE_MEMORY ] { 128 } + Constant [ public int TRACE_REACTOR ] { 256 } + Constant [ public int TRACE_PHP ] { 512 } + Constant [ public int TRACE_HTTP ] { 1024 } + Constant [ public int TRACE_HTTP2 ] { 2048 } + Constant [ public int TRACE_EOF_PROTOCOL ] { 4096 } + Constant [ public int TRACE_LENGTH_PROTOCOL ] { 8192 } + Constant [ public int TRACE_CLOSE ] { 16384 } + Constant [ public int TRACE_WEBSOCKET ] { 32768 } + Constant [ public int TRACE_REDIS_CLIENT ] { 65536 } + Constant [ public int TRACE_MYSQL_CLIENT ] { 131072 } + Constant [ public int TRACE_HTTP_CLIENT ] { 262144 } + Constant [ public int TRACE_AIO ] { 524288 } + Constant [ public int TRACE_SSL ] { 1048576 } + Constant [ public int TRACE_NORMAL ] { 2097152 } + Constant [ public int TRACE_CHANNEL ] { 4194304 } + Constant [ public int TRACE_TIMER ] { 8388608 } + Constant [ public int TRACE_SOCKET ] { 16777216 } + Constant [ public int TRACE_COROUTINE ] { 33554432 } + Constant [ public int TRACE_CONTEXT ] { 67108864 } + Constant [ public int TRACE_CO_HTTP_SERVER ] { 134217728 } + Constant [ public int TRACE_TABLE ] { 268435456 } + Constant [ public int TRACE_CO_CURL ] { 536870912 } + Constant [ public int TRACE_CARES ] { 1073741824 } + Constant [ public int TRACE_ALL ] { 9223372036854775807 } + Constant [ public int LOG_DEBUG ] { 0 } + Constant [ public int LOG_TRACE ] { 1 } + Constant [ public int LOG_INFO ] { 2 } + Constant [ public int LOG_NOTICE ] { 3 } + Constant [ public int LOG_WARNING ] { 4 } + Constant [ public int LOG_ERROR ] { 5 } + Constant [ public int LOG_NONE ] { 6 } + Constant [ public int LOG_ROTATION_SINGLE ] { 0 } + Constant [ public int LOG_ROTATION_MONTHLY ] { 1 } + Constant [ public int LOG_ROTATION_DAILY ] { 2 } + Constant [ public int LOG_ROTATION_HOURLY ] { 3 } + Constant [ public int LOG_ROTATION_EVERY_MINUTE ] { 4 } + Constant [ public int IOV_MAX ] { 1024 } + Constant [ public string EVENT_START ] { start } + Constant [ public string EVENT_SHUTDOWN ] { shutdown } + Constant [ public string EVENT_WORKER_START ] { workerStart } + Constant [ public string EVENT_WORKER_STOP ] { workerStop } + Constant [ public string EVENT_BEFORE_RELOAD ] { beforeReload } + Constant [ public string EVENT_AFTER_RELOAD ] { afterReload } + Constant [ public string EVENT_TASK ] { task } + Constant [ public string EVENT_FINISH ] { finish } + Constant [ public string EVENT_WORKER_EXIT ] { workerExit } + Constant [ public string EVENT_WORKER_ERROR ] { workerError } + Constant [ public string EVENT_MANAGER_START ] { managerStart } + Constant [ public string EVENT_MANAGER_STOP ] { managerStop } + Constant [ public string EVENT_PIPE_MESSAGE ] { pipeMessage } + Constant [ public string EVENT_CONNECT ] { connect } + Constant [ public string EVENT_RECEIVE ] { receive } + Constant [ public string EVENT_CLOSE ] { close } + Constant [ public string EVENT_PACKET ] { packet } + Constant [ public string EVENT_BUFFER_FULL ] { bufferFull } + Constant [ public string EVENT_BUFFER_EMPTY ] { bufferEmpty } + Constant [ public string EVENT_REQUEST ] { request } + Constant [ public string EVENT_HANDSHAKE ] { handshake } + Constant [ public string EVENT_OPEN ] { open } + Constant [ public string EVENT_MESSAGE ] { message } + Constant [ public string EVENT_DISCONNECT ] { disconnect } + Constant [ public string EVENT_ERROR ] { error } + Constant [ public string OPTION_DEBUG_MODE ] { debug_mode } + Constant [ public string OPTION_TRACE_FLAGS ] { trace_flags } + Constant [ public string OPTION_LOG_FILE ] { log_file } + Constant [ public string OPTION_LOG_LEVEL ] { log_level } + Constant [ public string OPTION_LOG_DATE_FORMAT ] { log_date_format } + Constant [ public string OPTION_LOG_DATE_WITH_MICROSECONDS ] { log_date_with_microseconds } + Constant [ public string OPTION_LOG_ROTATION ] { log_rotation } + Constant [ public string OPTION_DISPLAY_ERRORS ] { display_errors } + Constant [ public string OPTION_DNS_SERVER ] { dns_server } + Constant [ public string OPTION_SOCKET_DNS_TIMEOUT ] { socket_dns_timeout } + Constant [ public string OPTION_SOCKET_CONNECT_TIMEOUT ] { socket_connect_timeout } + Constant [ public string OPTION_SOCKET_WRITE_TIMEOUT ] { socket_write_timeout } + Constant [ public string OPTION_SOCKET_SEND_TIMEOUT ] { socket_send_timeout } + Constant [ public string OPTION_SOCKET_READ_TIMEOUT ] { socket_read_timeout } + Constant [ public string OPTION_SOCKET_RECV_TIMEOUT ] { socket_recv_timeout } + Constant [ public string OPTION_SOCKET_BUFFER_SIZE ] { socket_buffer_size } + Constant [ public string OPTION_SOCKET_TIMEOUT ] { socket_timeout } + Constant [ public string OPTION_MAX_CONCURRENCY ] { max_concurrency } + Constant [ public string OPTION_ENABLE_SERVER_TOKEN ] { enable_server_token } + Constant [ public string OPTION_AIO_CORE_WORKER_NUM ] { aio_core_worker_num } + Constant [ public string OPTION_AIO_WORKER_NUM ] { aio_worker_num } + Constant [ public string OPTION_AIO_MAX_WAIT_TIME ] { aio_max_wait_time } + Constant [ public string OPTION_AIO_MAX_IDLE_TIME ] { aio_max_idle_time } + Constant [ public string OPTION_ENABLE_SIGNALFD ] { enable_signalfd } + Constant [ public string OPTION_WAIT_SIGNAL ] { wait_signal } + Constant [ public string OPTION_DNS_CACHE_REFRESH_TIME ] { dns_cache_refresh_time } + Constant [ public string OPTION_THREAD_NUM ] { thread_num } + Constant [ public string OPTION_MIN_THREAD_NUM ] { min_thread_num } + Constant [ public string OPTION_MAX_THREAD_NUM ] { max_thread_num } + Constant [ public string OPTION_SOCKET_DONTWAIT ] { socket_dontwait } + Constant [ public string OPTION_DNS_LOOKUP_RANDOM ] { dns_lookup_random } + Constant [ public string OPTION_USE_ASYNC_RESOLVER ] { use_async_resolver } + Constant [ public string OPTION_ENABLE_COROUTINE ] { enable_coroutine } + Constant [ public string OPTION_SSL_PROTOCOLS ] { ssl_protocols } + Constant [ public string OPTION_SSL_COMPRESS ] { ssl_compress } + Constant [ public string OPTION_SSL_CERT_FILE ] { ssl_cert_file } + Constant [ public string OPTION_SSL_KEY_FILE ] { ssl_key_file } + Constant [ public string OPTION_SSL_PASSPHRASE ] { ssl_passphrase } + Constant [ public string OPTION_SSL_HOST_NAME ] { ssl_host_name } + Constant [ public string OPTION_SSL_VERIFY_PEER ] { ssl_verify_peer } + Constant [ public string OPTION_SSL_ALLOW_SELF_SIGNED ] { ssl_allow_self_signed } + Constant [ public string OPTION_SSL_CAFILE ] { ssl_cafile } + Constant [ public string OPTION_SSL_CAPATH ] { ssl_capath } + Constant [ public string OPTION_SSL_VERIFY_DEPTH ] { ssl_verify_depth } + Constant [ public string OPTION_SSL_CIPHERS ] { ssl_ciphers } + Constant [ public string OPTION_OPEN_EOF_CHECK ] { open_eof_check } + Constant [ public string OPTION_OPEN_EOF_SPLIT ] { open_eof_split } + Constant [ public string OPTION_PACKAGE_EOF ] { package_eof } + Constant [ public string OPTION_OPEN_MQTT_PROTOCOL ] { open_mqtt_protocol } + Constant [ public string OPTION_OPEN_LENGTH_CHECK ] { open_length_check } + Constant [ public string OPTION_PACKAGE_LENGTH_TYPE ] { package_length_type } + Constant [ public string OPTION_PACKAGE_LENGTH_OFFSET ] { package_length_offset } + Constant [ public string OPTION_PACKAGE_BODY_OFFSET ] { package_body_offset } + Constant [ public string OPTION_PACKAGE_LENGTH_FUNC ] { package_length_func } + Constant [ public string OPTION_PACKAGE_MAX_LENGTH ] { package_max_length } + Constant [ public string OPTION_BUFFER_HIGH_WATERMARK ] { buffer_high_watermark } + Constant [ public string OPTION_BUFFER_LOW_WATERMARK ] { buffer_low_watermark } + Constant [ public string OPTION_BIND_PORT ] { bind_port } + Constant [ public string OPTION_BIND_ADDRESS ] { bind_address } + Constant [ public string OPTION_OPEN_TCP_NODELAY ] { open_tcp_nodelay } + Constant [ public string OPTION_SOCKS5_HOST ] { socks5_host } + Constant [ public string OPTION_SOCKS5_PORT ] { socks5_port } + Constant [ public string OPTION_SOCKS5_USERNAME ] { socks5_username } + Constant [ public string OPTION_SOCKS5_PASSWORD ] { socks5_password } + Constant [ public string OPTION_HTTP_PROXY_HOST ] { http_proxy_host } + Constant [ public string OPTION_HTTP_PROXY_PORT ] { http_proxy_port } + Constant [ public string OPTION_HTTP_PROXY_USERNAME ] { http_proxy_username } + Constant [ public string OPTION_HTTP_PROXY_USER ] { http_proxy_user } + Constant [ public string OPTION_HTTP_PROXY_PASSWORD ] { http_proxy_password } + Constant [ public string OPTION_TIMEOUT ] { timeout } + Constant [ public string OPTION_CONNECT_TIMEOUT ] { connect_timeout } + Constant [ public string OPTION_READ_TIMEOUT ] { read_timeout } + Constant [ public string OPTION_WRITE_TIMEOUT ] { write_timeout } + Constant [ public string OPTION_SSL_DISABLE_COMPRESSION ] { ssl_disable_compression } + Constant [ public string OPTION_MAX_CORO_NUM ] { max_coro_num } + Constant [ public string OPTION_MAX_COROUTINE ] { max_coroutine } + Constant [ public string OPTION_ENABLE_DEADLOCK_CHECK ] { enable_deadlock_check } + Constant [ public string OPTION_HOOK_FLAGS ] { hook_flags } + Constant [ public string OPTION_ENABLE_PREEMPTIVE_SCHEDULER ] { enable_preemptive_scheduler } + Constant [ public string OPTION_C_STACK_SIZE ] { c_stack_size } + Constant [ public string OPTION_STACK_SIZE ] { stack_size } + Constant [ public string OPTION_DNS_CACHE_EXPIRE ] { dns_cache_expire } + Constant [ public string OPTION_DNS_CACHE_CAPACITY ] { dns_cache_capacity } + Constant [ public string OPTION_HTTP2_HEADER_TABLE_SIZE ] { http2_header_table_size } + Constant [ public string OPTION_HTTP2_INITIAL_WINDOW_SIZE ] { http2_initial_window_size } + Constant [ public string OPTION_HTTP2_MAX_CONCURRENT_STREAMS ] { http2_max_concurrent_streams } + Constant [ public string OPTION_HTTP2_MAX_FRAME_SIZE ] { http2_max_frame_size } + Constant [ public string OPTION_HTTP2_MAX_HEADER_LIST_SIZE ] { http2_max_header_list_size } + Constant [ public string OPTION_RECONNECT ] { reconnect } + Constant [ public string OPTION_DEFER ] { defer } + Constant [ public string OPTION_LOWERCASE_HEADER ] { lowercase_header } + Constant [ public string OPTION_KEEP_ALIVE ] { keep_alive } + Constant [ public string OPTION_WEBSOCKET_MASK ] { websocket_mask } + Constant [ public string OPTION_HTTP_COMPRESSION ] { http_compression } + Constant [ public string OPTION_BODY_DECOMPRESSION ] { body_decompression } + Constant [ public string OPTION_WEBSOCKET_COMPRESSION ] { websocket_compression } + Constant [ public string OPTION_HTTP_PARSE_COOKIE ] { http_parse_cookie } + Constant [ public string OPTION_HTTP_PARSE_POST ] { http_parse_post } + Constant [ public string OPTION_HTTP_PARSE_FILES ] { http_parse_files } + Constant [ public string OPTION_HTTP_COMPRESSION_LEVEL ] { http_compression_level } + Constant [ public string OPTION_HTTP_GZIP_LEVEL ] { http_gzip_level } + Constant [ public string OPTION_COMPRESSION_MIN_LENGTH ] { compression_min_length } + Constant [ public string OPTION_UPLOAD_TMP_DIR ] { upload_tmp_dir } + Constant [ public string OPTION_HOST ] { host } + Constant [ public string OPTION_PORT ] { port } + Constant [ public string OPTION_SSL ] { ssl } + Constant [ public string OPTION_USER ] { user } + Constant [ public string OPTION_PASSWORD ] { password } + Constant [ public string OPTION_DATABASE ] { database } + Constant [ public string OPTION_CHARSET ] { charset } + Constant [ public string OPTION_STRICT_TYPE ] { strict_type } + Constant [ public string OPTION_FETCH_MODE ] { fetch_mode } + Constant [ public string OPTION_SERIALIZE ] { serialize } + Constant [ public string OPTION_COMPATIBILITY_MODE ] { compatibility_mode } + Constant [ public string OPTION_CHROOT ] { chroot } + Constant [ public string OPTION_GROUP ] { group } + Constant [ public string OPTION_DAEMONIZE ] { daemonize } + Constant [ public string OPTION_PID_FILE ] { pid_file } + Constant [ public string OPTION_REACTOR_NUM ] { reactor_num } + Constant [ public string OPTION_SINGLE_THREAD ] { single_thread } + Constant [ public string OPTION_WORKER_NUM ] { worker_num } + Constant [ public string OPTION_MAX_WAIT_TIME ] { max_wait_time } + Constant [ public string OPTION_MAX_QUEUED_BYTES ] { max_queued_bytes } + Constant [ public string OPTION_SEND_TIMEOUT ] { send_timeout } + Constant [ public string OPTION_DISPATCH_MODE ] { dispatch_mode } + Constant [ public string OPTION_SEND_YIELD ] { send_yield } + Constant [ public string OPTION_DISPATCH_FUNC ] { dispatch_func } + Constant [ public string OPTION_DISCARD_TIMEOUT_REQUEST ] { discard_timeout_request } + Constant [ public string OPTION_ENABLE_UNSAFE_EVENT ] { enable_unsafe_event } + Constant [ public string OPTION_ENABLE_DELAY_RECEIVE ] { enable_delay_receive } + Constant [ public string OPTION_ENABLE_REUSE_PORT ] { enable_reuse_port } + Constant [ public string OPTION_TASK_USE_OBJECT ] { task_use_object } + Constant [ public string OPTION_TASK_OBJECT ] { task_object } + Constant [ public string OPTION_EVENT_OBJECT ] { event_object } + Constant [ public string OPTION_TASK_ENABLE_COROUTINE ] { task_enable_coroutine } + Constant [ public string OPTION_TASK_WORKER_NUM ] { task_worker_num } + Constant [ public string OPTION_TASK_IPC_MODE ] { task_ipc_mode } + Constant [ public string OPTION_TASK_TMPDIR ] { task_tmpdir } + Constant [ public string OPTION_TASK_MAX_REQUEST ] { task_max_request } + Constant [ public string OPTION_TASK_MAX_REQUEST_GRACE ] { task_max_request_grace } + Constant [ public string OPTION_MAX_CONNECTION ] { max_connection } + Constant [ public string OPTION_MAX_CONN ] { max_conn } + Constant [ public string OPTION_START_SESSION_ID ] { start_session_id } + Constant [ public string OPTION_HEARTBEAT_CHECK_INTERVAL ] { heartbeat_check_interval } + Constant [ public string OPTION_HEARTBEAT_IDLE_TIME ] { heartbeat_idle_time } + Constant [ public string OPTION_MAX_REQUEST ] { max_request } + Constant [ public string OPTION_MAX_REQUEST_GRACE ] { max_request_grace } + Constant [ public string OPTION_MAX_REQUEST_EXECUTION_TIME ] { max_request_execution_time } + Constant [ public string OPTION_RELOAD_ASYNC ] { reload_async } + Constant [ public string OPTION_OPEN_CPU_AFFINITY ] { open_cpu_affinity } + Constant [ public string OPTION_CPU_AFFINITY_IGNORE ] { cpu_affinity_ignore } + Constant [ public string OPTION_ENABLE_STATIC_HANDLER ] { enable_static_handler } + Constant [ public string OPTION_DOCUMENT_ROOT ] { document_root } + Constant [ public string OPTION_HTTP_AUTOINDEX ] { http_autoindex } + Constant [ public string OPTION_HTTP_INDEX_FILES ] { http_index_files } + Constant [ public string OPTION_STATIC_HANDLER_LOCATIONS ] { static_handler_locations } + Constant [ public string OPTION_INPUT_BUFFER_SIZE ] { input_buffer_size } + Constant [ public string OPTION_BUFFER_INPUT_SIZE ] { buffer_input_size } + Constant [ public string OPTION_OUTPUT_BUFFER_SIZE ] { output_buffer_size } + Constant [ public string OPTION_BUFFER_OUTPUT_SIZE ] { buffer_output_size } + Constant [ public string OPTION_MESSAGE_QUEUE_KEY ] { message_queue_key } + Constant [ public string OPTION_BACKLOG ] { backlog } + Constant [ public string OPTION_KERNEL_SOCKET_RECV_BUFFER_SIZE ] { kernel_socket_recv_buffer_size } + Constant [ public string OPTION_KERNEL_SOCKET_SEND_BUFFER_SIZE ] { kernel_socket_send_buffer_size } + Constant [ public string OPTION_TCP_DEFER_ACCEPT ] { tcp_defer_accept } + Constant [ public string OPTION_OPEN_TCP_KEEPALIVE ] { open_tcp_keepalive } + Constant [ public string OPTION_OPEN_HTTP_PROTOCOL ] { open_http_protocol } + Constant [ public string OPTION_OPEN_WEBSOCKET_PROTOCOL ] { open_websocket_protocol } + Constant [ public string OPTION_WEBSOCKET_SUBPROTOCOL ] { websocket_subprotocol } + Constant [ public string OPTION_OPEN_WEBSOCKET_CLOSE_FRAME ] { open_websocket_close_frame } + Constant [ public string OPTION_OPEN_WEBSOCKET_PING_FRAME ] { open_websocket_ping_frame } + Constant [ public string OPTION_OPEN_WEBSOCKET_PONG_FRAME ] { open_websocket_pong_frame } + Constant [ public string OPTION_OPEN_HTTP2_PROTOCOL ] { open_http2_protocol } + Constant [ public string OPTION_OPEN_REDIS_PROTOCOL ] { open_redis_protocol } + Constant [ public string OPTION_MAX_IDLE_TIME ] { max_idle_time } + Constant [ public string OPTION_TCP_KEEPIDLE ] { tcp_keepidle } + Constant [ public string OPTION_TCP_KEEPINTERVAL ] { tcp_keepinterval } + Constant [ public string OPTION_TCP_KEEPCOUNT ] { tcp_keepcount } + Constant [ public string OPTION_TCP_USER_TIMEOUT ] { tcp_user_timeout } + Constant [ public string OPTION_TCP_FASTOPEN ] { tcp_fastopen } + Constant [ public string OPTION_PACKAGE_BODY_START ] { package_body_start } + Constant [ public string OPTION_SSL_CLIENT_CERT_FILE ] { ssl_client_cert_file } + Constant [ public string OPTION_SSL_PREFER_SERVER_CIPHERS ] { ssl_prefer_server_ciphers } + Constant [ public string OPTION_SSL_ECDH_CURVE ] { ssl_ecdh_curve } + Constant [ public string OPTION_SSL_DHPARAM ] { ssl_dhparam } + Constant [ public string OPTION_SSL_SNI_CERTS ] { ssl_sni_certs } + Constant [ public string OPTION_OPEN_SSL ] { open_ssl } + Constant [ public string OPTION_OPEN_FASTCGI_PROTOCOL ] { open_fastcgi_protocol } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class OpenSwoole\Exception extends Exception implements Throwable, Stringable ] { - Constants [0] { } @@ -1039,7 +1254,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Error extends Error implements Throwable, Stringable ] { + Class [ class OpenSwoole\Error extends Error implements Throwable, Stringable ] { - Constants [0] { } @@ -1131,7 +1346,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Event ] { + Class [ class OpenSwoole\Event ] { - Constants [0] { } @@ -1139,14 +1354,14 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Static properties [0] { } - - Static methods [11] { + - Static methods [10] { Method [ static public method add ] { - Parameters [4] { Parameter #0 [ mixed $sock ] Parameter #1 [ ?callable $readCallback = null ] Parameter #2 [ ?callable $writeCallback = null ] - Parameter #3 [ int $flags = SWOOLE_EVENT_READ ] + Parameter #3 [ int $flags = OpenSwoole\Event::EVENT_READ ] } - Return [ int|bool ] } @@ -1165,7 +1380,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { Parameter #0 [ mixed $sock ] Parameter #1 [ ?callable $readCallback = null ] Parameter #2 [ ?callable $writeCallback = null ] - Parameter #3 [ int $flags = SWOOLE_EVENT_READ ] + Parameter #3 [ int $flags = OpenSwoole\Event::EVENT_READ ] } - Return [ bool ] } @@ -1174,7 +1389,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Parameters [2] { Parameter #0 [ mixed $sock ] - Parameter #1 [ int $flags = SWOOLE_EVENT_READ | SWOOLE_EVENT_WRITE ] + Parameter #1 [ int $flags = OpenSwoole\Event::EVENT_READ | OpenSwoole\Event::EVENT_WRITE ] } - Return [ bool ] } @@ -1219,19 +1434,170 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ void ] } - Method [ static public method rshutdown ] { + Method [ static public method exit ] { - Parameters [0] { } - Return [ void ] } + } - Method [ static public method exit ] { + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class OpenSwoole\Util ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [18] { + Method [ static public method getVersion ] { + + - Parameters [0] { + } + - Return [ string ] + } + + Method [ static public method getCPUNum ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ static public method getLocalIp ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ static public method getLocalMac ] { + + - Parameters [0] { + } + - Return [ array ] + } + + Method [ static public method getLastErrorCode ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ static public method getErrorMessage ] { + + - Parameters [2] { + Parameter #0 [ int $errorCode ] + Parameter #1 [ ?int $errorType ] + } + - Return [ string ] + } + + Method [ static public method errorCode ] { + + - Parameters [0] { + } + - Return [ int ] + } + + Method [ static public method clearError ] { + + - Parameters [0] { + } + - Return [ void ] + } + + Method [ static public method log ] { + + - Parameters [2] { + Parameter #0 [ int $level ] + Parameter #1 [ string $message ] + } + - Return [ void ] + } + + Method [ static public method hashcode ] { + + - Parameters [2] { + Parameter #0 [ string $content ] + Parameter #1 [ int $type ] + } + - Return [ int|bool ] + } + + Method [ static public method mimeTypeAdd ] { + + - Parameters [2] { + Parameter #0 [ string $suffix ] + Parameter #1 [ string $mimeType ] + } + - Return [ bool ] + } + + Method [ static public method mimeTypeSet ] { + + - Parameters [2] { + Parameter #0 [ string $suffix ] + Parameter #1 [ string $mimeType ] + } + - Return [ bool ] + } + + Method [ static public method mimeTypeDel ] { + + - Parameters [1] { + Parameter #0 [ string $suffix ] + } + - Return [ bool ] + } + + Method [ static public method mimeTypeGet ] { + + - Parameters [1] { + Parameter #0 [ string $filename ] + } + - Return [ string ] + } + + Method [ static public method mimeTypeList ] { - Parameters [0] { } + - Return [ array ] + } + + Method [ static public method mimeTypeExists ] { + + - Parameters [1] { + Parameter #0 [ string $filename ] + } + - Return [ string ] + } + + Method [ static public method setProcessName ] { + + - Parameters [1] { + Parameter #0 [ string $name ] + } - Return [ void ] } + + Method [ static public method setAio ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + - Return [ bool ] + } } - Properties [0] { @@ -1241,7 +1607,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Atomic ] { + Class [ class OpenSwoole\Atomic ] { - Constants [0] { } @@ -1321,7 +1687,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Atomic\Long ] { + Class [ class OpenSwoole\Atomic\Long ] { - Constants [0] { } @@ -1385,7 +1751,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Lock ] { + Class [ class OpenSwoole\Lock ] { - Constants [5] { Constant [ public int FILELOCK ] { 2 } @@ -1409,7 +1775,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { Method [ public method __construct ] { - Parameters [2] { - Parameter #0 [ int $type = SWOOLE_MUTEX ] + Parameter #0 [ int $type = OpenSwoole\Lock::MUTEX ] Parameter #1 [ string $lockFile = "" ] } } @@ -1472,7 +1838,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Process ] { + Class [ class OpenSwoole\Process ] { - Constants [5] { Constant [ public int IPC_NOWAIT ] { 256 } @@ -1549,7 +1915,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { Property [ private $callback = NULL ] } - - Methods [20] { + - Methods [19] { Method [ public method __construct ] { - Parameters [4] { @@ -1701,20 +2067,15 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } - Return [ Swoole\Coroutine\Socket|false ] } - - Method [ public method name ] { - - - Parameters [1] { - Parameter #0 [ string $processName ] - } - - Return [ bool ] - } } } - Class [ class Swoole\Process\Pool ] { + Class [ class OpenSwoole\Process\Pool ] { - - Constants [0] { + - Constants [3] { + Constant [ public int IPC_NONE ] { 0 } + Constant [ public int IPC_UNIXSOCK ] { 1 } + Constant [ public int IPC_SOCKET ] { 3 } } - Static properties [0] { @@ -1733,7 +2094,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Parameters [4] { Parameter #0 [ int $workerNum ] - Parameter #1 [ int $ipcType = SWOOLE_IPC_NONE ] + Parameter #1 [ int $ipcType = OpenSwoole\Process\Pool::IPC_NONE ] Parameter #2 [ int $msgqueue_key = 0 ] Parameter #3 [ bool $enableCoroutine = false ] } @@ -1767,7 +2128,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Parameters [1] { Parameter #0 [ int $workerId = -1 ] } - - Return [ Swoole\Process|false ] + - Return [ OpenSwoole\Process|false ] } Method [ public method listen ] { @@ -1818,7 +2179,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Table implements Iterator, Traversable, Countable ] { + Class [ class OpenSwoole\Table implements Iterator, Traversable, Countable ] { - Constants [3] { Constant [ public int TYPE_INT ] { 1 } @@ -1837,7 +2198,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { Property [ public $memorySize = NULL ] } - - Methods [20] { + - Methods [18] { Method [ public method __construct ] { - Parameters [2] { @@ -1979,42 +2340,22 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } - Return [ ?string ] } - - Method [ public method delete ] { - - - Parameters [1] { - Parameter #0 [ string $key ] - } - - Return [ bool ] - } - - Method [ public method exist ] { - - - Parameters [1] { - Parameter #0 [ string $key ] - } - - Return [ bool ] - } } } - Class [ class Swoole\Timer ] { + Class [ class OpenSwoole\Timer ] { - - Constants [0] { + - Constants [4] { + Constant [ public int TIMER_MIN_MS ] { 1 } + Constant [ public float TIMER_MIN_SEC ] { 0.001 } + Constant [ public int TIMER_MAX_MS ] { 9223372036854775807 } + Constant [ public float TIMER_MAX_SEC ] { 9.2233720368548E+15 } } - Static properties [0] { } - - Static methods [9] { - Method [ static public method set ] { - - - Parameters [1] { - Parameter #0 [ array $settings ] - } - - Return [ bool ] - } - + - Static methods [8] { Method [ static public method after ] { - Parameters [3] { @@ -2085,7 +2426,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Timer\Iterator extends ArrayIterator implements Countable, Serializable, ArrayAccess, Iterator, Traversable, SeekableIterator ] { + Class [ class OpenSwoole\Timer\Iterator extends ArrayIterator implements Countable, Serializable, ArrayAccess, Iterator, Traversable, SeekableIterator ] { - Constants [2] { Constant [ public int STD_PROP_LIST ] { 1 } @@ -2308,15 +2649,23 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Coroutine ] { + Class [ class OpenSwoole\Coroutine ] { - - Constants [0] { + - Constants [8] { + Constant [ public int DEFAULT_MAX_CORO_NUM ] { 100000 } + Constant [ public int CORO_MAX_NUM_LIMIT ] { 9223372036854775807 } + Constant [ public int CORO_INIT ] { 0 } + Constant [ public int CORO_WAITING ] { 1 } + Constant [ public int CORO_RUNNING ] { 2 } + Constant [ public int CORO_END ] { 3 } + Constant [ public int EXIT_IN_COROUTINE ] { 2 } + Constant [ public int EXIT_IN_SERVER ] { 4 } } - Static properties [0] { } - - Static methods [40] { + - Static methods [36] { Method [ static public method create ] { - Parameters [2] { @@ -2379,13 +2728,6 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ static public method suspend ] { - - - Parameters [0] { - } - - Return [ bool ] - } - Method [ static public method resume ] { - Parameters [1] { @@ -2408,13 +2750,6 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ int ] } - Method [ static public method getuid ] { - - - Parameters [0] { - } - - Return [ int ] - } - Method [ static public method getPcid ] { - Parameters [1] { @@ -2484,25 +2819,27 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ mixed ] } - Method [ static public method listCoroutines ] { + Method [ static public method enableScheduler ] { - Parameters [0] { } - - Return [ Swoole\Coroutine\Iterator ] + - Return [ bool ] } - Method [ static public method enableScheduler ] { + Method [ static public method disableScheduler ] { - Parameters [0] { } - Return [ bool ] } - Method [ static public method disableScheduler ] { + Method [ static public method run ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ callable $callback ] + Parameter #1 [ mixed ...$params ] } - - Return [ bool ] + - Return [ ?bool ] } Method [ static public method gethostbyname ] { @@ -2515,15 +2852,6 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ string|false ] } - Method [ static public method dnsLookup ] { - - - Parameters [2] { - Parameter #0 [ string $domain ] - Parameter #1 [ float $timeout = 5 ] - } - - Return [ string|false ] - } - Method [ static public method exec ] { - Parameters [2] { @@ -2625,31 +2953,20 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ int|bool ] } - Method [ static public method fread ] { + Method [ static public method dnsLookup ] { - Parameters [2] { - Parameter #0 [ mixed $handle ] - Parameter #1 [ int $length = 0 ] + Parameter #0 [ string $domain ] + Parameter #1 [ float $timeout = 5 ] } - Return [ string|false ] } - Method [ static public method fwrite ] { + Method [ static public method clearDNSCache ] { - - Parameters [3] { - Parameter #0 [ mixed $handle ] - Parameter #1 [ string $data ] - Parameter #2 [ int $length = 0 ] - } - - Return [ int|false ] - } - - Method [ static public method fgets ] { - - - Parameters [1] { - Parameter #0 [ mixed $handle ] + - Parameters [0] { } - - Return [ string|bool ] + - Return [ void ] } } @@ -2660,7 +2977,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Coroutine\Iterator extends ArrayIterator implements Countable, Serializable, ArrayAccess, Iterator, Traversable, SeekableIterator ] { + Class [ class OpenSwoole\Coroutine\Iterator extends ArrayIterator implements Countable, Serializable, ArrayAccess, Iterator, Traversable, SeekableIterator ] { - Constants [2] { Constant [ public int STD_PROP_LIST ] { 1 } @@ -2883,7 +3200,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Coroutine\Context extends ArrayObject implements Countable, Serializable, ArrayAccess, Traversable, IteratorAggregate ] { + Class [ class OpenSwoole\Coroutine\Context extends ArrayObject implements Countable, Serializable, ArrayAccess, Traversable, IteratorAggregate ] { - Constants [2] { Constant [ public int STD_PROP_LIST ] { 1 } @@ -3094,7 +3411,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\ExitException extends Swoole\Exception implements Stringable, Throwable ] { + Class [ class OpenSwoole\ExitException extends OpenSwoole\Exception implements Stringable, Throwable ] { - Constants [0] { } @@ -3200,7 +3517,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Coroutine\System ] { + Class [ class OpenSwoole\Coroutine\System ] { - Constants [0] { } @@ -3208,7 +3525,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Static properties [0] { } - - Static methods [16] { + - Static methods [14] { Method [ static public method gethostbyname ] { - Parameters [3] { @@ -3219,15 +3536,6 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ string|false ] } - Method [ static public method dnsLookup ] { - - - Parameters [2] { - Parameter #0 [ string $domain ] - Parameter #1 [ float $timeout = 5 ] - } - - Return [ string|false ] - } - Method [ static public method exec ] { - Parameters [2] { @@ -3329,31 +3637,20 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ int|bool ] } - Method [ static public method fread ] { + Method [ static public method dnsLookup ] { - Parameters [2] { - Parameter #0 [ mixed $handle ] - Parameter #1 [ int $length = 0 ] + Parameter #0 [ string $domain ] + Parameter #1 [ float $timeout = 5 ] } - Return [ string|false ] } - Method [ static public method fwrite ] { - - - Parameters [3] { - Parameter #0 [ mixed $handle ] - Parameter #1 [ string $data ] - Parameter #2 [ int $length = 0 ] - } - - Return [ int|false ] - } - - Method [ static public method fgets ] { + Method [ static public method clearDNSCache ] { - - Parameters [1] { - Parameter #0 [ mixed $handle ] + - Parameters [0] { } - - Return [ string|bool ] + - Return [ void ] } } @@ -3364,7 +3661,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ final class Swoole\Coroutine\Scheduler ] { + Class [ final class OpenSwoole\Coroutine\Scheduler ] { - Constants [0] { } @@ -3422,9 +3719,13 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Coroutine\Channel ] { + Class [ class OpenSwoole\Coroutine\Channel ] { - - Constants [0] { + - Constants [4] { + Constant [ public int CHANNEL_OK ] { 0 } + Constant [ public int CHANNEL_TIMEOUT ] { -1 } + Constant [ public int CHANNEL_CLOSED ] { -2 } + Constant [ public int CHANNEL_CANCELED ] { -3 } } - Static properties [0] { @@ -3508,9 +3809,26 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Runtime ] { + Class [ class OpenSwoole\Runtime ] { - - Constants [0] { + - Constants [17] { + Constant [ public int HOOK_TCP ] { 2 } + Constant [ public int HOOK_UDP ] { 4 } + Constant [ public int HOOK_UNIX ] { 8 } + Constant [ public int HOOK_UDG ] { 16 } + Constant [ public int HOOK_SSL ] { 32 } + Constant [ public int HOOK_TLS ] { 64 } + Constant [ public int HOOK_STREAM_FUNCTION ] { 128 } + Constant [ public int HOOK_STREAM_SELECT ] { 128 } + Constant [ public int HOOK_FILE ] { 256 } + Constant [ public int HOOK_STDIO ] { 32768 } + Constant [ public int HOOK_SLEEP ] { 512 } + Constant [ public int HOOK_PROC ] { 1024 } + Constant [ public int HOOK_CURL ] { 2048 } + Constant [ public int HOOK_NATIVE_CURL ] { 4096 } + Constant [ public int HOOK_BLOCKING_FUNCTION ] { 8192 } + Constant [ public int HOOK_SOCKETS ] { 16384 } + Constant [ public int HOOK_ALL ] { 2147457023 } } - Static properties [0] { @@ -3521,7 +3839,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Parameters [2] { Parameter #0 [ bool $enable = true ] - Parameter #1 [ int $flags = SWOOLE_HOOK_ALL ] + Parameter #1 [ int $flags = OpenSwoole\Runtime::HOOK_ALL ] } - Return [ void ] } @@ -3536,7 +3854,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { Method [ static public method setHookFlags ] { - Parameters [1] { - Parameter #0 [ int $flags = SWOOLE_HOOK_ALL ] + Parameter #0 [ int $flags = OpenSwoole\Runtime::HOOK_ALL ] } - Return [ void ] } @@ -3549,7 +3867,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Coroutine\Curl\Exception extends Swoole\Exception implements Stringable, Throwable ] { + Class [ class OpenSwoole\Coroutine\Curl\Exception extends OpenSwoole\Exception implements Stringable, Throwable ] { - Constants [0] { } @@ -3641,9 +3959,11 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Coroutine\Socket ] { + Class [ class OpenSwoole\Coroutine\Socket ] { - - Constants [0] { + - Constants [2] { + Constant [ public int EVENT_READ ] { 512 } + Constant [ public int EVENT_WRITE ] { 512 } } - Static properties [0] { @@ -3693,7 +4013,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Parameters [1] { Parameter #0 [ float $timeout = 0 ] } - - Return [ Swoole\Coroutine\Socket|false ] + - Return [ OpenSwoole\Coroutine\Socket|false ] } Method [ public method connect ] { @@ -3893,7 +4213,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { Method [ public method cancel ] { - Parameters [1] { - Parameter #0 [ int $event = SWOOLE_EVENT_READ ] + Parameter #0 [ int $event = OpenSwoole\Coroutine\Socket::EVENT_READ ] } - Return [ bool ] } @@ -3921,7 +4241,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Coroutine\Socket\Exception extends Swoole\Exception implements Stringable, Throwable ] { + Class [ class OpenSwoole\Coroutine\Socket\Exception extends OpenSwoole\Exception implements Stringable, Throwable ] { - Constants [0] { } @@ -4013,7 +4333,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Client ] { + Class [ class OpenSwoole\Client ] { - Constants [7] { Constant [ public int MSG_OOB ] { 1 } @@ -4028,7 +4348,17 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Static properties [0] { } - - Static methods [0] { + - Static methods [1] { + Method [ static public method select ] { + + - Parameters [4] { + Parameter #0 [ array &$readReady ] + Parameter #1 [ array &$writeReady ] + Parameter #2 [ array &$errors ] + Parameter #3 [ float $timeout = 0.5 ] + } + - Return [ bool ] + } } - Properties [7] { @@ -4181,7 +4511,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Client\Exception extends Swoole\Exception implements Stringable, Throwable ] { + Class [ class OpenSwoole\Client\Exception extends OpenSwoole\Exception implements Stringable, Throwable ] { - Constants [0] { } @@ -4273,7 +4603,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Coroutine\Client ] { + Class [ class OpenSwoole\Coroutine\Client ] { - Constants [4] { Constant [ public int MSG_OOB ] { 1 } @@ -4440,14 +4770,18 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Parameters [0] { } - - Return [ Swoole\Coroutine\Socket|bool ] + - Return [ OpenSwoole\Coroutine\Socket|bool ] } } } - Class [ class Swoole\Coroutine\Http\Client ] { + Class [ class OpenSwoole\Coroutine\Http\Client ] { - - Constants [0] { + - Constants [4] { + Constant [ public int STATUS_CONNECT_FAILED ] { -1 } + Constant [ public int STATUS_REQUEST_TIMEOUT ] { -2 } + Constant [ public int STATUS_SERVER_RESET ] { -3 } + Constant [ public int STATUS_SEND_FAILED ] { -4 } } - Static properties [0] { @@ -4681,7 +5015,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Coroutine\Http\Client\Exception extends Swoole\Exception implements Stringable, Throwable ] { + Class [ class OpenSwoole\Coroutine\Http\Client\Exception extends OpenSwoole\Exception implements Stringable, Throwable ] { - Constants [0] { } @@ -4773,9 +5107,32 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Coroutine\MySQL ] { - - - Constants [0] { + Class [ class OpenSwoole\Coroutine\Http2\Client ] { + + - Constants [23] { + Constant [ public int HTTP2_TYPE_DATA ] { 0 } + Constant [ public int HTTP2_TYPE_HEADERS ] { 1 } + Constant [ public int HTTP2_TYPE_PRIORITY ] { 2 } + Constant [ public int HTTP2_TYPE_RST_STREAM ] { 3 } + Constant [ public int HTTP2_TYPE_SETTINGS ] { 4 } + Constant [ public int HTTP2_TYPE_PUSH_PROMISE ] { 5 } + Constant [ public int HTTP2_TYPE_PING ] { 6 } + Constant [ public int HTTP2_TYPE_GOAWAY ] { 7 } + Constant [ public int HTTP2_TYPE_WINDOW_UPDATE ] { 8 } + Constant [ public int HTTP2_TYPE_CONTINUATION ] { 9 } + Constant [ public int HTTP2_ERROR_NO_ERROR ] { 0 } + Constant [ public int HTTP2_ERROR_PROTOCOL_ERROR ] { 1 } + Constant [ public int HTTP2_ERROR_INTERNAL_ERROR ] { 2 } + Constant [ public int HTTP2_ERROR_FLOW_CONTROL_ERROR ] { 3 } + Constant [ public int HTTP2_ERROR_SETTINGS_TIMEOUT ] { 4 } + Constant [ public int HTTP2_ERROR_STREAM_CLOSED ] { 5 } + Constant [ public int HTTP2_ERROR_FRAME_SIZE_ERROR ] { 6 } + Constant [ public int HTTP2_ERROR_REFUSED_STREAM ] { 7 } + Constant [ public int HTTP2_ERROR_CANCEL ] { 8 } + Constant [ public int HTTP2_ERROR_COMPRESSION_ERROR ] { 9 } + Constant [ public int HTTP2_ERROR_CONNECT_ERROR ] { 10 } + Constant [ public int HTTP2_ERROR_ENHANCE_YOUR_CALM ] { 11 } + Constant [ public int HTTP2_ERROR_INADEQUATE_SECURITY ] { 12 } } - Static properties [0] { @@ -4785,192 +5142,124 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } - Properties [9] { - Property [ public $serverInfo = NULL ] + Property [ public $errCode = 0 ] + Property [ public $errMsg = 0 ] Property [ public $sock = -1 ] + Property [ public $type = 0 ] + Property [ public $setting = NULL ] Property [ public $connected = false ] - Property [ public $connect_errno = 0 ] - Property [ public $connect_error = '' ] - Property [ public $affected_rows = 0 ] - Property [ public $insert_id = 0 ] - Property [ public $error = '' ] - Property [ public $errno = 0 ] + Property [ public $host = NULL ] + Property [ public $port = 0 ] + Property [ public $ssl = false ] } - - Methods [16] { - Method [ public method __construct ] { - - - Parameters [0] { - } - } - - Method [ public method __destruct ] { + - Methods [13] { + Method [ public method __construct ] { - - Parameters [0] { + - Parameters [3] { + Parameter #0 [ string $host ] + Parameter #1 [ int $port = 80 ] + Parameter #2 [ bool $openSSL = false ] } } - Method [ public method getDefer ] { + Method [ public method __destruct ] { - Parameters [0] { } } - Method [ public method setDefer ] { - - - Parameters [1] { - Parameter #0 [ $defer = ] - } - } - - Method [ public method connect ] { + Method [ public method set ] { - Parameters [1] { - Parameter #0 [ array $server_config = ] - } - } - - Method [ public method query ] { - - - Parameters [2] { - Parameter #0 [ $sql ] - Parameter #1 [ $timeout = ] - } - } - - Method [ public method fetch ] { - - - Parameters [0] { - } - } - - Method [ public method fetchAll ] { - - - Parameters [0] { - } - } - - Method [ public method nextResult ] { - - - Parameters [0] { - } - } - - Method [ public method prepare ] { - - - Parameters [2] { - Parameter #0 [ $query ] - Parameter #1 [ $timeout = ] + Parameter #0 [ array $options ] } + - Return [ bool ] } - Method [ public method recv ] { + Method [ public method connect ] { - Parameters [0] { } + - Return [ bool ] } - Method [ public method begin ] { + Method [ public method stats ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ string $key = "" ] } + - Return [ array|int|bool ] } - Method [ public method commit ] { + Method [ public method isStreamExist ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ int $streamId ] } + - Return [ bool ] } - Method [ public method rollback ] { + Method [ public method send ] { - Parameters [1] { - Parameter #0 [ $timeout = ] - } - } - - Method [ public method escape ] { - - - Parameters [2] { - Parameter #0 [ $string ] - Parameter #1 [ $flags = ] - } - } - - Method [ public method close ] { - - - Parameters [0] { + Parameter #0 [ OpenSwoole\Http2\Request $request ] } + - Return [ int|bool ] } - } - } - - Class [ class Swoole\Coroutine\MySQL\Statement ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - Properties [5] { - Property [ public $id = 0 ] - Property [ public $affected_rows = 0 ] - Property [ public $insert_id = 0 ] - Property [ public $error = '' ] - Property [ public $errno = 0 ] - } - - - Methods [6] { - Method [ public method execute ] { + Method [ public method write ] { - - Parameters [2] { - Parameter #0 [ $params = ] - Parameter #1 [ $timeout = ] + - Parameters [3] { + Parameter #0 [ int $streamId ] + Parameter #1 [ mixed $data ] + Parameter #2 [ bool $end = false ] } + - Return [ bool ] } - Method [ public method fetch ] { + Method [ public method recv ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ float $timeout = 0 ] } + - Return [ OpenSwoole\Http2\Response|bool ] } - Method [ public method fetchAll ] { + Method [ public method read ] { - Parameters [1] { - Parameter #0 [ $timeout = ] + Parameter #0 [ float $timeout = 0 ] } + - Return [ OpenSwoole\Http2\Response|bool ] } - Method [ public method nextResult ] { + Method [ public method goaway ] { - - Parameters [1] { - Parameter #0 [ $timeout = ] + - Parameters [2] { + Parameter #0 [ int $errorCode = OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_NO_ERROR ] + Parameter #1 [ string $debugData = "" ] } + - Return [ bool ] } - Method [ public method recv ] { + Method [ public method ping ] { - - Parameters [1] { - Parameter #0 [ $timeout = ] + - Parameters [0] { } + - Return [ bool ] } - Method [ public method close ] { + Method [ public method close ] { - Parameters [0] { } + - Return [ bool ] } } } - Class [ class Swoole\Coroutine\MySQL\Exception extends Swoole\Exception implements Stringable, Throwable ] { + Class [ class OpenSwoole\Coroutine\Http2\Client\Exception extends OpenSwoole\Exception implements Stringable, Throwable ] { - Constants [0] { } @@ -5062,7 +5351,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Coroutine\Redis ] { + Class [ class OpenSwoole\Http2\Request ] { - Constants [0] { } @@ -5073,22 +5362,115 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Static methods [0] { } - - Properties [8] { - Property [ public $host = '' ] - Property [ public $port = 0 ] - Property [ public $setting = NULL ] - Property [ public $sock = -1 ] - Property [ public $connected = false ] - Property [ public $errType = 0 ] - Property [ public $errCode = 0 ] - Property [ public $errMsg = '' ] + - 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 [165] { - Method [ public method __construct ] { - - - Parameters [1] { - Parameter #0 [ array $setting = [] ] + - Methods [0] { + } + } + + Class [ class OpenSwoole\Http2\Response ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [8] { + Property [ public $streamId = 0 ] + Property [ public $errCode = 0 ] + Property [ public $statusCode = 0 ] + Property [ public $pipeline = false ] + Property [ public $headers = NULL ] + Property [ public $set_cookie_headers = NULL ] + Property [ public $cookies = NULL ] + Property [ public $data = NULL ] + } + + - Methods [0] { + } + } + + Class [ class OpenSwoole\Server ] { + + - Constants [22] { + Constant [ public int SIMPLE_MODE ] { 1 } + Constant [ public int POOL_MODE ] { 2 } + Constant [ public int IPC_UNSOCK ] { 1 } + Constant [ public int IPC_MSGQUEUE ] { 2 } + Constant [ public int IPC_PREEMPTIVE ] { 3 } + Constant [ public int DISPATCH_RESULT_DISCARD_PACKET ] { -1 } + Constant [ public int DISPATCH_RESULT_CLOSE_CONNECTION ] { -2 } + Constant [ public int DISPATCH_RESULT_USERFUNC_FALLBACK ] { -3 } + Constant [ public int TASK_TMPFILE ] { 1 } + Constant [ public int TASK_SERIALIZE ] { 2 } + Constant [ public int TASK_NONBLOCK ] { 4 } + Constant [ public int TASK_CALLBACK ] { 8 } + Constant [ public int TASK_WAITALL ] { 16 } + Constant [ public int TASK_COROUTINE ] { 32 } + Constant [ public int TASK_PEEK ] { 64 } + Constant [ public int TASK_NOREPLY ] { 128 } + Constant [ public int WORKER_BUSY ] { 1 } + Constant [ public int WORKER_IDLE ] { 2 } + Constant [ public int WORKER_EXIT ] { 3 } + Constant [ public int STATS_DEFAULT ] { 0 } + Constant [ public int STATS_JSON ] { 1 } + Constant [ public int STATS_OPENMETRICS ] { 2 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [26] { + Property [ private $onStart = NULL ] + Property [ private $onShutdown = NULL ] + Property [ private $onWorkerStart = NULL ] + Property [ private $onWorkerStop = NULL ] + Property [ private $onBeforeReload = NULL ] + Property [ private $onAfterReload = NULL ] + Property [ private $onWorkerExit = NULL ] + Property [ private $onWorkerError = NULL ] + Property [ private $onTask = NULL ] + Property [ private $onFinish = NULL ] + Property [ private $onManagerStart = NULL ] + Property [ private $onManagerStop = NULL ] + Property [ private $onPipeMessage = NULL ] + Property [ public $setting = NULL ] + Property [ public $connections = NULL ] + Property [ public $host = '' ] + Property [ public $port = 0 ] + Property [ public $type = 0 ] + Property [ public $mode = 0 ] + Property [ public $ports = NULL ] + Property [ public $master_pid = 0 ] + Property [ public $manager_pid = 0 ] + Property [ public $worker_id = -1 ] + Property [ public $taskworker = false ] + Property [ public $worker_pid = 0 ] + Property [ public $stats_timer = NULL ] + } + + - Methods [45] { + Method [ public method __construct ] { + + - Parameters [4] { + Parameter #0 [ string $host ] + Parameter #1 [ int $port = 0 ] + Parameter #2 [ int $mode = OpenSwoole\Server::SIMPLE_MODE ] + Parameter #3 [ int $sockType = OpenSwoole\Constant::SOCK_TCP ] } } @@ -5098,2833 +5480,524 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Method [ public method connect ] { + Method [ public method listen ] { - Parameters [3] { Parameter #0 [ string $host ] Parameter #1 [ int $port ] - Parameter #2 [ bool $serialize = false ] + Parameter #2 [ int $sockType ] } - - Return [ bool ] + - Return [ OpenSwoole\Server\Port|false ] } - Method [ public method getAuth ] { + Method [ public method addlistener ] { - - Parameters [0] { + - Parameters [3] { + Parameter #0 [ string $host ] + Parameter #1 [ int $port ] + Parameter #2 [ int $sockType ] } - - Return [ mixed ] + - Return [ OpenSwoole\Server\Port|false ] } - Method [ public method getDBNum ] { + Method [ public method on ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ string $event ] + Parameter #1 [ callable $callback ] } - - Return [ int|bool ] + - Return [ bool ] } - Method [ public method getOptions ] { + Method [ public method handle ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ callable $callback ] } - - Return [ array ] + - Return [ bool ] } - Method [ public method setOptions ] { + Method [ public method setHandler ] { - Parameters [1] { - Parameter #0 [ array $options ] + Parameter #0 [ mixed $handler ] } - Return [ bool ] } - Method [ public method getDefer ] { + Method [ public method getCallback ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ string $event ] } - - Return [ bool ] + - Return [ mixed ] } - Method [ public method setDefer ] { + Method [ public method set ] { - Parameters [1] { - Parameter #0 [ bool $defer = true ] + Parameter #0 [ array $settings ] } - Return [ bool ] } - Method [ public method recv ] { + Method [ public method start ] { - Parameters [0] { } - - Return [ mixed ] + - Return [ bool ] } - Method [ public method request ] { + Method [ public method send ] { - - Parameters [1] { - Parameter #0 [ array $params ] + - Parameters [3] { + Parameter #0 [ string|int $fd ] + Parameter #1 [ mixed $data ] + Parameter #2 [ int $serverSocket = -1 ] } - - Return [ void ] + - Return [ bool ] } - Method [ public method close ] { + Method [ public method sendto ] { - - Parameters [0] { + - Parameters [4] { + Parameter #0 [ string $ip ] + Parameter #1 [ int $port ] + Parameter #2 [ string $data ] + Parameter #3 [ int $serverSocket = -1 ] } - Return [ bool ] } - Method [ public method set ] { + Method [ public method sendwait ] { - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ mixed $value ] - Parameter #2 [ mixed $opt = null ] + - Parameters [2] { + Parameter #0 [ int $fd ] + Parameter #1 [ string $data ] } - - Return [ Swoole\Coroutine\Redis|bool ] + - Return [ bool ] } - Method [ public method setBit ] { + Method [ public method exists ] { - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $idx ] - Parameter #2 [ bool $value ] + - Parameters [1] { + Parameter #0 [ int $fd ] } - - Return [ Swoole\Coroutine\Redis|int ] + - Return [ bool ] } - Method [ public method setEx ] { + Method [ public method protect ] { - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $expire ] - Parameter #2 [ mixed $value ] + - Parameters [2] { + Parameter #0 [ int $fd ] + Parameter #1 [ bool $isProtected = true ] } - - Return [ Swoole\Coroutine\Redis|bool ] + - Return [ bool ] } - Method [ public method psetEx ] { + Method [ public method sendfile ] { - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $expire ] - Parameter #2 [ mixed $value ] + - Parameters [4] { + Parameter #0 [ int $fd ] + Parameter #1 [ string $fileName ] + Parameter #2 [ int $offset = 0 ] + Parameter #3 [ int $length = 0 ] } - - Return [ Swoole\Coroutine\Redis|bool ] + - Return [ bool ] } - Method [ public method lSet ] { + Method [ public method close ] { - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $index ] - Parameter #2 [ string $value ] + - Parameters [2] { + Parameter #0 [ int $fd ] + Parameter #1 [ bool $reset = false ] } - Return [ bool ] } - Method [ public method get ] { + Method [ public method confirm ] { - Parameters [1] { - Parameter #0 [ string $key ] + Parameter #0 [ int $fd ] } - - Return [ Swoole\Coroutine\Redis|string ] + - Return [ bool ] } - Method [ public method mGet ] { + Method [ public method pause ] { - Parameters [1] { - Parameter #0 [ array $keys ] + Parameter #0 [ int $fd ] } - - Return [ Swoole\Coroutine\Redis|array ] + - Return [ bool ] } - Method [ public method del ] { + Method [ public method resume ] { - - Parameters [2] { - Parameter #0 [ array|string $key ] - Parameter #1 [ string ...$other_keys ] + - Parameters [1] { + Parameter #0 [ int $fd ] } - - Return [ Swoole\Coroutine\Redis|int ] + - Return [ bool ] } - Method [ public method hDel ] { + Method [ public method task ] { - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $member ] - Parameter #2 [ string ...$other_members ] + Parameter #0 [ mixed $data ] + Parameter #1 [ int $workerId = -1 ] + Parameter #2 [ ?callable $finishCallback = null ] } - - Return [ int ] + - Return [ int|bool ] } - Method [ public method hSet ] { + Method [ public method taskwait ] { - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $member ] - Parameter #2 [ string $value ] + Parameter #0 [ mixed $data ] + Parameter #1 [ float $timeout = 0.5 ] + Parameter #2 [ int $workerId = -1 ] } - - Return [ int ] + - Return [ string|bool ] } - Method [ public method hMSet ] { + Method [ public method taskWaitMulti ] { - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ array $keyvals ] + Parameter #0 [ array $tasks ] + Parameter #1 [ float $timeout = 0.5 ] } - - Return [ bool ] + - Return [ array|bool ] } - Method [ public method hSetNx ] { + Method [ public method taskCo ] { - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $member ] - Parameter #2 [ string $value ] + - Parameters [2] { + Parameter #0 [ array $tasks ] + Parameter #1 [ float $timeout = 0.5 ] } - - Return [ int ] + - Return [ array|bool ] } - Method [ public method delete ] { + Method [ public method finish ] { - - Parameters [2] { - Parameter #0 [ array|string $key ] - Parameter #1 [ string ...$other_keys ] + - Parameters [1] { + Parameter #0 [ mixed $data ] } - - Return [ Swoole\Coroutine\Redis|int ] + - Return [ bool ] } - Method [ public method mSet ] { + Method [ public method reload ] { - - Parameters [1] { - Parameter #0 [ array $key_values ] + - Parameters [0] { } - Return [ bool ] } - Method [ public method mSetNx ] { + Method [ public method shutdown ] { - - Parameters [1] { - Parameter #0 [ array $key_values ] + - Parameters [0] { } - - Return [ int ] + - Return [ bool ] } - Method [ public method getKeys ] { + Method [ public method stop ] { - - Parameters [1] { - Parameter #0 [ string $pattern ] + - Parameters [2] { + Parameter #0 [ int $workerId ] + Parameter #1 [ bool $waitEvent = false ] } - - Return [ Swoole\Coroutine\Redis|array ] + - Return [ bool ] } - Method [ public method keys ] { + Method [ public method heartbeat ] { - Parameters [1] { - Parameter #0 [ string $pattern ] + Parameter #0 [ bool $closeConn = false ] } - - Return [ Swoole\Coroutine\Redis|array ] + - Return [ array|false ] } - Method [ public method exists ] { + Method [ public method getClientInfo ] { - - Parameters [1] { - Parameter #0 [ string $key ] + - Parameters [3] { + Parameter #0 [ int $fd ] + Parameter #1 [ int $reactorId = -1 ] + Parameter #2 [ bool $noCheckConn = false ] } - - Return [ Swoole\Coroutine\Redis|bool ] + - Return [ array|bool ] } - Method [ public method type ] { + Method [ public method getClientList ] { - - Parameters [1] { - Parameter #0 [ string $key ] + - Parameters [2] { + Parameter #0 [ int $startFd = 0 ] + Parameter #1 [ int $pageSize = 10 ] } - - Return [ Swoole\Coroutine\Redis|int ] + - Return [ array|bool ] } - Method [ public method strLen ] { + Method [ public method getWorkerId ] { - - Parameters [1] { - Parameter #0 [ string $key ] + - Parameters [0] { } - - Return [ Swoole\Coroutine\Redis|int ] + - Return [ int ] } - Method [ public method lPop ] { + Method [ public method getWorkerPid ] { - Parameters [1] { - Parameter #0 [ string $key ] + Parameter #0 [ int $workerId = -1 ] } - - Return [ Swoole\Coroutine\Redis|string ] + - Return [ int|false ] } - Method [ public method blPop ] { - - - Parameters [3] { - Parameter #0 [ array|string $key ] - Parameter #1 [ string|int $timeout_or_key ] - Parameter #2 [ mixed ...$extra_args ] - } - - Return [ array ] - } - - Method [ public method rPop ] { + Method [ public method getWorkerStatus ] { - Parameters [1] { - Parameter #0 [ string $key ] - } - - Return [ Swoole\Coroutine\Redis|string ] - } - - Method [ public method brPop ] { - - - Parameters [3] { - Parameter #0 [ array|string $key ] - Parameter #1 [ string|int $timeout_or_key ] - Parameter #2 [ mixed ...$extra_args ] - } - - Return [ array ] - } - - Method [ public method bRPopLPush ] { - - - Parameters [3] { - Parameter #0 [ string $src ] - Parameter #1 [ string $dst ] - Parameter #2 [ int $timeout ] + Parameter #0 [ int $workerId = -1 ] } - - Return [ string ] + - Return [ int|bool ] } - Method [ public method lSize ] { + Method [ public method getManagerPid ] { - - Parameters [1] { - Parameter #0 [ string $key ] + - Parameters [0] { } - Return [ int ] } - Method [ public method lLen ] { + Method [ public method getMasterPid ] { - - Parameters [1] { - Parameter #0 [ string $key ] + - Parameters [0] { } - Return [ int ] } - Method [ public method sSize ] { + Method [ public method sendMessage ] { - - Parameters [1] { - Parameter #0 [ string $key ] + - Parameters [2] { + Parameter #0 [ mixed $message ] + Parameter #1 [ int $workerId ] } - - Return [ int ] + - Return [ bool ] } - Method [ public method scard ] { + Method [ public method addProcess ] { - Parameters [1] { - Parameter #0 [ string $key ] - } - - Return [ int ] - } - - Method [ public method sPop ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ int $count = 0 ] + Parameter #0 [ OpenSwoole\Process $process ] } - - Return [ array|string ] + - Return [ int|bool ] } - Method [ public method sMembers ] { + Method [ public method stats ] { - Parameters [1] { - Parameter #0 [ string $key ] + Parameter #0 [ int $mode = 0 ] } - - Return [ array ] + - Return [ array|string|false ] } - Method [ public method sGetMembers ] { + Method [ public method getSocket ] { - Parameters [1] { - Parameter #0 [ string $key ] + Parameter #0 [ int $port = -1 ] } - - Return [ array ] + - Return [ mixed ] } - Method [ public method sRandMember ] { + Method [ public method bind ] { - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ int $count = 0 ] - } - - Return [ array|string ] - } - - Method [ public method persist ] { - - - Parameters [1] { - Parameter #0 [ string $key ] + Parameter #0 [ int $fd ] + Parameter #1 [ int $uid ] } - Return [ bool ] } - Method [ public method ttl ] { + Method [ public method after ] { - - Parameters [1] { - Parameter #0 [ string $key ] + - Parameters [2] { + Parameter #0 [ int $ms ] + Parameter #1 [ callable $callback ] } - - Return [ int ] + - Return [ int|bool ] } - Method [ public method pttl ] { + Method [ public method tick ] { - - Parameters [1] { - Parameter #0 [ string $key ] + - Parameters [2] { + Parameter #0 [ int $ms ] + Parameter #1 [ callable $callback ] } - - Return [ int ] + - Return [ int|bool ] } - Method [ public method zCard ] { + Method [ public method clearTimer ] { - - Parameters [1] { - Parameter #0 [ string $key ] + - Parameters [0] { } - - Return [ int ] + - Return [ bool ] } - Method [ public method zSize ] { + Method [ public method defer ] { - Parameters [1] { - Parameter #0 [ string $key ] + Parameter #0 [ callable $callback ] } - - Return [ int ] + - Return [ bool ] } + } + } - Method [ public method hLen ] { - - - Parameters [1] { - Parameter #0 [ string $key ] - } - - Return [ int ] - } + Class [ final class OpenSwoole\Server\Task ] { - Method [ public method hKeys ] { + - Constants [0] { + } - - Parameters [1] { - Parameter #0 [ string $key ] - } - - Return [ array ] - } + - Static properties [0] { + } - Method [ public method hVals ] { + - Static methods [1] { + Method [ static public method pack ] { - Parameters [1] { - Parameter #0 [ string $key ] + Parameter #0 [ mixed $data ] } - - Return [ array ] + - Return [ string|bool ] } + } - Method [ public method hGetAll ] { - - - Parameters [1] { - Parameter #0 [ string $key ] - } - - Return [ array ] - } + - Properties [5] { + Property [ public $data = NULL ] + Property [ public $dispatch_time = 0.0 ] + Property [ public $id = -1 ] + Property [ public $worker_id = -1 ] + Property [ public $flags = 0 ] + } - Method [ public method debug ] { + - Methods [1] { + Method [ public method finish ] { - Parameters [1] { - Parameter #0 [ string $key ] - } - - Return [ string ] - } - - Method [ public method restore ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $timeout ] - Parameter #2 [ string $value ] + Parameter #0 [ mixed $data ] } - Return [ bool ] } + } + } - Method [ public method dump ] { + Class [ class OpenSwoole\Server\Event ] { - - Parameters [1] { - Parameter #0 [ string $key ] - } - - Return [ string ] - } + - Constants [0] { + } - Method [ public method renameKey ] { + - Static properties [0] { + } - - Parameters [2] { - Parameter #0 [ string $key_src ] - Parameter #1 [ string $key_dst ] - } - - Return [ Swoole\Coroutine\Redis|bool ] - } + - Static methods [0] { + } - Method [ public method rename ] { + - Properties [4] { + Property [ public $reactor_id = 0 ] + Property [ public $fd = 0 ] + Property [ public $dispatch_time = 0.0 ] + Property [ public $data = NULL ] + } - - Parameters [2] { - Parameter #0 [ string $key_src ] - Parameter #1 [ string $key_dst ] - } - - Return [ Swoole\Coroutine\Redis|bool ] - } + - Methods [0] { + } + } - Method [ public method renameNx ] { + Class [ class OpenSwoole\Server\Packet ] { - - Parameters [2] { - Parameter #0 [ string $key_src ] - Parameter #1 [ string $key_dst ] - } - - Return [ Swoole\Coroutine\Redis|bool ] - } + - Constants [0] { + } - Method [ public method rpoplpush ] { + - Static properties [0] { + } - - Parameters [2] { - Parameter #0 [ string $src ] - Parameter #1 [ string $dst ] - } - - Return [ string ] - } + - Static methods [0] { + } - Method [ public method randomKey ] { + - Properties [5] { + Property [ public $server_socket = 0 ] + Property [ public $server_port = 0 ] + Property [ public $dispatch_time = 0.0 ] + Property [ public $address = NULL ] + Property [ public $port = 0 ] + } - - Parameters [0] { - } - - Return [ Swoole\Coroutine\Redis|string ] - } + - Methods [0] { + } + } - Method [ public method pfadd ] { + Class [ class OpenSwoole\Server\PipeMessage ] { - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ array $elements ] - } - - Return [ int ] - } + - Constants [0] { + } - Method [ public method pfcount ] { + - Static properties [0] { + } - - Parameters [1] { - Parameter #0 [ string $key ] - } - - Return [ int ] - } + - Static methods [0] { + } - Method [ public method pfmerge ] { + - Properties [3] { + Property [ public $source_worker_id = 0 ] + Property [ public $dispatch_time = 0.0 ] + Property [ public $data = NULL ] + } - - Parameters [2] { - Parameter #0 [ string $dst ] - Parameter #1 [ array $keys ] - } - - Return [ bool ] - } + - Methods [0] { + } + } - Method [ public method ping ] { + Class [ class OpenSwoole\Server\StatusInfo ] { - - Parameters [1] { - Parameter #0 [ ?string $key = null ] - } - - Return [ Swoole\Coroutine\Redis|string ] - } + - Constants [0] { + } - Method [ public method auth ] { + - Static properties [0] { + } - - Parameters [1] { - Parameter #0 [ mixed $credentials ] - } - - Return [ bool ] - } + - Static methods [0] { + } - Method [ public method unwatch ] { + - Properties [5] { + Property [ public $worker_id = 0 ] + Property [ public $worker_pid = 0 ] + Property [ public $status = 0 ] + Property [ public $exit_code = 0 ] + Property [ public $signal = 0 ] + } - - Parameters [0] { - } - - Return [ Swoole\Coroutine\Redis|bool ] - } + - Methods [0] { + } + } - Method [ public method watch ] { + Class [ class OpenSwoole\Server\TaskResult ] { - - Parameters [2] { - Parameter #0 [ array|string $key ] - Parameter #1 [ string ...$other_keys ] - } - - Return [ Swoole\Coroutine\Redis|bool ] - } + - Constants [0] { + } - Method [ public method save ] { + - Static properties [0] { + } - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method bgSave ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method lastSave ] { - - - Parameters [0] { - } - - Return [ int ] - } - - Method [ public method flushDB ] { - - - Parameters [1] { - Parameter #0 [ bool $async = false ] - } - - Return [ bool ] - } - - Method [ public method flushAll ] { - - - Parameters [1] { - Parameter #0 [ bool $async = false ] - } - - Return [ bool ] - } - - Method [ public method dbSize ] { - - - Parameters [0] { - } - - Return [ int ] - } - - Method [ public method bgrewriteaof ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method time ] { - - - Parameters [0] { - } - - Return [ array ] - } - - Method [ public method role ] { - - - Parameters [0] { - } - - Return [ mixed ] - } - - Method [ public method setRange ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $start ] - Parameter #2 [ string $value ] - } - - Return [ Swoole\Coroutine\Redis|int ] - } - - Method [ public method setNx ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ mixed $value ] - } - - Return [ Swoole\Coroutine\Redis|array|bool ] - } - - Method [ public method getSet ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ mixed $value ] - } - - Return [ Swoole\Coroutine\Redis|string ] - } - - Method [ public method append ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ mixed $value ] - } - - Return [ Swoole\Coroutine\Redis|int ] - } - - Method [ public method lPushx ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ mixed $value ] - } - - Return [ Swoole\Coroutine\Redis|int ] - } - - Method [ public method lPush ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ mixed $value ] - } - - Return [ Swoole\Coroutine\Redis|int ] - } - - Method [ public method rPush ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ mixed $value ] - } - - Return [ Swoole\Coroutine\Redis|int ] - } - - Method [ public method rPushx ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ mixed $value ] - } - - Return [ Swoole\Coroutine\Redis|int ] - } - - Method [ public method sContains ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ mixed $value ] - } - - Return [ bool ] - } - - Method [ public method sismember ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ mixed $value ] - } - - Return [ bool ] - } - - Method [ public method zScore ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ mixed $member ] - } - - Return [ float ] - } - - Method [ public method zRank ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ string $member ] - } - - Return [ int ] - } - - Method [ public method zRevRank ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ string $member ] - } - - Return [ int ] - } - - Method [ public method hGet ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ string $member ] - } - - Return [ string ] - } - - Method [ public method hMGet ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ array $keys ] - } - - Return [ array ] - } - - Method [ public method hExists ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ string $member ] - } - - Return [ bool ] - } - - Method [ public method publish ] { - - - Parameters [2] { - Parameter #0 [ string $channel ] - Parameter #1 [ string $message ] - } - - Return [ int ] - } - - Method [ public method zIncrBy ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ float $value ] - Parameter #2 [ mixed $member ] - } - - Return [ float ] - } - - Method [ public method zAdd ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $score ] - Parameter #2 [ string $value ] - } - - Return [ int ] - } - - Method [ public method zPopMin ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ ?int $value = null ] - } - - Return [ array ] - } - - Method [ public method zPopMax ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ ?int $value = null ] - } - - Return [ array ] - } - - Method [ public method bzPopMin ] { - - - Parameters [3] { - Parameter #0 [ array|string $key ] - Parameter #1 [ string|int $timeout_or_key ] - Parameter #2 [ mixed ...$extra_args ] - } - - Return [ array ] - } - - Method [ public method bzPopMax ] { - - - Parameters [3] { - Parameter #0 [ array|string $key ] - Parameter #1 [ string|int $timeout_or_key ] - Parameter #2 [ mixed ...$extra_args ] - } - - Return [ array ] - } - - Method [ public method zDeleteRangeByScore ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $start ] - Parameter #2 [ string $end ] - } - - Return [ int ] - } - - Method [ public method zRemRangeByScore ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $start ] - Parameter #2 [ string $end ] - } - - Return [ int ] - } - - Method [ public method zCount ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $start ] - Parameter #2 [ string $end ] - } - - Return [ int ] - } - - Method [ public method zRange ] { - - - Parameters [4] { - Parameter #0 [ string $key ] - Parameter #1 [ int $start ] - Parameter #2 [ int $end ] - Parameter #3 [ mixed $scores = null ] - } - - Return [ array ] - } - - Method [ public method zRevRange ] { - - - Parameters [4] { - Parameter #0 [ string $key ] - Parameter #1 [ int $start ] - Parameter #2 [ int $end ] - Parameter #3 [ mixed $scores = null ] - } - - Return [ array ] - } - - Method [ public method zRangeByScore ] { - - - Parameters [4] { - Parameter #0 [ string $key ] - Parameter #1 [ string $start ] - Parameter #2 [ string $end ] - Parameter #3 [ array $options = [] ] - } - - Return [ array ] - } - - Method [ public method zRevRangeByScore ] { - - - Parameters [4] { - Parameter #0 [ string $key ] - Parameter #1 [ string $start ] - Parameter #2 [ string $end ] - Parameter #3 [ array $options = [] ] - } - - Return [ array ] - } - - Method [ public method zRangeByLex ] { - - - Parameters [5] { - Parameter #0 [ string $key ] - Parameter #1 [ string $min ] - Parameter #2 [ string $max ] - Parameter #3 [ int $offset = -1 ] - Parameter #4 [ int $count = -1 ] - } - - Return [ array ] - } - - Method [ public method zRevRangeByLex ] { - - - Parameters [5] { - Parameter #0 [ string $key ] - Parameter #1 [ string $min ] - Parameter #2 [ string $max ] - Parameter #3 [ int $offset = -1 ] - Parameter #4 [ int $count = -1 ] - } - - Return [ array ] - } - - Method [ public method zInter ] { - - - Parameters [3] { - Parameter #0 [ array $keys ] - Parameter #1 [ array $weights = null ] - Parameter #2 [ array $options = null ] - } - - Return [ array ] - } - - Method [ public method zinterstore ] { - - - Parameters [4] { - Parameter #0 [ string $dst ] - Parameter #1 [ array $keys ] - Parameter #2 [ array $weights = null ] - Parameter #3 [ string $aggregate = null ] - } - - Return [ int ] - } - - Method [ public method zUnion ] { - - - Parameters [3] { - Parameter #0 [ array $keys ] - Parameter #1 [ array $weights = null ] - Parameter #2 [ array $options = null ] - } - - Return [ array ] - } - - Method [ public method zunionstore ] { - - - Parameters [4] { - Parameter #0 [ string $dst ] - Parameter #1 [ array $keys ] - Parameter #2 [ array $weights = null ] - Parameter #3 [ string $aggregate = null ] - } - - Return [ int ] - } - - Method [ public method incrBy ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ int $value ] - } - - Return [ Swoole\Coroutine\Redis|int ] - } - - Method [ public method hIncrBy ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $member ] - Parameter #2 [ int $value ] - } - - Return [ int ] - } - - Method [ public method incr ] { - - - Parameters [1] { - Parameter #0 [ string $key ] - } - - Return [ Swoole\Coroutine\Redis|int ] - } - - Method [ public method decrBy ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ int $value ] - } - - Return [ Swoole\Coroutine\Redis|int ] - } - - Method [ public method decr ] { - - - Parameters [1] { - Parameter #0 [ string $key ] - } - - Return [ Swoole\Coroutine\Redis|int ] - } - - Method [ public method getBit ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ int $idx ] - } - - Return [ Swoole\Coroutine\Redis|int ] - } - - Method [ public method lInsert ] { - - - Parameters [4] { - Parameter #0 [ string $key ] - Parameter #1 [ int $pos ] - Parameter #2 [ mixed $pivot ] - Parameter #3 [ mixed $value ] - } - - Return [ Swoole\Coroutine\Redis|int ] - } - - Method [ public method lGet ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ int $index ] - } - - Return [ string ] - } - - Method [ public method lIndex ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ int $index ] - } - - Return [ string ] - } - - Method [ public method setTimeout ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ int $timeout ] - } - - Return [ bool ] - } - - Method [ public method expire ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ int $timeout ] - } - - Return [ bool ] - } - - Method [ public method pexpire ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ int $timeout ] - } - - Return [ bool ] - } - - Method [ public method expireAt ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ int $timeout ] - } - - Return [ bool ] - } - - Method [ public method pexpireAt ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ int $timeout ] - } - - Return [ bool ] - } - - Method [ public method move ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ int $index ] - } - - Return [ bool ] - } - - Method [ public method select ] { - - - Parameters [1] { - Parameter #0 [ int $db ] - } - - Return [ bool ] - } - - Method [ public method getRange ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $start ] - Parameter #2 [ int $end ] - } - - Return [ Swoole\Coroutine\Redis|string ] - } - - Method [ public method listTrim ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $start ] - Parameter #2 [ int $end ] - } - - Return [ bool ] - } - - Method [ public method ltrim ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $start ] - Parameter #2 [ int $end ] - } - - Return [ bool ] - } - - Method [ public method lGetRange ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $start ] - Parameter #2 [ int $end ] - } - - Return [ array ] - } - - Method [ public method lRange ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $start ] - Parameter #2 [ int $end ] - } - - Return [ array ] - } - - Method [ public method lRem ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $value ] - Parameter #2 [ int $count = 0 ] - } - - Return [ bool ] - } - - Method [ public method lRemove ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $value ] - Parameter #2 [ int $count = 0 ] - } - - Return [ bool ] - } - - Method [ public method zDeleteRangeByRank ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $start ] - Parameter #2 [ int $end ] - } - - Return [ int ] - } - - Method [ public method zRemRangeByRank ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $start ] - Parameter #2 [ int $end ] - } - - Return [ int ] - } - - Method [ public method incrByFloat ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ float $value ] - } - - Return [ Swoole\Coroutine\Redis|int ] - } - - Method [ public method hIncrByFloat ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $member ] - Parameter #2 [ float $value ] - } - - Return [ float ] - } - - Method [ public method bitCount ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ int $start = 0 ] - Parameter #2 [ int $end = -1 ] - } - - Return [ Swoole\Coroutine\Redis|int ] - } - - Method [ public method bitOp ] { - - - Parameters [4] { - Parameter #0 [ string $operation ] - Parameter #1 [ string $deskey ] - Parameter #2 [ string $srckey ] - Parameter #3 [ string ...$other_keys ] - } - - Return [ int ] - } - - Method [ public method sAdd ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ mixed $value ] - Parameter #2 [ mixed ...$other_values ] - } - - Return [ int ] - } - - Method [ public method sMove ] { - - - Parameters [3] { - Parameter #0 [ string $src ] - Parameter #1 [ string $dst ] - Parameter #2 [ mixed $value ] - } - - Return [ bool ] - } - - Method [ public method sDiff ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ string ...$other_keys ] - } - - Return [ array ] - } - - Method [ public method sDiffStore ] { - - - Parameters [3] { - Parameter #0 [ string $dst ] - Parameter #1 [ string $key ] - Parameter #2 [ string ...$other_keys ] - } - - Return [ int ] - } - - Method [ public method sUnion ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ string ...$other_keys ] - } - - Return [ array ] - } - - Method [ public method sUnionStore ] { - - - Parameters [3] { - Parameter #0 [ string $dst ] - Parameter #1 [ string $key ] - Parameter #2 [ string ...$other_keys ] - } - - Return [ int ] - } - - Method [ public method sInter ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ string ...$other_keys ] - } - - Return [ array ] - } - - Method [ public method sInterStore ] { - - - Parameters [3] { - Parameter #0 [ string $dst ] - Parameter #1 [ string $key ] - Parameter #2 [ string ...$other_keys ] - } - - Return [ int ] - } - - Method [ public method sRemove ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $value ] - Parameter #2 [ string ...$other_values ] - } - - Return [ int ] - } - - Method [ public method srem ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $value ] - Parameter #2 [ string ...$other_values ] - } - - Return [ int ] - } - - Method [ public method zDelete ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $member ] - Parameter #2 [ string ...$other_members ] - } - - Return [ int ] - } - - Method [ public method zRemove ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $member ] - Parameter #2 [ string ...$other_members ] - } - - Return [ int ] - } - - Method [ public method zRem ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $member ] - Parameter #2 [ string ...$other_members ] - } - - Return [ int ] - } - - Method [ public method pSubscribe ] { - - - Parameters [1] { - Parameter #0 [ array $patterns ] - } - - Return [ void ] - } - - Method [ public method subscribe ] { - - - Parameters [2] { - Parameter #0 [ string $channel ] - Parameter #1 [ string ...$other_channels ] - } - - Return [ array ] - } - - Method [ public method unsubscribe ] { - - - Parameters [2] { - Parameter #0 [ string $channel ] - Parameter #1 [ string ...$other_channels ] - } - - Return [ array ] - } - - Method [ public method pUnSubscribe ] { - - - Parameters [1] { - Parameter #0 [ array $patterns ] - } - - Return [ array ] - } - - Method [ public method multi ] { - - - Parameters [1] { - Parameter #0 [ int $value = Redis::MULTI ] - } - - Return [ Swoole\Coroutine\Redis|bool ] - } - - Method [ public method exec ] { - - - Parameters [0] { - } - - Return [ array ] - } - - Method [ public method eval ] { - - - Parameters [3] { - Parameter #0 [ string $script ] - Parameter #1 [ array $keys = null ] - Parameter #2 [ int $num_keys = 0 ] - } - - Return [ mixed ] - } - - Method [ public method evalSha ] { - - - Parameters [3] { - Parameter #0 [ string $sha1 ] - Parameter #1 [ array $keys = null ] - Parameter #2 [ int $num_keys = 0 ] - } - - Return [ mixed ] - } - - Method [ public method script ] { - - - Parameters [2] { - Parameter #0 [ string $command ] - Parameter #1 [ mixed ...$args ] - } - - Return [ mixed ] - } - } - } - - Class [ class Swoole\Coroutine\Http2\Client ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [9] { - Property [ public $errCode = 0 ] - Property [ public $errMsg = 0 ] - Property [ public $sock = -1 ] - Property [ public $type = 0 ] - Property [ public $setting = NULL ] - Property [ public $connected = false ] - Property [ public $host = NULL ] - Property [ public $port = 0 ] - Property [ public $ssl = false ] - } - - - Methods [13] { - Method [ public method __construct ] { - - - Parameters [3] { - Parameter #0 [ string $host ] - Parameter #1 [ int $port = 80 ] - Parameter #2 [ bool $openSSL = false ] - } - } - - Method [ public method __destruct ] { - - - Parameters [0] { - } - } - - Method [ public method set ] { - - - Parameters [1] { - Parameter #0 [ array $options ] - } - - Return [ bool ] - } - - Method [ public method connect ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method stats ] { - - - Parameters [1] { - Parameter #0 [ string $key = "" ] - } - - Return [ array|int|bool ] - } - - Method [ public method isStreamExist ] { - - - Parameters [1] { - Parameter #0 [ int $streamId ] - } - - Return [ bool ] - } - - Method [ public method send ] { - - - Parameters [1] { - Parameter #0 [ Swoole\Http2\Request $request ] - } - - Return [ int|bool ] - } - - Method [ public method write ] { - - - Parameters [3] { - Parameter #0 [ int $streamId ] - Parameter #1 [ mixed $data ] - Parameter #2 [ bool $end = false ] - } - - Return [ bool ] - } - - Method [ public method recv ] { - - - Parameters [1] { - Parameter #0 [ float $timeout = 0 ] - } - - Return [ Swoole\Http2\Response|bool ] - } - - Method [ public method read ] { - - - Parameters [1] { - Parameter #0 [ float $timeout = 0 ] - } - - Return [ Swoole\Http2\Response|bool ] - } - - Method [ public method goaway ] { - - - Parameters [2] { - Parameter #0 [ int $errorCode = SWOOLE_HTTP2_ERROR_NO_ERROR ] - Parameter #1 [ string $debugData = "" ] - } - - Return [ bool ] - } - - Method [ public method ping ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method close ] { - - - Parameters [0] { - } - - Return [ bool ] - } - } - } - - Class [ class Swoole\Coroutine\Http2\Client\Exception extends Swoole\Exception implements Stringable, Throwable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [4] { - Property [ protected $message = '' ] - Property [ protected $code = 0 ] - Property [ protected string $file = '' ] - Property [ protected int $line = 0 ] - } - - - Methods [10] { - Method [ public method __construct ] { - - - Parameters [3] { - Parameter #0 [ string $message = "" ] - Parameter #1 [ int $code = 0 ] - Parameter #2 [ ?Throwable $previous = null ] - } - } - - Method [ public method __wakeup ] { - - - Parameters [0] { - } - - Tentative return [ void ] - } - - Method [ final public method getMessage ] { - - - Parameters [0] { - } - - Return [ string ] - } - - Method [ final public method getCode ] { - - - Parameters [0] { - } - } - - Method [ final public method getFile ] { - - - Parameters [0] { - } - - Return [ string ] - } - - Method [ final public method getLine ] { - - - Parameters [0] { - } - - Return [ int ] - } - - Method [ final public method getTrace ] { - - - Parameters [0] { - } - - Return [ array ] - } - - Method [ final public method getPrevious ] { - - - Parameters [0] { - } - - Return [ ?Throwable ] - } - - Method [ final public method getTraceAsString ] { - - - Parameters [0] { - } - - Return [ string ] - } - - Method [ public method __toString ] { - - - Parameters [0] { - } - - Return [ string ] - } - } - } - - Class [ class Swoole\Http2\Request ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [6] { - Property [ public $path = '/' ] - Property [ public $method = 'GET' ] - Property [ public $headers = NULL ] - Property [ public $cookies = NULL ] - Property [ public $data = '' ] - Property [ public $pipeline = false ] - } - - - Methods [0] { - } - } - - Class [ class Swoole\Http2\Response ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [8] { - Property [ public $streamId = 0 ] - Property [ public $errCode = 0 ] - Property [ public $statusCode = 0 ] - Property [ public $pipeline = false ] - Property [ public $headers = NULL ] - Property [ public $set_cookie_headers = NULL ] - Property [ public $cookies = NULL ] - Property [ public $data = NULL ] - } - - - Methods [0] { - } - } - - Class [ class Swoole\Server ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [26] { - Property [ private $onStart = NULL ] - Property [ private $onShutdown = NULL ] - Property [ private $onWorkerStart = NULL ] - Property [ private $onWorkerStop = NULL ] - Property [ private $onBeforeReload = NULL ] - Property [ private $onAfterReload = NULL ] - Property [ private $onWorkerExit = NULL ] - Property [ private $onWorkerError = NULL ] - Property [ private $onTask = NULL ] - Property [ private $onFinish = NULL ] - Property [ private $onManagerStart = NULL ] - Property [ private $onManagerStop = NULL ] - Property [ private $onPipeMessage = NULL ] - Property [ public $setting = NULL ] - Property [ public $connections = NULL ] - Property [ public $host = '' ] - Property [ public $port = 0 ] - Property [ public $type = 0 ] - Property [ public $mode = 0 ] - Property [ public $ports = NULL ] - Property [ public $master_pid = 0 ] - Property [ public $manager_pid = 0 ] - Property [ public $worker_id = -1 ] - Property [ public $taskworker = false ] - Property [ public $worker_pid = 0 ] - Property [ public $stats_timer = NULL ] - } - - - Methods [47] { - Method [ public method __construct ] { - - - Parameters [4] { - Parameter #0 [ string $host ] - Parameter #1 [ int $port = 0 ] - Parameter #2 [ int $mode = SWOOLE_PROCESS ] - Parameter #3 [ int $sockType = SWOOLE_SOCK_TCP ] - } - } - - Method [ public method __destruct ] { - - - Parameters [0] { - } - } - - Method [ public method listen ] { - - - Parameters [3] { - Parameter #0 [ string $host ] - Parameter #1 [ int $port ] - Parameter #2 [ int $sockType ] - } - - Return [ Swoole\Server\Port|false ] - } - - Method [ public method addlistener ] { - - - Parameters [3] { - Parameter #0 [ string $host ] - Parameter #1 [ int $port ] - Parameter #2 [ int $sockType ] - } - - Return [ Swoole\Server\Port|false ] - } - - Method [ public method on ] { - - - Parameters [2] { - Parameter #0 [ string $event ] - Parameter #1 [ callable $callback ] - } - - Return [ bool ] - } - - Method [ public method getCallback ] { - - - Parameters [1] { - Parameter #0 [ string $event ] - } - - Return [ mixed ] - } - - Method [ public method set ] { - - - Parameters [1] { - Parameter #0 [ array $settings ] - } - - Return [ bool ] - } - - Method [ public method start ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method send ] { - - - Parameters [3] { - Parameter #0 [ string|int $fd ] - Parameter #1 [ mixed $data ] - Parameter #2 [ int $serverSocket = -1 ] - } - - Return [ bool ] - } - - Method [ public method sendto ] { - - - Parameters [4] { - Parameter #0 [ string $ip ] - Parameter #1 [ int $port ] - Parameter #2 [ string $data ] - Parameter #3 [ int $serverSocket = -1 ] - } - - Return [ bool ] - } - - Method [ public method sendwait ] { - - - Parameters [2] { - Parameter #0 [ int $fd ] - Parameter #1 [ string $data ] - } - - Return [ bool ] - } - - Method [ public method exists ] { - - - Parameters [1] { - Parameter #0 [ int $fd ] - } - - Return [ bool ] - } - - Method [ public method exist ] { - - - Parameters [1] { - Parameter #0 [ int $fd ] - } - - Return [ bool ] - } - - Method [ public method protect ] { - - - Parameters [2] { - Parameter #0 [ int $fd ] - Parameter #1 [ bool $isProtected = true ] - } - - Return [ bool ] - } - - Method [ public method sendfile ] { - - - Parameters [4] { - Parameter #0 [ int $fd ] - Parameter #1 [ string $fileName ] - Parameter #2 [ int $offset = 0 ] - Parameter #3 [ int $length = 0 ] - } - - Return [ bool ] - } - - Method [ public method close ] { - - - Parameters [2] { - Parameter #0 [ int $fd ] - Parameter #1 [ bool $reset = false ] - } - - Return [ bool ] - } - - Method [ public method confirm ] { - - - Parameters [1] { - Parameter #0 [ int $fd ] - } - - Return [ bool ] - } - - Method [ public method pause ] { - - - Parameters [1] { - Parameter #0 [ int $fd ] - } - - Return [ bool ] - } - - Method [ public method resume ] { - - - Parameters [1] { - Parameter #0 [ int $fd ] - } - - Return [ bool ] - } - - Method [ public method task ] { - - - Parameters [3] { - Parameter #0 [ mixed $data ] - Parameter #1 [ int $workerId = -1 ] - Parameter #2 [ ?callable $finishCallback = null ] - } - - Return [ int|bool ] - } - - Method [ public method taskwait ] { - - - Parameters [3] { - Parameter #0 [ mixed $data ] - Parameter #1 [ float $timeout = 0.5 ] - Parameter #2 [ int $workerId = -1 ] - } - - Return [ string|bool ] - } - - Method [ public method taskWaitMulti ] { - - - Parameters [2] { - Parameter #0 [ array $tasks ] - Parameter #1 [ float $timeout = 0.5 ] - } - - Return [ array|bool ] - } - - Method [ public method taskCo ] { - - - Parameters [2] { - Parameter #0 [ array $tasks ] - Parameter #1 [ float $timeout = 0.5 ] - } - - Return [ array|bool ] - } - - Method [ public method finish ] { - - - Parameters [1] { - Parameter #0 [ mixed $data ] - } - - Return [ bool ] - } - - Method [ public method reload ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method shutdown ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method stop ] { - - - Parameters [2] { - Parameter #0 [ int $workerId ] - Parameter #1 [ bool $waitEvent = false ] - } - - Return [ bool ] - } - - Method [ public method getLastError ] { - - - Parameters [0] { - } - - Return [ int ] - } - - Method [ public method heartbeat ] { - - - Parameters [1] { - Parameter #0 [ bool $closeConn = false ] - } - - Return [ array|false ] - } - - Method [ public method getClientInfo ] { - - - Parameters [3] { - Parameter #0 [ int $fd ] - Parameter #1 [ int $reactorId = -1 ] - Parameter #2 [ bool $noCheckConn = false ] - } - - Return [ array|bool ] - } - - Method [ public method getClientList ] { - - - Parameters [2] { - Parameter #0 [ int $startFd = 0 ] - Parameter #1 [ int $pageSize = 10 ] - } - - Return [ array|bool ] - } - - Method [ public method getWorkerId ] { - - - Parameters [0] { - } - - Return [ int ] - } - - Method [ public method getWorkerPid ] { - - - Parameters [1] { - Parameter #0 [ int $workerId = -1 ] - } - - Return [ int|false ] - } - - Method [ public method getWorkerStatus ] { - - - Parameters [1] { - Parameter #0 [ int $workerId = -1 ] - } - - Return [ int|bool ] - } - - Method [ public method getManagerPid ] { - - - Parameters [0] { - } - - Return [ int ] - } - - Method [ public method getMasterPid ] { - - - Parameters [0] { - } - - Return [ int ] - } - - Method [ public method connection_info ] { - - - Parameters [3] { - Parameter #0 [ int $fd ] - Parameter #1 [ int $reactorId = -1 ] - Parameter #2 [ bool $noCheckConn = false ] - } - - Return [ array|bool ] - } - - Method [ public method connection_list ] { - - - Parameters [2] { - Parameter #0 [ int $startFd = 0 ] - Parameter #1 [ int $pageSize = 10 ] - } - - Return [ array|bool ] - } - - Method [ public method sendMessage ] { - - - Parameters [2] { - Parameter #0 [ mixed $message ] - Parameter #1 [ int $workerId ] - } - - Return [ bool ] - } - - Method [ public method addProcess ] { - - - Parameters [1] { - Parameter #0 [ Swoole\Process $process ] - } - - Return [ int|bool ] - } - - Method [ public method stats ] { - - - Parameters [1] { - Parameter #0 [ int $mode = 0 ] - } - - Return [ array|string|false ] - } - - Method [ public method getSocket ] { - - - Parameters [1] { - Parameter #0 [ int $port = -1 ] - } - - Return [ mixed ] - } - - Method [ public method bind ] { - - - Parameters [2] { - Parameter #0 [ int $fd ] - Parameter #1 [ int $uid ] - } - - Return [ bool ] - } - - Method [ public method after ] { - - - Parameters [2] { - Parameter #0 [ int $ms ] - Parameter #1 [ callable $callback ] - } - - Return [ int|bool ] - } - - Method [ public method tick ] { - - - Parameters [2] { - Parameter #0 [ int $ms ] - Parameter #1 [ callable $callback ] - } - - Return [ int|bool ] - } - - Method [ public method clearTimer ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method defer ] { - - - Parameters [1] { - Parameter #0 [ callable $callback ] - } - - Return [ bool ] - } - } - } - - Class [ final class Swoole\Server\Task ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [1] { - Method [ static public method pack ] { - - - Parameters [1] { - Parameter #0 [ mixed $data ] - } - - Return [ string|bool ] - } - } - - - Properties [5] { - Property [ public $data = NULL ] - Property [ public $dispatch_time = 0.0 ] - Property [ public $id = -1 ] - Property [ public $worker_id = -1 ] - Property [ public $flags = 0 ] - } - - - Methods [1] { - Method [ public method finish ] { - - - Parameters [1] { - Parameter #0 [ mixed $data ] - } - - Return [ bool ] - } - } - } - - Class [ class Swoole\Server\Event ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [4] { - Property [ public $reactor_id = 0 ] - Property [ public $fd = 0 ] - Property [ public $dispatch_time = 0.0 ] - Property [ public $data = NULL ] - } - - - Methods [0] { - } - } - - Class [ class Swoole\Server\Packet ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [5] { - Property [ public $server_socket = 0 ] - Property [ public $server_port = 0 ] - Property [ public $dispatch_time = 0.0 ] - Property [ public $address = NULL ] - Property [ public $port = 0 ] - } - - - Methods [0] { - } - } - - Class [ class Swoole\Server\PipeMessage ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [3] { - Property [ public $source_worker_id = 0 ] - Property [ public $dispatch_time = 0.0 ] - Property [ public $data = NULL ] - } - - - Methods [0] { - } - } - - Class [ class Swoole\Server\StatusInfo ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [5] { - Property [ public $worker_id = 0 ] - Property [ public $worker_pid = 0 ] - Property [ public $status = 0 ] - Property [ public $exit_code = 0 ] - Property [ public $signal = 0 ] - } - - - Methods [0] { - } - } - - Class [ class Swoole\Server\TaskResult ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [4] { - Property [ public $task_id = 0 ] - Property [ public $task_worker_id = 0 ] - Property [ public $dispatch_time = 0.0 ] - Property [ public $data = NULL ] - } - - - Methods [0] { - } - } - - Class [ class Swoole\Connection\Iterator implements Iterator, Traversable, ArrayAccess, Countable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [0] { - } - - - Methods [12] { - Method [ public method __construct ] { - - - Parameters [0] { - } - } - - Method [ public method __destruct ] { - - - Parameters [0] { - } - } - - Method [ public method rewind ] { - - - Parameters [0] { - } - - Tentative return [ void ] - } - - Method [ public method next ] { - - - Parameters [0] { - } - - Tentative return [ void ] - } - - Method [ public method current ] { - - - Parameters [0] { - } - - Tentative return [ mixed ] - } - - Method [ public method key ] { - - - Parameters [0] { - } - - Tentative return [ mixed ] - } - - Method [ public method valid ] { - - - Parameters [0] { - } - - Tentative return [ bool ] - } - - Method [ public method count ] { - - - Parameters [0] { - } - - Tentative return [ int ] - } - - Method [ public method offsetExists ] { - - - Parameters [1] { - Parameter #0 [ mixed $key ] - } - - Tentative return [ bool ] - } - - Method [ public method offsetGet ] { - - - Parameters [1] { - Parameter #0 [ mixed $key ] - } - - Tentative return [ mixed ] - } - - Method [ public method offsetSet ] { - - - Parameters [2] { - Parameter #0 [ mixed $key ] - Parameter #1 [ mixed $value ] - } - - Tentative return [ void ] - } - - Method [ public method offsetUnset ] { - - - Parameters [1] { - Parameter #0 [ mixed $key ] - } - - Tentative return [ void ] - } - } - } - - Class [ class Swoole\Server\Port ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [17] { - Property [ private $onConnect = NULL ] - Property [ private $onReceive = NULL ] - Property [ private $onClose = NULL ] - Property [ private $onPacket = NULL ] - Property [ private $onBufferFull = NULL ] - Property [ private $onBufferEmpty = NULL ] - Property [ private $onRequest = NULL ] - Property [ private $onHandShake = NULL ] - Property [ private $onOpen = NULL ] - Property [ private $onMessage = NULL ] - Property [ private $onDisconnect = NULL ] - Property [ public $host = NULL ] - Property [ public $port = 0 ] - Property [ public $type = 0 ] - Property [ public $sock = -1 ] - Property [ public $setting = NULL ] - Property [ public $connections = NULL ] - } - - - Methods [6] { - Method [ private method __construct ] { - - - Parameters [0] { - } - } - - Method [ public method __destruct ] { - - - Parameters [0] { - } - } - - Method [ public method set ] { - - - Parameters [1] { - Parameter #0 [ array $settings ] - } - - Return [ ?bool ] - } - - Method [ public method on ] { - - - Parameters [2] { - Parameter #0 [ string $event ] - Parameter #1 [ callable $callback ] - } - - Return [ bool ] - } - - Method [ public method getCallback ] { - - - Parameters [1] { - Parameter #0 [ string $event ] - } - - Return [ ?callable ] - } - - Method [ public method getSocket ] { - - - Parameters [0] { - } - - Return [ mixed ] - } - } - } - - Class [ class Swoole\Http\Request ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [1] { - Method [ static public method create ] { - - - Parameters [1] { - Parameter #0 [ ?array $options ] - } - - Return [ Swoole\Http\Request|bool ] - } - } - - - Properties [9] { - Property [ public $fd = 0 ] - Property [ public $streamId = 0 ] - Property [ public $header = NULL ] - Property [ public $server = NULL ] - Property [ public $cookie = NULL ] - Property [ public $get = NULL ] - Property [ public $files = NULL ] - Property [ public $post = NULL ] - Property [ public $tmpfiles = NULL ] - } - - - Methods [7] { - Method [ public method rawContent ] { - - - Parameters [0] { - } - - Return [ string|bool ] - } - - Method [ public method getContent ] { - - - Parameters [0] { - } - - Return [ string|bool ] - } - - Method [ public method getData ] { - - - Parameters [0] { - } - - Return [ string|bool ] - } - - Method [ public method parse ] { - - - Parameters [1] { - Parameter #0 [ string $data ] - } - - Return [ int|false ] - } - - Method [ public method isCompleted ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method getMethod ] { - - - Parameters [0] { - } - - Return [ string|bool ] - } - - Method [ public method __destruct ] { - - - Parameters [0] { - } - } - } - } - - Class [ class Swoole\Http\Response ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [1] { - Method [ static public method create ] { - - - Parameters [2] { - Parameter #0 [ mixed $server = -1 ] - Parameter #1 [ int $fd = -1 ] - } - - Return [ Swoole\Http\Response|bool ] - } - } - - - Properties [5] { - Property [ public $fd = 0 ] - Property [ public $socket = NULL ] - Property [ public $header = NULL ] - Property [ public $cookie = NULL ] - Property [ public $trailer = NULL ] + - Static methods [0] { } - - Methods [22] { - Method [ public method initHeader ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method isWritable ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method cookie ] { - - - Parameters [9] { - Parameter #0 [ string $key ] - Parameter #1 [ ?string $value = null ] - Parameter #2 [ int $expire = 0 ] - Parameter #3 [ string $path = "" ] - Parameter #4 [ string $domain = "" ] - Parameter #5 [ bool $secure = false ] - Parameter #6 [ bool $httpOnly = false ] - Parameter #7 [ string $sameSite = "" ] - Parameter #8 [ string $priority = "" ] - } - - Return [ bool ] - } - - Method [ public method setCookie ] { - - - Parameters [9] { - Parameter #0 [ string $key ] - Parameter #1 [ ?string $value = null ] - Parameter #2 [ int $expire = 0 ] - Parameter #3 [ string $path = "" ] - Parameter #4 [ string $domain = "" ] - Parameter #5 [ bool $secure = false ] - Parameter #6 [ bool $httpOnly = false ] - Parameter #7 [ string $sameSite = "" ] - Parameter #8 [ string $priority = "" ] - } - - Return [ bool ] - } - - Method [ public method rawcookie ] { - - - Parameters [9] { - Parameter #0 [ string $key ] - Parameter #1 [ ?string $value = null ] - Parameter #2 [ int $expire = 0 ] - Parameter #3 [ string $path = "" ] - Parameter #4 [ string $domain = "" ] - Parameter #5 [ bool $secure = false ] - Parameter #6 [ bool $httpOnly = false ] - Parameter #7 [ string $sameSite = "" ] - Parameter #8 [ string $priority = "" ] - } - - Return [ bool ] - } - - Method [ public method status ] { - - - Parameters [2] { - Parameter #0 [ int $statusCode ] - Parameter #1 [ string $reason = "" ] - } - - Return [ bool ] - } - - Method [ public method setStatusCode ] { - - - Parameters [2] { - Parameter #0 [ int $statusCode ] - Parameter #1 [ string $reason = "" ] - } - - Return [ bool ] - } - - Method [ public method header ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $value ] - Parameter #2 [ bool $format = true ] - } - - Return [ bool ] - } - - Method [ public method setHeader ] { - - - Parameters [3] { - Parameter #0 [ string $key ] - Parameter #1 [ string $value ] - Parameter #2 [ bool $format = true ] - } - - Return [ bool ] - } - - Method [ public method write ] { - - - Parameters [1] { - Parameter #0 [ string $data ] - } - - Return [ bool ] - } - - Method [ public method end ] { - - - Parameters [1] { - Parameter #0 [ ?string $data = null ] - } - - Return [ bool ] - } - - Method [ public method sendfile ] { - - - Parameters [3] { - Parameter #0 [ string $fileName ] - Parameter #1 [ int $offset = 0 ] - Parameter #2 [ int $length = 0 ] - } - - Return [ bool ] - } - - Method [ public method redirect ] { - - - Parameters [2] { - Parameter #0 [ string $url ] - Parameter #1 [ int $status_code = 302 ] - } - - Return [ ?bool ] - } - - Method [ public method detach ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method trailer ] { - - - Parameters [2] { - Parameter #0 [ string $key ] - Parameter #1 [ string $value ] - } - - Return [ bool ] - } - - Method [ public method ping ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method goaway ] { - - - Parameters [2] { - Parameter #0 [ int $errorCode = SWOOLE_HTTP2_ERROR_NO_ERROR ] - Parameter #1 [ string $debugData = "" ] - } - - Return [ bool ] - } - - Method [ public method upgrade ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method push ] { - - - Parameters [3] { - Parameter #0 [ Swoole\WebSocket\Frame|string $data ] - Parameter #1 [ int $opcode = SWOOLE_WEBSOCKET_OPCODE_TEXT ] - Parameter #2 [ int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] - } - - Return [ bool ] - } - - Method [ public method recv ] { - - - Parameters [1] { - Parameter #0 [ float $timeout = 0 ] - } - - Return [ Swoole\WebSocket\Frame|string|bool ] - } - - Method [ public method close ] { - - - Parameters [0] { - } - - Return [ bool ] - } - - Method [ public method __destruct ] { + - Properties [4] { + Property [ public $task_id = 0 ] + Property [ public $task_worker_id = 0 ] + Property [ public $dispatch_time = 0.0 ] + Property [ public $data = NULL ] + } - - Parameters [0] { - } - } + - Methods [0] { } } - Class [ class Swoole\Http\Server extends Swoole\Server ] { + Class [ class OpenSwoole\Connection\Iterator implements Iterator, Traversable, ArrayAccess, Countable ] { - Constants [0] { } @@ -7935,492 +6008,503 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Static methods [0] { } - - Properties [13] { - Property [ public $setting = NULL ] - Property [ public $connections = NULL ] - Property [ public $host = '' ] - Property [ public $port = 0 ] - Property [ public $type = 0 ] - Property [ public $mode = 0 ] - Property [ public $ports = NULL ] - Property [ public $master_pid = 0 ] - Property [ public $manager_pid = 0 ] - Property [ public $worker_id = -1 ] - Property [ public $taskworker = false ] - Property [ public $worker_pid = 0 ] - Property [ public $stats_timer = NULL ] + - Properties [0] { } - - Methods [47] { - Method [ public method __construct ] { + - Methods [12] { + Method [ public method __construct ] { - - Parameters [4] { - Parameter #0 [ string $host ] - Parameter #1 [ int $port = 0 ] - Parameter #2 [ int $mode = SWOOLE_PROCESS ] - Parameter #3 [ int $sockType = SWOOLE_SOCK_TCP ] + - Parameters [0] { } } - Method [ public method __destruct ] { + Method [ public method __destruct ] { - Parameters [0] { } } - Method [ public method listen ] { + Method [ public method rewind ] { - - Parameters [3] { - Parameter #0 [ string $host ] - Parameter #1 [ int $port ] - Parameter #2 [ int $sockType ] + - Parameters [0] { } - - Return [ Swoole\Server\Port|false ] + - Tentative return [ void ] } - Method [ public method addlistener ] { + Method [ public method next ] { - - Parameters [3] { - Parameter #0 [ string $host ] - Parameter #1 [ int $port ] - Parameter #2 [ int $sockType ] + - Parameters [0] { } - - Return [ Swoole\Server\Port|false ] + - Tentative return [ void ] } - Method [ public method on ] { + Method [ public method current ] { - - Parameters [2] { - Parameter #0 [ string $event ] - Parameter #1 [ callable $callback ] + - Parameters [0] { } - - Return [ bool ] + - Tentative return [ mixed ] } - Method [ public method getCallback ] { + Method [ public method key ] { - - Parameters [1] { - Parameter #0 [ string $event ] + - Parameters [0] { } - - Return [ mixed ] + - Tentative return [ mixed ] } - Method [ public method set ] { + Method [ public method valid ] { - - Parameters [1] { - Parameter #0 [ array $settings ] + - Parameters [0] { } - - Return [ bool ] + - Tentative return [ bool ] } - Method [ public method start ] { + Method [ public method count ] { - Parameters [0] { } - - Return [ bool ] + - Tentative return [ int ] } - Method [ public method send ] { + Method [ public method offsetExists ] { - - Parameters [3] { - Parameter #0 [ string|int $fd ] - Parameter #1 [ mixed $data ] - Parameter #2 [ int $serverSocket = -1 ] + - Parameters [1] { + Parameter #0 [ mixed $key ] } - - Return [ bool ] + - Tentative return [ bool ] } - Method [ public method sendto ] { + Method [ public method offsetGet ] { - - Parameters [4] { - Parameter #0 [ string $ip ] - Parameter #1 [ int $port ] - Parameter #2 [ string $data ] - Parameter #3 [ int $serverSocket = -1 ] + - Parameters [1] { + Parameter #0 [ mixed $key ] } - - Return [ bool ] + - Tentative return [ mixed ] } - Method [ public method sendwait ] { + Method [ public method offsetSet ] { - Parameters [2] { - Parameter #0 [ int $fd ] - Parameter #1 [ string $data ] + Parameter #0 [ mixed $key ] + Parameter #1 [ mixed $value ] } - - Return [ bool ] + - Tentative return [ void ] } - Method [ public method exists ] { + Method [ public method offsetUnset ] { - Parameters [1] { - Parameter #0 [ int $fd ] + Parameter #0 [ mixed $key ] } - - Return [ bool ] + - Tentative return [ void ] } + } + } - Method [ public method exist ] { + Class [ class OpenSwoole\Server\Port ] { - - Parameters [1] { - Parameter #0 [ int $fd ] - } - - Return [ bool ] - } + - Constants [0] { + } - Method [ public method protect ] { + - Static properties [0] { + } - - Parameters [2] { - Parameter #0 [ int $fd ] - Parameter #1 [ bool $isProtected = true ] - } - - Return [ bool ] - } + - Static methods [0] { + } + + - Properties [17] { + Property [ private $onConnect = NULL ] + Property [ private $onReceive = NULL ] + Property [ private $onClose = NULL ] + Property [ private $onPacket = NULL ] + Property [ private $onBufferFull = NULL ] + Property [ private $onBufferEmpty = NULL ] + Property [ private $onRequest = NULL ] + Property [ private $onHandShake = NULL ] + Property [ private $onOpen = NULL ] + Property [ private $onMessage = NULL ] + Property [ private $onDisconnect = NULL ] + Property [ public $host = NULL ] + Property [ public $port = 0 ] + Property [ public $type = 0 ] + Property [ public $sock = -1 ] + Property [ public $setting = NULL ] + Property [ public $connections = NULL ] + } - Method [ public method sendfile ] { + - Methods [8] { + Method [ private method __construct ] { - - Parameters [4] { - Parameter #0 [ int $fd ] - Parameter #1 [ string $fileName ] - Parameter #2 [ int $offset = 0 ] - Parameter #3 [ int $length = 0 ] + - Parameters [0] { } - - Return [ bool ] } - Method [ public method close ] { + Method [ public method __destruct ] { - - Parameters [2] { - Parameter #0 [ int $fd ] - Parameter #1 [ bool $reset = false ] + - Parameters [0] { } - - Return [ bool ] } - Method [ public method confirm ] { + Method [ public method set ] { - Parameters [1] { - Parameter #0 [ int $fd ] + Parameter #0 [ array $settings ] } - - Return [ bool ] + - Return [ ?bool ] } - Method [ public method pause ] { + Method [ public method on ] { - - Parameters [1] { - Parameter #0 [ int $fd ] + - Parameters [2] { + Parameter #0 [ string $event ] + Parameter #1 [ callable $callback ] } - Return [ bool ] } - Method [ public method resume ] { + Method [ public method handle ] { - Parameters [1] { - Parameter #0 [ int $fd ] + Parameter #0 [ callable $callback ] } - Return [ bool ] } - Method [ public method task ] { + Method [ public method setHandler ] { - - Parameters [3] { - Parameter #0 [ mixed $data ] - Parameter #1 [ int $workerId = -1 ] - Parameter #2 [ ?callable $finishCallback = null ] + - Parameters [1] { + Parameter #0 [ mixed $handler ] } - - Return [ int|bool ] + - Return [ bool ] } - Method [ public method taskwait ] { + Method [ public method getCallback ] { - - Parameters [3] { - Parameter #0 [ mixed $data ] - Parameter #1 [ float $timeout = 0.5 ] - Parameter #2 [ int $workerId = -1 ] + - Parameters [1] { + Parameter #0 [ string $event ] } - - Return [ string|bool ] + - Return [ ?callable ] } - Method [ public method taskWaitMulti ] { + Method [ public method getSocket ] { - - Parameters [2] { - Parameter #0 [ array $tasks ] - Parameter #1 [ float $timeout = 0.5 ] + - Parameters [0] { } - - Return [ array|bool ] + - Return [ mixed ] } + } + } - Method [ public method taskCo ] { + Class [ class OpenSwoole\Http\Request ] { - - Parameters [2] { - Parameter #0 [ array $tasks ] - Parameter #1 [ float $timeout = 0.5 ] - } - - Return [ array|bool ] - } + - Constants [0] { + } - Method [ public method finish ] { + - Static properties [0] { + } + + - Static methods [1] { + Method [ static public method create ] { - Parameters [1] { - Parameter #0 [ mixed $data ] + Parameter #0 [ ?array $options ] } - - Return [ bool ] + - Return [ Swoole\Http\Request|bool ] } + } + + - Properties [9] { + Property [ public $fd = 0 ] + Property [ public $streamId = 0 ] + Property [ public $header = NULL ] + Property [ public $server = NULL ] + Property [ public $cookie = NULL ] + Property [ public $get = NULL ] + Property [ public $files = NULL ] + Property [ public $post = NULL ] + Property [ public $tmpfiles = NULL ] + } - Method [ public method reload ] { + - Methods [7] { + Method [ public method rawContent ] { - Parameters [0] { } - - Return [ bool ] + - Return [ string|bool ] } - Method [ public method shutdown ] { + Method [ public method getContent ] { - Parameters [0] { } - - Return [ bool ] + - Return [ string|bool ] } - Method [ public method stop ] { + Method [ public method getData ] { - - Parameters [2] { - Parameter #0 [ int $workerId ] - Parameter #1 [ bool $waitEvent = false ] + - Parameters [0] { } - - Return [ bool ] + - Return [ string|bool ] } - Method [ public method getLastError ] { + Method [ public method parse ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ string $data ] } - - Return [ int ] + - Return [ int|false ] } - Method [ public method heartbeat ] { + Method [ public method isCompleted ] { - - Parameters [1] { - Parameter #0 [ bool $closeConn = false ] + - Parameters [0] { } - - Return [ array|false ] + - Return [ bool ] } - Method [ public method getClientInfo ] { + Method [ public method getMethod ] { - - Parameters [3] { - Parameter #0 [ int $fd ] - Parameter #1 [ int $reactorId = -1 ] - Parameter #2 [ bool $noCheckConn = false ] + - Parameters [0] { } - - Return [ array|bool ] + - Return [ string|bool ] } - Method [ public method getClientList ] { + Method [ public method __destruct ] { - - Parameters [2] { - Parameter #0 [ int $startFd = 0 ] - Parameter #1 [ int $pageSize = 10 ] + - Parameters [0] { } - - Return [ array|bool ] } + } + } - Method [ public method getWorkerId ] { + Class [ class OpenSwoole\Http\Response ] { - - Parameters [0] { + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ static public method create ] { + + - Parameters [2] { + Parameter #0 [ mixed $server = -1 ] + Parameter #1 [ int $fd = -1 ] } - - Return [ int ] + - Return [ OpenSwoole\Http\Response|bool ] } + } - Method [ public method getWorkerPid ] { + - Properties [5] { + Property [ public $fd = 0 ] + Property [ public $socket = NULL ] + Property [ public $header = NULL ] + Property [ public $cookie = NULL ] + Property [ public $trailer = NULL ] + } - - Parameters [1] { - Parameter #0 [ int $workerId = -1 ] + - Methods [22] { + Method [ public method initHeader ] { + + - Parameters [0] { } - - Return [ int|false ] + - Return [ bool ] } - Method [ public method getWorkerStatus ] { + Method [ public method isWritable ] { - - Parameters [1] { - Parameter #0 [ int $workerId = -1 ] + - Parameters [0] { } - - Return [ int|bool ] + - Return [ bool ] } - Method [ public method getManagerPid ] { + Method [ public method cookie ] { - - Parameters [0] { + - Parameters [9] { + Parameter #0 [ string $key ] + Parameter #1 [ ?string $value = null ] + Parameter #2 [ int $expire = 0 ] + Parameter #3 [ string $path = "" ] + Parameter #4 [ string $domain = "" ] + Parameter #5 [ bool $secure = false ] + Parameter #6 [ bool $httpOnly = false ] + Parameter #7 [ string $sameSite = "" ] + Parameter #8 [ string $priority = "" ] } - - Return [ int ] + - Return [ bool ] } - Method [ public method getMasterPid ] { + Method [ public method setCookie ] { - - Parameters [0] { + - Parameters [9] { + Parameter #0 [ string $key ] + Parameter #1 [ ?string $value = null ] + Parameter #2 [ int $expire = 0 ] + Parameter #3 [ string $path = "" ] + Parameter #4 [ string $domain = "" ] + Parameter #5 [ bool $secure = false ] + Parameter #6 [ bool $httpOnly = false ] + Parameter #7 [ string $sameSite = "" ] + Parameter #8 [ string $priority = "" ] } - - Return [ int ] + - Return [ bool ] } - Method [ public method connection_info ] { + Method [ public method rawcookie ] { - - Parameters [3] { - Parameter #0 [ int $fd ] - Parameter #1 [ int $reactorId = -1 ] - Parameter #2 [ bool $noCheckConn = false ] + - Parameters [9] { + Parameter #0 [ string $key ] + Parameter #1 [ ?string $value = null ] + Parameter #2 [ int $expire = 0 ] + Parameter #3 [ string $path = "" ] + Parameter #4 [ string $domain = "" ] + Parameter #5 [ bool $secure = false ] + Parameter #6 [ bool $httpOnly = false ] + Parameter #7 [ string $sameSite = "" ] + Parameter #8 [ string $priority = "" ] } - - Return [ array|bool ] + - Return [ bool ] } - Method [ public method connection_list ] { + Method [ public method status ] { - Parameters [2] { - Parameter #0 [ int $startFd = 0 ] - Parameter #1 [ int $pageSize = 10 ] + Parameter #0 [ int $statusCode ] + Parameter #1 [ string $reason = "" ] } - - Return [ array|bool ] + - Return [ bool ] } - Method [ public method sendMessage ] { + Method [ public method setStatusCode ] { - Parameters [2] { - Parameter #0 [ mixed $message ] - Parameter #1 [ int $workerId ] + Parameter #0 [ int $statusCode ] + Parameter #1 [ string $reason = "" ] } - Return [ bool ] } - Method [ public method addProcess ] { + Method [ public method header ] { - - Parameters [1] { - Parameter #0 [ Swoole\Process $process ] + - Parameters [3] { + Parameter #0 [ string $key ] + Parameter #1 [ string $value ] + Parameter #2 [ bool $format = true ] } - - Return [ int|bool ] + - Return [ bool ] } - Method [ public method stats ] { + Method [ public method setHeader ] { - - Parameters [1] { - Parameter #0 [ int $mode = 0 ] + - Parameters [3] { + Parameter #0 [ string $key ] + Parameter #1 [ string $value ] + Parameter #2 [ bool $format = true ] } - - Return [ array|string|false ] + - Return [ bool ] } - Method [ public method getSocket ] { + Method [ public method write ] { - Parameters [1] { - Parameter #0 [ int $port = -1 ] + Parameter #0 [ string $data ] } - - Return [ mixed ] + - Return [ bool ] } - Method [ public method bind ] { + Method [ public method end ] { - - Parameters [2] { - Parameter #0 [ int $fd ] - Parameter #1 [ int $uid ] + - Parameters [1] { + Parameter #0 [ ?string $data = null ] } - Return [ bool ] } - Method [ public method after ] { + Method [ public method sendfile ] { - - Parameters [2] { - Parameter #0 [ int $ms ] - Parameter #1 [ callable $callback ] + - Parameters [3] { + Parameter #0 [ string $fileName ] + Parameter #1 [ int $offset = 0 ] + Parameter #2 [ int $length = 0 ] } - - Return [ int|bool ] + - Return [ bool ] } - Method [ public method tick ] { + Method [ public method redirect ] { - Parameters [2] { - Parameter #0 [ int $ms ] - Parameter #1 [ callable $callback ] + Parameter #0 [ string $url ] + Parameter #1 [ int $status_code = 302 ] } - - Return [ int|bool ] + - Return [ ?bool ] } - Method [ public method clearTimer ] { + Method [ public method detach ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method defer ] { + Method [ public method trailer ] { - - Parameters [1] { - Parameter #0 [ callable $callback ] + - Parameters [2] { + Parameter #0 [ string $key ] + Parameter #1 [ string $value ] } - Return [ bool ] } - } - } - - Class [ final class Swoole\Coroutine\Http\Server ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [7] { - Property [ public $fd = -1 ] - Property [ public $host = NULL ] - Property [ public $port = -1 ] - Property [ public $ssl = false ] - Property [ public $settings = NULL ] - Property [ public $errCode = 0 ] - Property [ public $errMsg = '' ] - } - - Methods [7] { - Method [ public method __construct ] { + Method [ public method ping ] { - - Parameters [4] { - Parameter #0 [ $host ] - Parameter #1 [ $port = ] - Parameter #2 [ $ssl = ] - Parameter #3 [ $reuse_port = ] + - Parameters [0] { } + - Return [ bool ] } - Method [ public method __destruct ] { + Method [ public method goaway ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ int $errorCode = OpenSwoole\Coroutine\Http2\Client::HTTP2_ERROR_NO_ERROR ] + Parameter #1 [ string $debugData = "" ] } + - Return [ bool ] } - Method [ public method set ] { + Method [ public method upgrade ] { - - Parameters [1] { - Parameter #0 [ array $settings ] + - Parameters [0] { } + - Return [ bool ] } - Method [ public method handle ] { + Method [ public method push ] { - - Parameters [2] { - Parameter #0 [ $pattern ] - Parameter #1 [ callable $callback ] + - Parameters [3] { + Parameter #0 [ OpenSwoole\WebSocket\Frame|string $data ] + Parameter #1 [ int $opcode = OpenSwoole\WebSocket\Server::WEBSOCKET_OPCODE_TEXT ] + Parameter #2 [ int $flags = OpenSwoole\WebSocket\Server::WEBSOCKET_FLAG_FIN ] } + - Return [ bool ] } - Method [ private method onAccept ] { + Method [ public method recv ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ float $timeout = 0 ] } + - Return [ OpenSwoole\WebSocket\Frame|string|bool ] } - Method [ public method start ] { + Method [ public method close ] { - Parameters [0] { } + - Return [ bool ] } - Method [ public method shutdown ] { + Method [ public method __destruct ] { - Parameters [0] { } @@ -8428,32 +6512,37 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\WebSocket\Server extends Swoole\Http\Server ] { + Class [ class OpenSwoole\Http\Server extends OpenSwoole\Server ] { - - Constants [0] { + - Constants [22] { + Constant [ public int SIMPLE_MODE ] { 1 } + Constant [ public int POOL_MODE ] { 2 } + Constant [ public int IPC_UNSOCK ] { 1 } + Constant [ public int IPC_MSGQUEUE ] { 2 } + Constant [ public int IPC_PREEMPTIVE ] { 3 } + Constant [ public int DISPATCH_RESULT_DISCARD_PACKET ] { -1 } + Constant [ public int DISPATCH_RESULT_CLOSE_CONNECTION ] { -2 } + Constant [ public int DISPATCH_RESULT_USERFUNC_FALLBACK ] { -3 } + Constant [ public int TASK_TMPFILE ] { 1 } + Constant [ public int TASK_SERIALIZE ] { 2 } + Constant [ public int TASK_NONBLOCK ] { 4 } + Constant [ public int TASK_CALLBACK ] { 8 } + Constant [ public int TASK_WAITALL ] { 16 } + Constant [ public int TASK_COROUTINE ] { 32 } + Constant [ public int TASK_PEEK ] { 64 } + Constant [ public int TASK_NOREPLY ] { 128 } + Constant [ public int WORKER_BUSY ] { 1 } + Constant [ public int WORKER_IDLE ] { 2 } + Constant [ public int WORKER_EXIT ] { 3 } + Constant [ public int STATS_DEFAULT ] { 0 } + Constant [ public int STATS_JSON ] { 1 } + Constant [ public int STATS_OPENMETRICS ] { 2 } } - Static properties [0] { } - - Static methods [2] { - Method [ static public method pack ] { - - - Parameters [3] { - Parameter #0 [ Swoole\WebSocket\Frame|string $data ] - Parameter #1 [ int $opcode = SWOOLE_WEBSOCKET_OPCODE_TEXT ] - Parameter #2 [ int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] - } - - Return [ string ] - } - - Method [ static public method unpack ] { - - - Parameters [1] { - Parameter #0 [ string $data ] - } - - Return [ Swoole\WebSocket\Frame|false ] - } + - Static methods [0] { } - Properties [13] { @@ -8472,82 +6561,69 @@ Extension [ extension #120 openswoole version 4.12.1 ] { Property [ public $stats_timer = NULL ] } - - Methods [50] { - Method [ public method push ] { - - - Parameters [4] { - Parameter #0 [ int $fd ] - Parameter #1 [ Swoole\WebSocket\Frame|string $data ] - Parameter #2 [ int $opcode = SWOOLE_WEBSOCKET_OPCODE_TEXT ] - Parameter #3 [ int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] - } - - Return [ bool ] - } - - Method [ public method disconnect ] { - - - Parameters [3] { - Parameter #0 [ int $fd ] - Parameter #1 [ int $code = SWOOLE_WEBSOCKET_CLOSE_NORMAL ] - Parameter #2 [ string $reason = "" ] - } - - Return [ bool ] - } - - Method [ public method isEstablished ] { - - - Parameters [1] { - Parameter #0 [ int $fd ] - } - - Return [ bool ] - } - - Method [ public method __construct ] { + - Methods [45] { + Method [ public method __construct ] { - Parameters [4] { Parameter #0 [ string $host ] Parameter #1 [ int $port = 0 ] - Parameter #2 [ int $mode = SWOOLE_PROCESS ] - Parameter #3 [ int $sockType = SWOOLE_SOCK_TCP ] + Parameter #2 [ int $mode = OpenSwoole\Server::SIMPLE_MODE ] + Parameter #3 [ int $sockType = OpenSwoole\Constant::SOCK_TCP ] } } - Method [ public method __destruct ] { + Method [ public method __destruct ] { - Parameters [0] { } } - Method [ public method listen ] { + Method [ public method listen ] { - Parameters [3] { Parameter #0 [ string $host ] Parameter #1 [ int $port ] Parameter #2 [ int $sockType ] } - - Return [ Swoole\Server\Port|false ] + - Return [ OpenSwoole\Server\Port|false ] } - Method [ public method addlistener ] { + Method [ public method addlistener ] { - Parameters [3] { Parameter #0 [ string $host ] Parameter #1 [ int $port ] Parameter #2 [ int $sockType ] } - - Return [ Swoole\Server\Port|false ] + - Return [ OpenSwoole\Server\Port|false ] + } + + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ string $event ] + Parameter #1 [ callable $callback ] + } + - Return [ bool ] + } + + Method [ public method handle ] { + + - Parameters [1] { + Parameter #0 [ callable $callback ] + } + - Return [ bool ] } - Method [ public method on ] { + Method [ public method setHandler ] { - - Parameters [2] { - Parameter #0 [ string $event ] - Parameter #1 [ callable $callback ] + - Parameters [1] { + Parameter #0 [ mixed $handler ] } - Return [ bool ] } - Method [ public method getCallback ] { + Method [ public method getCallback ] { - Parameters [1] { Parameter #0 [ string $event ] @@ -8555,7 +6631,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ mixed ] } - Method [ public method set ] { + Method [ public method set ] { - Parameters [1] { Parameter #0 [ array $settings ] @@ -8563,14 +6639,14 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method start ] { + Method [ public method start ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method send ] { + Method [ public method send ] { - Parameters [3] { Parameter #0 [ string|int $fd ] @@ -8580,7 +6656,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method sendto ] { + Method [ public method sendto ] { - Parameters [4] { Parameter #0 [ string $ip ] @@ -8591,7 +6667,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method sendwait ] { + Method [ public method sendwait ] { - Parameters [2] { Parameter #0 [ int $fd ] @@ -8600,15 +6676,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method exists ] { - - - Parameters [1] { - Parameter #0 [ int $fd ] - } - - Return [ bool ] - } - - Method [ public method exist ] { + Method [ public method exists ] { - Parameters [1] { Parameter #0 [ int $fd ] @@ -8616,7 +6684,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method protect ] { + Method [ public method protect ] { - Parameters [2] { Parameter #0 [ int $fd ] @@ -8625,7 +6693,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method sendfile ] { + Method [ public method sendfile ] { - Parameters [4] { Parameter #0 [ int $fd ] @@ -8636,7 +6704,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method close ] { + Method [ public method close ] { - Parameters [2] { Parameter #0 [ int $fd ] @@ -8645,7 +6713,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method confirm ] { + Method [ public method confirm ] { - Parameters [1] { Parameter #0 [ int $fd ] @@ -8653,7 +6721,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method pause ] { + Method [ public method pause ] { - Parameters [1] { Parameter #0 [ int $fd ] @@ -8661,7 +6729,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method resume ] { + Method [ public method resume ] { - Parameters [1] { Parameter #0 [ int $fd ] @@ -8669,7 +6737,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method task ] { + Method [ public method task ] { - Parameters [3] { Parameter #0 [ mixed $data ] @@ -8679,7 +6747,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ int|bool ] } - Method [ public method taskwait ] { + Method [ public method taskwait ] { - Parameters [3] { Parameter #0 [ mixed $data ] @@ -8689,7 +6757,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ string|bool ] } - Method [ public method taskWaitMulti ] { + Method [ public method taskWaitMulti ] { - Parameters [2] { Parameter #0 [ array $tasks ] @@ -8698,7 +6766,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ array|bool ] } - Method [ public method taskCo ] { + Method [ public method taskCo ] { - Parameters [2] { Parameter #0 [ array $tasks ] @@ -8707,7 +6775,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ array|bool ] } - Method [ public method finish ] { + Method [ public method finish ] { - Parameters [1] { Parameter #0 [ mixed $data ] @@ -8715,21 +6783,21 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method reload ] { + Method [ public method reload ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method shutdown ] { + Method [ public method shutdown ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method stop ] { + Method [ public method stop ] { - Parameters [2] { Parameter #0 [ int $workerId ] @@ -8738,14 +6806,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method getLastError ] { - - - Parameters [0] { - } - - Return [ int ] - } - - Method [ public method heartbeat ] { + Method [ public method heartbeat ] { - Parameters [1] { Parameter #0 [ bool $closeConn = false ] @@ -8753,7 +6814,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ array|false ] } - Method [ public method getClientInfo ] { + Method [ public method getClientInfo ] { - Parameters [3] { Parameter #0 [ int $fd ] @@ -8763,7 +6824,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ array|bool ] } - Method [ public method getClientList ] { + Method [ public method getClientList ] { - Parameters [2] { Parameter #0 [ int $startFd = 0 ] @@ -8772,14 +6833,14 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ array|bool ] } - Method [ public method getWorkerId ] { + Method [ public method getWorkerId ] { - Parameters [0] { } - Return [ int ] } - Method [ public method getWorkerPid ] { + Method [ public method getWorkerPid ] { - Parameters [1] { Parameter #0 [ int $workerId = -1 ] @@ -8787,7 +6848,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ int|false ] } - Method [ public method getWorkerStatus ] { + Method [ public method getWorkerStatus ] { - Parameters [1] { Parameter #0 [ int $workerId = -1 ] @@ -8795,40 +6856,21 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ int|bool ] } - Method [ public method getManagerPid ] { + Method [ public method getManagerPid ] { - Parameters [0] { } - Return [ int ] } - Method [ public method getMasterPid ] { + Method [ public method getMasterPid ] { - Parameters [0] { } - Return [ int ] } - Method [ public method connection_info ] { - - - Parameters [3] { - Parameter #0 [ int $fd ] - Parameter #1 [ int $reactorId = -1 ] - Parameter #2 [ bool $noCheckConn = false ] - } - - Return [ array|bool ] - } - - Method [ public method connection_list ] { - - - Parameters [2] { - Parameter #0 [ int $startFd = 0 ] - Parameter #1 [ int $pageSize = 10 ] - } - - Return [ array|bool ] - } - - Method [ public method sendMessage ] { + Method [ public method sendMessage ] { - Parameters [2] { Parameter #0 [ mixed $message ] @@ -8837,15 +6879,15 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method addProcess ] { + Method [ public method addProcess ] { - Parameters [1] { - Parameter #0 [ Swoole\Process $process ] + Parameter #0 [ OpenSwoole\Process $process ] } - Return [ int|bool ] } - Method [ public method stats ] { + Method [ public method stats ] { - Parameters [1] { Parameter #0 [ int $mode = 0 ] @@ -8853,7 +6895,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ array|string|false ] } - Method [ public method getSocket ] { + Method [ public method getSocket ] { - Parameters [1] { Parameter #0 [ int $port = -1 ] @@ -8861,7 +6903,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ mixed ] } - Method [ public method bind ] { + Method [ public method bind ] { - Parameters [2] { Parameter #0 [ int $fd ] @@ -8870,7 +6912,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method after ] { + Method [ public method after ] { - Parameters [2] { Parameter #0 [ int $ms ] @@ -8879,7 +6921,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ int|bool ] } - Method [ public method tick ] { + Method [ public method tick ] { - Parameters [2] { Parameter #0 [ int $ms ] @@ -8888,14 +6930,14 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ int|bool ] } - Method [ public method clearTimer ] { + Method [ public method clearTimer ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method defer ] { + Method [ public method defer ] { - Parameters [1] { Parameter #0 [ callable $callback ] @@ -8905,9 +6947,59 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\WebSocket\Frame implements Stringable ] { - - - Constants [0] { + Class [ class OpenSwoole\WebSocket\Server extends OpenSwoole\Http\Server ] { + + - Constants [50] { + Constant [ public int SIMPLE_MODE ] { 1 } + Constant [ public int POOL_MODE ] { 2 } + Constant [ public int IPC_UNSOCK ] { 1 } + Constant [ public int IPC_MSGQUEUE ] { 2 } + Constant [ public int IPC_PREEMPTIVE ] { 3 } + Constant [ public int DISPATCH_RESULT_DISCARD_PACKET ] { -1 } + Constant [ public int DISPATCH_RESULT_CLOSE_CONNECTION ] { -2 } + Constant [ public int DISPATCH_RESULT_USERFUNC_FALLBACK ] { -3 } + Constant [ public int TASK_TMPFILE ] { 1 } + Constant [ public int TASK_SERIALIZE ] { 2 } + Constant [ public int TASK_NONBLOCK ] { 4 } + Constant [ public int TASK_CALLBACK ] { 8 } + Constant [ public int TASK_WAITALL ] { 16 } + Constant [ public int TASK_COROUTINE ] { 32 } + Constant [ public int TASK_PEEK ] { 64 } + Constant [ public int TASK_NOREPLY ] { 128 } + Constant [ public int WORKER_BUSY ] { 1 } + Constant [ public int WORKER_IDLE ] { 2 } + Constant [ public int WORKER_EXIT ] { 3 } + Constant [ public int STATS_DEFAULT ] { 0 } + Constant [ public int STATS_JSON ] { 1 } + Constant [ public int STATS_OPENMETRICS ] { 2 } + Constant [ public int WEBSOCKET_STATUS_CONNECTION ] { 1 } + Constant [ public int WEBSOCKET_STATUS_HANDSHAKE ] { 2 } + Constant [ public int WEBSOCKET_STATUS_ACTIVE ] { 3 } + Constant [ public int WEBSOCKET_STATUS_CLOSING ] { 4 } + Constant [ public int WEBSOCKET_OPCODE_CONTINUATION ] { 0 } + Constant [ public int WEBSOCKET_OPCODE_TEXT ] { 1 } + Constant [ public int WEBSOCKET_OPCODE_BINARY ] { 2 } + Constant [ public int WEBSOCKET_OPCODE_CLOSE ] { 8 } + Constant [ public int WEBSOCKET_OPCODE_PING ] { 9 } + Constant [ public int WEBSOCKET_OPCODE_PONG ] { 10 } + Constant [ public int WEBSOCKET_FLAG_FIN ] { 1 } + Constant [ public int WEBSOCKET_FLAG_RSV1 ] { 4 } + Constant [ public int WEBSOCKET_FLAG_RSV2 ] { 8 } + Constant [ public int WEBSOCKET_FLAG_RSV3 ] { 16 } + Constant [ public int WEBSOCKET_FLAG_MASK ] { 32 } + Constant [ public int WEBSOCKET_FLAG_COMPRESS ] { 2 } + Constant [ public int WEBSOCKET_CLOSE_NORMAL ] { 1000 } + Constant [ public int WEBSOCKET_CLOSE_GOING_AWAY ] { 1001 } + Constant [ public int WEBSOCKET_CLOSE_PROTOCOL_ERROR ] { 1002 } + Constant [ public int WEBSOCKET_CLOSE_DATA_ERROR ] { 1003 } + Constant [ public int WEBSOCKET_CLOSE_STATUS_ERROR ] { 1005 } + Constant [ public int WEBSOCKET_CLOSE_ABNORMAL ] { 1006 } + Constant [ public int WEBSOCKET_CLOSE_MESSAGE_ERROR ] { 1007 } + Constant [ public int WEBSOCKET_CLOSE_POLICY_ERROR ] { 1008 } + Constant [ public int WEBSOCKET_CLOSE_MESSAGE_TOO_BIG ] { 1009 } + Constant [ public int WEBSOCKET_CLOSE_EXTENSION_MISSING ] { 1010 } + Constant [ public int WEBSOCKET_CLOSE_SERVER_ERROR ] { 1011 } + Constant [ public int WEBSOCKET_CLOSE_TLS ] { 1015 } } - Static properties [0] { @@ -8917,9 +7009,9 @@ Extension [ extension #120 openswoole version 4.12.1 ] { Method [ static public method pack ] { - Parameters [3] { - Parameter #0 [ Swoole\WebSocket\Frame|string $data ] - Parameter #1 [ int $opcode = SWOOLE_WEBSOCKET_OPCODE_TEXT ] - Parameter #2 [ int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] + Parameter #0 [ OpenSwoole\WebSocket\Frame|string $data ] + Parameter #1 [ int $opcode = OpenSwoole\WebSocket\Server::WEBSOCKET_OPCODE_TEXT ] + Parameter #2 [ int $flags = OpenSwoole\WebSocket\Server::WEBSOCKET_FLAG_FIN ] } - Return [ string ] } @@ -8929,99 +7021,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Parameters [1] { Parameter #0 [ string $data ] } - - Return [ Swoole\WebSocket\Frame|false ] - } - } - - - Properties [5] { - Property [ public $fd = 0 ] - Property [ public $data = '' ] - Property [ public $opcode = 1 ] - Property [ public $flags = 1 ] - Property [ public $finish = NULL ] - } - - - Methods [1] { - Method [ public method __toString ] { - - - Parameters [0] { - } - - Return [ string ] - } - } - } - - Class [ class Swoole\WebSocket\CloseFrame extends Swoole\WebSocket\Frame implements Stringable ] { - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [2] { - Method [ static public method pack ] { - - - Parameters [3] { - Parameter #0 [ Swoole\WebSocket\Frame|string $data ] - Parameter #1 [ int $opcode = SWOOLE_WEBSOCKET_OPCODE_TEXT ] - Parameter #2 [ int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] - } - - Return [ string ] - } - - Method [ static public method unpack ] { - - - Parameters [1] { - Parameter #0 [ string $data ] - } - - Return [ Swoole\WebSocket\Frame|false ] - } - } - - - Properties [7] { - Property [ public $fd = 0 ] - Property [ public $data = '' ] - Property [ public $flags = 1 ] - Property [ public $finish = NULL ] - Property [ public $opcode = 8 ] - Property [ public $code = 1000 ] - Property [ public $reason = '' ] - } - - - Methods [1] { - Method [ public method __toString ] { - - - Parameters [0] { - } - - Return [ string ] - } - } - } - - Class [ class Swoole\Redis\Server extends Swoole\Server ] { - - - Constants [7] { - Constant [ public int NIL ] { 1 } - Constant [ public int ERROR ] { 0 } - Constant [ public int STATUS ] { 2 } - Constant [ public int INT ] { 3 } - Constant [ public int STRING ] { 4 } - Constant [ public int SET ] { 5 } - Constant [ public int MAP ] { 6 } - } - - - Static properties [0] { - } - - - Static methods [1] { - Method [ static public method format ] { - - - Parameters [2] { - Parameter #0 [ int $type ] - Parameter #1 [ mixed $value = null ] - } - - Return [ string|false ] + - Return [ OpenSwoole\WebSocket\Frame|false ] } } @@ -9041,61 +7041,73 @@ Extension [ extension #120 openswoole version 4.12.1 ] { Property [ public $stats_timer = NULL ] } - - Methods [49] { - Method [ public method setHandler ] { + - Methods [48] { + Method [ public method push ] { - - Parameters [2] { - Parameter #0 [ string $command ] - Parameter #1 [ callable $callback ] + - Parameters [4] { + Parameter #0 [ int $fd ] + Parameter #1 [ OpenSwoole\WebSocket\Frame|string $data ] + Parameter #2 [ int $opcode = OpenSwoole\WebSocket\Server::WEBSOCKET_OPCODE_TEXT ] + Parameter #3 [ int $flags = OpenSwoole\WebSocket\Server::WEBSOCKET_FLAG_FIN ] } - - Return [ void ] + - Return [ bool ] + } + + Method [ public method disconnect ] { + + - Parameters [3] { + Parameter #0 [ int $fd ] + Parameter #1 [ int $code = OpenSwoole\WebSocket\Server::WEBSOCKET_CLOSE_NORMAL ] + Parameter #2 [ string $reason = "" ] + } + - Return [ bool ] } - Method [ public method getHandler ] { + Method [ public method isEstablished ] { - Parameters [1] { - Parameter #0 [ string $command ] + Parameter #0 [ int $fd ] } - - Return [ callable|false ] + - Return [ bool ] } - Method [ public method __construct ] { + Method [ public method __construct ] { - Parameters [4] { Parameter #0 [ string $host ] Parameter #1 [ int $port = 0 ] - Parameter #2 [ int $mode = SWOOLE_PROCESS ] - Parameter #3 [ int $sockType = SWOOLE_SOCK_TCP ] + Parameter #2 [ int $mode = OpenSwoole\Server::SIMPLE_MODE ] + Parameter #3 [ int $sockType = OpenSwoole\Constant::SOCK_TCP ] } } - Method [ public method __destruct ] { + Method [ public method __destruct ] { - Parameters [0] { } } - Method [ public method listen ] { + Method [ public method listen ] { - Parameters [3] { Parameter #0 [ string $host ] Parameter #1 [ int $port ] Parameter #2 [ int $sockType ] } - - Return [ Swoole\Server\Port|false ] + - Return [ OpenSwoole\Server\Port|false ] } - Method [ public method addlistener ] { + Method [ public method addlistener ] { - Parameters [3] { Parameter #0 [ string $host ] Parameter #1 [ int $port ] Parameter #2 [ int $sockType ] } - - Return [ Swoole\Server\Port|false ] + - Return [ OpenSwoole\Server\Port|false ] } - Method [ public method on ] { + Method [ public method on ] { - Parameters [2] { Parameter #0 [ string $event ] @@ -9104,7 +7116,23 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method getCallback ] { + Method [ public method handle ] { + + - Parameters [1] { + Parameter #0 [ callable $callback ] + } + - Return [ bool ] + } + + Method [ public method setHandler ] { + + - Parameters [1] { + Parameter #0 [ mixed $handler ] + } + - Return [ bool ] + } + + Method [ public method getCallback ] { - Parameters [1] { Parameter #0 [ string $event ] @@ -9112,7 +7140,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ mixed ] } - Method [ public method set ] { + Method [ public method set ] { - Parameters [1] { Parameter #0 [ array $settings ] @@ -9120,14 +7148,14 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method start ] { + Method [ public method start ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method send ] { + Method [ public method send ] { - Parameters [3] { Parameter #0 [ string|int $fd ] @@ -9137,7 +7165,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method sendto ] { + Method [ public method sendto ] { - Parameters [4] { Parameter #0 [ string $ip ] @@ -9148,7 +7176,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method sendwait ] { + Method [ public method sendwait ] { - Parameters [2] { Parameter #0 [ int $fd ] @@ -9157,15 +7185,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method exists ] { - - - Parameters [1] { - Parameter #0 [ int $fd ] - } - - Return [ bool ] - } - - Method [ public method exist ] { + Method [ public method exists ] { - Parameters [1] { Parameter #0 [ int $fd ] @@ -9173,7 +7193,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method protect ] { + Method [ public method protect ] { - Parameters [2] { Parameter #0 [ int $fd ] @@ -9182,7 +7202,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method sendfile ] { + Method [ public method sendfile ] { - Parameters [4] { Parameter #0 [ int $fd ] @@ -9193,7 +7213,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method close ] { + Method [ public method close ] { - Parameters [2] { Parameter #0 [ int $fd ] @@ -9202,7 +7222,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method confirm ] { + Method [ public method confirm ] { - Parameters [1] { Parameter #0 [ int $fd ] @@ -9210,7 +7230,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method pause ] { + Method [ public method pause ] { - Parameters [1] { Parameter #0 [ int $fd ] @@ -9218,7 +7238,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method resume ] { + Method [ public method resume ] { - Parameters [1] { Parameter #0 [ int $fd ] @@ -9226,7 +7246,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method task ] { + Method [ public method task ] { - Parameters [3] { Parameter #0 [ mixed $data ] @@ -9236,7 +7256,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ int|bool ] } - Method [ public method taskwait ] { + Method [ public method taskwait ] { - Parameters [3] { Parameter #0 [ mixed $data ] @@ -9246,7 +7266,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ string|bool ] } - Method [ public method taskWaitMulti ] { + Method [ public method taskWaitMulti ] { - Parameters [2] { Parameter #0 [ array $tasks ] @@ -9255,7 +7275,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ array|bool ] } - Method [ public method taskCo ] { + Method [ public method taskCo ] { - Parameters [2] { Parameter #0 [ array $tasks ] @@ -9264,7 +7284,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ array|bool ] } - Method [ public method finish ] { + Method [ public method finish ] { - Parameters [1] { Parameter #0 [ mixed $data ] @@ -9272,21 +7292,21 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method reload ] { + Method [ public method reload ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method shutdown ] { + Method [ public method shutdown ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method stop ] { + Method [ public method stop ] { - Parameters [2] { Parameter #0 [ int $workerId ] @@ -9295,14 +7315,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method getLastError ] { - - - Parameters [0] { - } - - Return [ int ] - } - - Method [ public method heartbeat ] { + Method [ public method heartbeat ] { - Parameters [1] { Parameter #0 [ bool $closeConn = false ] @@ -9310,7 +7323,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ array|false ] } - Method [ public method getClientInfo ] { + Method [ public method getClientInfo ] { - Parameters [3] { Parameter #0 [ int $fd ] @@ -9320,7 +7333,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ array|bool ] } - Method [ public method getClientList ] { + Method [ public method getClientList ] { - Parameters [2] { Parameter #0 [ int $startFd = 0 ] @@ -9329,14 +7342,14 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ array|bool ] } - Method [ public method getWorkerId ] { + Method [ public method getWorkerId ] { - Parameters [0] { } - Return [ int ] } - Method [ public method getWorkerPid ] { + Method [ public method getWorkerPid ] { - Parameters [1] { Parameter #0 [ int $workerId = -1 ] @@ -9344,7 +7357,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ int|false ] } - Method [ public method getWorkerStatus ] { + Method [ public method getWorkerStatus ] { - Parameters [1] { Parameter #0 [ int $workerId = -1 ] @@ -9352,40 +7365,21 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ int|bool ] } - Method [ public method getManagerPid ] { + Method [ public method getManagerPid ] { - Parameters [0] { } - Return [ int ] } - Method [ public method getMasterPid ] { + Method [ public method getMasterPid ] { - Parameters [0] { } - Return [ int ] } - Method [ public method connection_info ] { - - - Parameters [3] { - Parameter #0 [ int $fd ] - Parameter #1 [ int $reactorId = -1 ] - Parameter #2 [ bool $noCheckConn = false ] - } - - Return [ array|bool ] - } - - Method [ public method connection_list ] { - - - Parameters [2] { - Parameter #0 [ int $startFd = 0 ] - Parameter #1 [ int $pageSize = 10 ] - } - - Return [ array|bool ] - } - - Method [ public method sendMessage ] { + Method [ public method sendMessage ] { - Parameters [2] { Parameter #0 [ mixed $message ] @@ -9394,15 +7388,15 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method addProcess ] { + Method [ public method addProcess ] { - Parameters [1] { - Parameter #0 [ Swoole\Process $process ] + Parameter #0 [ OpenSwoole\Process $process ] } - Return [ int|bool ] } - Method [ public method stats ] { + Method [ public method stats ] { - Parameters [1] { Parameter #0 [ int $mode = 0 ] @@ -9410,7 +7404,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ array|string|false ] } - Method [ public method getSocket ] { + Method [ public method getSocket ] { - Parameters [1] { Parameter #0 [ int $port = -1 ] @@ -9418,7 +7412,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ mixed ] } - Method [ public method bind ] { + Method [ public method bind ] { - Parameters [2] { Parameter #0 [ int $fd ] @@ -9427,7 +7421,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ bool ] } - Method [ public method after ] { + Method [ public method after ] { - Parameters [2] { Parameter #0 [ int $ms ] @@ -9436,7 +7430,7 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ int|bool ] } - Method [ public method tick ] { + Method [ public method tick ] { - Parameters [2] { Parameter #0 [ int $ms ] @@ -9445,14 +7439,14 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Return [ int|bool ] } - Method [ public method clearTimer ] { + Method [ public method clearTimer ] { - Parameters [0] { } - Return [ bool ] } - Method [ public method defer ] { + Method [ public method defer ] { - Parameters [1] { Parameter #0 [ callable $callback ] @@ -9462,7 +7456,53 @@ Extension [ extension #120 openswoole version 4.12.1 ] { } } - Class [ class Swoole\Coroutine\PostgreSQL ] { + Class [ class OpenSwoole\WebSocket\Frame implements Stringable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [2] { + Method [ static public method pack ] { + + - Parameters [3] { + Parameter #0 [ OpenSwoole\WebSocket\Frame|string $data ] + Parameter #1 [ int $opcode = OpenSwoole\WebSocket\Server::WEBSOCKET_OPCODE_TEXT ] + Parameter #2 [ int $flags = OpenSwoole\WebSocket\Server::WEBSOCKET_FLAG_FIN ] + } + - Return [ string ] + } + + Method [ static public method unpack ] { + + - Parameters [1] { + Parameter #0 [ string $data ] + } + - Return [ OpenSwoole\WebSocket\Frame|false ] + } + } + + - Properties [5] { + Property [ public $fd = 0 ] + Property [ public $data = '' ] + Property [ public $opcode = 1 ] + Property [ public $flags = 1 ] + Property [ public $finish = NULL ] + } + + - Methods [1] { + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] + } + } + } + + Class [ class OpenSwoole\WebSocket\CloseFrame extends OpenSwoole\WebSocket\Frame implements Stringable ] { - Constants [0] { } @@ -9470,6 +7510,71 @@ Extension [ extension #120 openswoole version 4.12.1 ] { - Static properties [0] { } + - Static methods [2] { + Method [ static public method pack ] { + + - Parameters [3] { + Parameter #0 [ OpenSwoole\WebSocket\Frame|string $data ] + Parameter #1 [ int $opcode = OpenSwoole\WebSocket\Server::WEBSOCKET_OPCODE_TEXT ] + Parameter #2 [ int $flags = OpenSwoole\WebSocket\Server::WEBSOCKET_FLAG_FIN ] + } + - Return [ string ] + } + + Method [ static public method unpack ] { + + - Parameters [1] { + Parameter #0 [ string $data ] + } + - Return [ OpenSwoole\WebSocket\Frame|false ] + } + } + + - Properties [7] { + Property [ public $fd = 0 ] + Property [ public $data = '' ] + Property [ public $flags = 1 ] + Property [ public $finish = NULL ] + Property [ public $opcode = 8 ] + Property [ public $code = 1000 ] + Property [ public $reason = '' ] + } + + - Methods [1] { + Method [ public method __toString ] { + + - Parameters [0] { + } + - Return [ string ] + } + } + } + + Class [ class OpenSwoole\Coroutine\PostgreSQL ] { + + - Constants [17] { + Constant [ public int PGSQL_ASSOC ] { 1 } + Constant [ public int PGSQL_NUM ] { 2 } + Constant [ public int PGSQL_BOTH ] { 3 } + Constant [ public int PGRES_EMPTY_QUERY ] { 0 } + Constant [ public int PGRES_COMMAND_OK ] { 1 } + Constant [ public int PGRES_TUPLES_OK ] { 2 } + Constant [ public int PGRES_BAD_RESPONSE ] { 5 } + Constant [ public int PGRES_NONFATAL_ERROR ] { 6 } + Constant [ public int PGRES_FATAL_ERROR ] { 7 } + Constant [ public int PG_CONNECTION_OK ] { 0 } + Constant [ public int PG_CONNECTION_BAD ] { 1 } + Constant [ public int PG_CONNECTION_STARTED ] { 2 } + Constant [ public int PG_CONNECTION_AWAITING_RESPONSE ] { 4 } + Constant [ public int PG_CONNECTION_AUTH_OK ] { 5 } + Constant [ public int PG_CONNECTION_SETENV ] { 6 } + Constant [ public int PG_CONNECTION_SSL_STARTUP ] { 7 } + Constant [ public int PG_CONNECTION_NEEDED ] { 8 } + } + + - Static properties [0] { + } + - Static methods [0] { } -- cgit