From 9a1688671e703770f44158576aa210a90d5c2a4c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 14 Jun 2018 10:55:24 +0200 Subject: duplicate v2 spec --- .gitignore | 8 + REFLECTION | 6327 +++++++++++++++++++++++++++++++++++++++++++++++++ php-pecl-swoole4.spec | 575 +++++ 3 files changed, 6910 insertions(+) create mode 100644 .gitignore create mode 100644 REFLECTION create mode 100644 php-pecl-swoole4.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fc9aa8c --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +clog +package-*.xml +*.tgz +*.tar.gz +*.tar.xz +*.tar.xz.asc +*.src.rpm +*/*rpm diff --git a/REFLECTION b/REFLECTION new file mode 100644 index 0000000..8fa194d --- /dev/null +++ b/REFLECTION @@ -0,0 +1,6327 @@ +Extension [ extension #147 swoole version 2.2.0 ] { + + - INI { + Entry [ swoole.aio_thread_num ] + Current = '2' + } + Entry [ swoole.display_errors ] + Current = 'On' + } + Entry [ swoole.use_namespace ] + Current = 'On' + } + Entry [ swoole.use_shortname ] + Current = 'On' + } + Entry [ swoole.fast_serialize ] + Current = 'Off' + } + Entry [ swoole.unixsock_buffer_size ] + Current = '8388608' + } + } + + - Constants [151] { + Constant [ integer SWOOLE_BASE ] { 4 } + Constant [ integer SWOOLE_THREAD ] { 2 } + Constant [ integer SWOOLE_PROCESS ] { 3 } + Constant [ integer SWOOLE_IPC_UNSOCK ] { 1 } + Constant [ integer SWOOLE_IPC_MSGQUEUE ] { 2 } + Constant [ integer SWOOLE_IPC_PREEMPTIVE ] { 3 } + Constant [ integer SWOOLE_SOCK_TCP ] { 1 } + Constant [ integer SWOOLE_SOCK_TCP6 ] { 3 } + Constant [ integer SWOOLE_SOCK_UDP ] { 2 } + Constant [ integer SWOOLE_SOCK_UDP6 ] { 4 } + Constant [ integer SWOOLE_SOCK_UNIX_DGRAM ] { 5 } + Constant [ integer SWOOLE_SOCK_UNIX_STREAM ] { 6 } + Constant [ integer SWOOLE_TCP ] { 1 } + Constant [ integer SWOOLE_TCP6 ] { 3 } + Constant [ integer SWOOLE_UDP ] { 2 } + Constant [ integer SWOOLE_UDP6 ] { 4 } + Constant [ integer SWOOLE_UNIX_DGRAM ] { 5 } + Constant [ integer SWOOLE_UNIX_STREAM ] { 6 } + Constant [ integer SWOOLE_SOCK_SYNC ] { 0 } + Constant [ integer SWOOLE_SOCK_ASYNC ] { 1 } + Constant [ integer SWOOLE_SYNC ] { 2048 } + Constant [ integer SWOOLE_ASYNC ] { 1024 } + Constant [ integer SWOOLE_KEEP ] { 4096 } + Constant [ integer SWOOLE_SSL ] { 512 } + Constant [ integer SWOOLE_SSLv3_METHOD ] { 1 } + Constant [ integer SWOOLE_SSLv3_SERVER_METHOD ] { 2 } + Constant [ integer SWOOLE_SSLv3_CLIENT_METHOD ] { 3 } + Constant [ integer SWOOLE_SSLv23_METHOD ] { 0 } + Constant [ integer SWOOLE_SSLv23_SERVER_METHOD ] { 4 } + Constant [ integer SWOOLE_SSLv23_CLIENT_METHOD ] { 5 } + Constant [ integer SWOOLE_TLSv1_METHOD ] { 6 } + Constant [ integer SWOOLE_TLSv1_SERVER_METHOD ] { 7 } + Constant [ integer SWOOLE_TLSv1_CLIENT_METHOD ] { 8 } + Constant [ integer SWOOLE_TLSv1_1_METHOD ] { 9 } + Constant [ integer SWOOLE_TLSv1_1_SERVER_METHOD ] { 10 } + Constant [ integer SWOOLE_TLSv1_1_CLIENT_METHOD ] { 11 } + Constant [ integer SWOOLE_TLSv1_2_METHOD ] { 12 } + Constant [ integer SWOOLE_TLSv1_2_SERVER_METHOD ] { 13 } + Constant [ integer SWOOLE_TLSv1_2_CLIENT_METHOD ] { 14 } + Constant [ integer SWOOLE_DTLSv1_METHOD ] { 15 } + Constant [ integer SWOOLE_DTLSv1_SERVER_METHOD ] { 16 } + Constant [ integer SWOOLE_DTLSv1_CLIENT_METHOD ] { 17 } + Constant [ integer SWOOLE_EVENT_READ ] { 512 } + Constant [ integer SWOOLE_EVENT_WRITE ] { 1024 } + Constant [ string SWOOLE_VERSION ] { 2.2.0 } + Constant [ integer SWOOLE_ERROR_MALLOC_FAIL ] { 501 } + Constant [ integer SWOOLE_ERROR_SYSTEM_CALL_FAIL ] { 502 } + Constant [ integer SWOOLE_ERROR_PHP_FATAL_ERROR ] { 503 } + Constant [ integer SWOOLE_ERROR_NAME_TOO_LONG ] { 504 } + Constant [ integer SWOOLE_ERROR_INVALID_PARAMS ] { 505 } + Constant [ integer SWOOLE_ERROR_FILE_NOT_EXIST ] { 700 } + Constant [ integer SWOOLE_ERROR_FILE_TOO_LARGE ] { 701 } + Constant [ integer SWOOLE_ERROR_FILE_EMPTY ] { 702 } + Constant [ integer SWOOLE_ERROR_DNSLOOKUP_DUPLICATE_REQUEST ] { 703 } + Constant [ integer SWOOLE_ERROR_DNSLOOKUP_RESOLVE_FAILED ] { 704 } + Constant [ integer SWOOLE_ERROR_SESSION_CLOSED_BY_SERVER ] { 1001 } + Constant [ integer SWOOLE_ERROR_SESSION_CLOSED_BY_CLIENT ] { 1002 } + Constant [ integer SWOOLE_ERROR_SESSION_CLOSING ] { 1003 } + Constant [ integer SWOOLE_ERROR_SESSION_CLOSED ] { 1004 } + Constant [ integer SWOOLE_ERROR_SESSION_NOT_EXIST ] { 1005 } + Constant [ integer SWOOLE_ERROR_SESSION_INVALID_ID ] { 1006 } + Constant [ integer SWOOLE_ERROR_SESSION_DISCARD_TIMEOUT_DATA ] { 1007 } + Constant [ integer SWOOLE_ERROR_OUTPUT_BUFFER_OVERFLOW ] { 1008 } + Constant [ integer SWOOLE_ERROR_SSL_NOT_READY ] { 1009 } + Constant [ integer SWOOLE_ERROR_SSL_CANNOT_USE_SENFILE ] { 1010 } + Constant [ integer SWOOLE_ERROR_SSL_EMPTY_PEER_CERTIFICATE ] { 1011 } + Constant [ integer SWOOLE_ERROR_SSL_VEFIRY_FAILED ] { 1012 } + Constant [ integer SWOOLE_ERROR_SSL_BAD_CLIENT ] { 1013 } + Constant [ integer SWOOLE_ERROR_SSL_BAD_PROTOCOL ] { 1014 } + Constant [ integer SWOOLE_ERROR_PACKAGE_LENGTH_TOO_LARGE ] { 1201 } + Constant [ integer SWOOLE_ERROR_DATA_LENGTH_TOO_LARGE ] { 1202 } + Constant [ integer SWOOLE_ERROR_TASK_PACKAGE_TOO_BIG ] { 2001 } + Constant [ integer SWOOLE_ERROR_TASK_DISPATCH_FAIL ] { 2002 } + Constant [ integer SWOOLE_ERROR_AIO_BAD_REQUEST ] { 4001 } + Constant [ integer SWOOLE_ERROR_CLIENT_NO_CONNECTION ] { 5001 } + Constant [ integer SWOOLE_ERROR_HTTP2_STREAM_ID_TOO_BIG ] { 3001 } + Constant [ integer SWOOLE_ERROR_HTTP2_STREAM_NO_HEADER ] { 3002 } + Constant [ integer SWOOLE_ERROR_SOCKS5_UNSUPPORT_VERSION ] { 7001 } + Constant [ integer SWOOLE_ERROR_SOCKS5_UNSUPPORT_METHOD ] { 7002 } + Constant [ integer SWOOLE_ERROR_SOCKS5_AUTH_FAILED ] { 7003 } + Constant [ integer SWOOLE_ERROR_SOCKS5_SERVER_ERROR ] { 7004 } + Constant [ integer SWOOLE_ERROR_HTTP_PROXY_HANDSHAKE_ERROR ] { 8001 } + Constant [ integer SWOOLE_ERROR_HTTP_INVALID_PROTOCOL ] { 8002 } + Constant [ integer SWOOLE_ERROR_WEBSOCKET_BAD_CLIENT ] { 8501 } + Constant [ integer SWOOLE_ERROR_WEBSOCKET_BAD_OPCODE ] { 8502 } + Constant [ integer SWOOLE_ERROR_WEBSOCKET_UNCONNECTED ] { 8503 } + Constant [ integer SWOOLE_ERROR_WEBSOCKET_HANDSHAKE_FAILED ] { 8504 } + Constant [ integer SWOOLE_ERROR_SERVER_MUST_CREATED_BEFORE_CLIENT ] { 9001 } + Constant [ integer SWOOLE_ERROR_SERVER_TOO_MANY_SOCKET ] { 9002 } + Constant [ integer SWOOLE_ERROR_SERVER_WORKER_TERMINATED ] { 9003 } + Constant [ integer SWOOLE_ERROR_SERVER_INVALID_LISTEN_PORT ] { 9004 } + Constant [ integer SWOOLE_ERROR_SERVER_TOO_MANY_LISTEN_PORT ] { 9005 } + Constant [ integer SWOOLE_ERROR_SERVER_PIPE_BUFFER_FULL ] { 9006 } + Constant [ integer SWOOLE_ERROR_SERVER_NO_IDLE_WORKER ] { 9007 } + Constant [ integer SWOOLE_ERROR_SERVER_ONLY_START_ONE ] { 9008 } + Constant [ integer SWOOLE_ERROR_SERVER_WORKER_EXIT_TIMEOUT ] { 9009 } + Constant [ integer SWOOLE_TRACE_SERVER ] { 2 } + Constant [ integer SWOOLE_TRACE_CLIENT ] { 4 } + Constant [ integer SWOOLE_TRACE_BUFFER ] { 8 } + Constant [ integer SWOOLE_TRACE_CONN ] { 16 } + Constant [ integer SWOOLE_TRACE_EVENT ] { 32 } + Constant [ integer SWOOLE_TRACE_WORKER ] { 64 } + Constant [ integer SWOOLE_TRACE_REACTOR ] { 256 } + Constant [ integer SWOOLE_TRACE_PHP ] { 512 } + Constant [ integer SWOOLE_TRACE_HTTP2 ] { 1024 } + Constant [ integer SWOOLE_TRACE_EOF_PROTOCOL ] { 2048 } + Constant [ integer SWOOLE_TRACE_LENGTH_PROTOCOL ] { 4096 } + Constant [ integer SWOOLE_TRACE_CLOSE ] { 8192 } + Constant [ integer SWOOLE_TRACE_HTTP_CLIENT ] { 16384 } + Constant [ integer SWOOLE_TRACE_COROUTINE ] { 32768 } + Constant [ integer SWOOLE_TRACE_REDIS_CLIENT ] { 65536 } + Constant [ integer SWOOLE_TRACE_MYSQL_CLIENT ] { 131072 } + Constant [ integer SWOOLE_TRACE_AIO ] { 262144 } + Constant [ integer SWOOLE_TRACE_ALL ] { 4294967295 } + Constant [ integer SWOOLE_LOG_DEBUG ] { 0 } + Constant [ integer SWOOLE_LOG_TRACE ] { 1 } + Constant [ integer SWOOLE_LOG_INFO ] { 2 } + Constant [ integer SWOOLE_LOG_NOTICE ] { 3 } + Constant [ integer SWOOLE_LOG_WARNING ] { 4 } + Constant [ integer SWOOLE_LOG_ERROR ] { 5 } + Constant [ integer SWOOLE_IPC_NONE ] { 0 } + Constant [ integer SWOOLE_IPC_UNIXSOCK ] { 1 } + Constant [ integer SWOOLE_IPC_SOCKET ] { 3 } + Constant [ integer SWOOLE_REDIS_MODE_MULTI ] { 0 } + Constant [ integer SWOOLE_REDIS_MODE_PIPELINE ] { 1 } + Constant [ integer SWOOLE_REDIS_TYPE_NOT_FOUND ] { 0 } + Constant [ integer SWOOLE_REDIS_TYPE_STRING ] { 1 } + Constant [ integer SWOOLE_REDIS_TYPE_SET ] { 2 } + Constant [ integer SWOOLE_REDIS_TYPE_LIST ] { 3 } + Constant [ integer SWOOLE_REDIS_TYPE_ZSET ] { 4 } + Constant [ integer SWOOLE_REDIS_TYPE_HASH ] { 5 } + Constant [ integer SW_PGSQL_ASSOC ] { 1 } + Constant [ integer SW_PGSQL_NUM ] { 2 } + Constant [ integer SW_PGSQL_BOTH ] { 3 } + Constant [ integer SWOOLE_AIO_BASE ] { 0 } + Constant [ integer SWOOLE_AIO_LINUX ] { 1 } + Constant [ integer SWOOLE_FILELOCK ] { 2 } + Constant [ integer SWOOLE_MUTEX ] { 3 } + Constant [ integer SWOOLE_SEM ] { 4 } + Constant [ integer SWOOLE_RWLOCK ] { 1 } + Constant [ integer SWOOLE_SPINLOCK ] { 5 } + Constant [ integer WEBSOCKET_OPCODE_TEXT ] { 1 } + Constant [ integer WEBSOCKET_OPCODE_BINARY ] { 2 } + Constant [ integer WEBSOCKET_OPCODE_PING ] { 9 } + Constant [ integer WEBSOCKET_STATUS_CONNECTION ] { 1 } + Constant [ integer WEBSOCKET_STATUS_HANDSHAKE ] { 2 } + Constant [ integer WEBSOCKET_STATUS_FRAME ] { 3 } + Constant [ integer WEBSOCKET_STATUS_ACTIVE ] { 3 } + Constant [ integer SWOOLE_FAST_PACK ] { 1 } + Constant [ integer UNSERIALIZE_OBJECT_TO_ARRAY ] { 1 } + Constant [ integer UNSERIALIZE_OBJECT_TO_STDCLASS ] { 2 } + } + + - Functions { + Function [ function swoole_version ] { + + - Parameters [0] { + } + } + Function [ function swoole_cpu_num ] { + + - Parameters [0] { + } + } + Function [ function swoole_last_error ] { + + - Parameters [0] { + } + } + Function [ function swoole_event_add ] { + + - Parameters [4] { + Parameter #0 [ $fd ] + Parameter #1 [ $read_callback ] + Parameter #2 [ $write_callback ] + Parameter #3 [ $events ] + } + } + Function [ function swoole_event_set ] { + + - Parameters [4] { + Parameter #0 [ $fd ] + Parameter #1 [ $read_callback ] + Parameter #2 [ $write_callback ] + Parameter #3 [ $events ] + } + } + Function [ function swoole_event_del ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + Function [ function swoole_event_exit ] { + + - Parameters [0] { + } + } + Function [ function swoole_event_wait ] { + + - Parameters [0] { + } + } + Function [ function swoole_event_write ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $data ] + } + } + Function [ function swoole_event_defer ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + Function [ function swoole_event_cycle ] { + + - Parameters [2] { + Parameter #0 [ $callback ] + Parameter #1 [ $before ] + } + } + Function [ function swoole_event_dispatch ] { + + - Parameters [0] { + } + } + Function [ function swoole_event_isset ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $events ] + } + } + Function [ function swoole_timer_after ] { + + - Parameters [3] { + Parameter #0 [ $ms ] + Parameter #1 [ $callback ] + Parameter #2 [ $param ] + } + } + Function [ function swoole_timer_tick ] { + + - Parameters [2] { + Parameter #0 [ $ms ] + Parameter #1 [ $callback ] + } + } + Function [ function swoole_timer_exists ] { + + - Parameters [1] { + Parameter #0 [ $timer_id ] + } + } + Function [ function swoole_timer_clear ] { + + - Parameters [1] { + Parameter #0 [ $timer_id ] + } + } + Function [ function swoole_async_set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + } + Function [ function swoole_async_read ] { + + - Parameters [4] { + Parameter #0 [ $filename ] + Parameter #1 [ $callback ] + Parameter #2 [ $chunk_size ] + Parameter #3 [ $offset ] + } + } + Function [ function swoole_async_write ] { + + - Parameters [4] { + Parameter #0 [ $filename ] + Parameter #1 [ $content ] + Parameter #2 [ $offset ] + Parameter #3 [ $callback ] + } + } + Function [ function swoole_async_readfile ] { + + - Parameters [2] { + Parameter #0 [ $filename ] + Parameter #1 [ $callback ] + } + } + Function [ function swoole_async_writefile ] { + + - Parameters [4] { + Parameter #0 [ $filename ] + Parameter #1 [ $content ] + Parameter #2 [ $callback ] + Parameter #3 [ $flags ] + } + } + Function [ function swoole_async_dns_lookup ] { + + - Parameters [2] { + Parameter #0 [ $hostname ] + Parameter #1 [ $callback ] + } + } + Function [ function swoole_async_dns_lookup_coro ] { + + - Parameters [1] { + Parameter #0 [ $domain_name ] + } + } + Function [ function swoole_coroutine_create ] { + + - Parameters [1] { + Parameter #0 [ $func ] + } + } + Function [ function swoole_coroutine_exec ] { + + - Parameters [1] { + Parameter #0 [ $command ] + } + } + Function [ function go ] { + + - Parameters [1] { + Parameter #0 [ $func ] + } + } + 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_hashcode ] { + + - Parameters [2] { + Parameter #0 [ $data ] + Parameter #1 [ $type ] + } + } + } + + - Classes [46] { + Class [ class Swoole\Server ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [29] { + Property [ public $onConnect ] + Property [ public $onReceive ] + Property [ public $onClose ] + Property [ public $onPacket ] + Property [ public $onBufferFull ] + Property [ public $onBufferEmpty ] + Property [ public $onStart ] + Property [ public $onShutdown ] + Property [ public $onWorkerStart ] + Property [ public $onWorkerStop ] + Property [ public $onWorkerExit ] + Property [ public $onWorkerError ] + Property [ public $onTask ] + Property [ public $onFinish ] + Property [ public $onManagerStart ] + Property [ public $onManagerStop ] + Property [ public $onPipeMessage ] + Property [ public $setting ] + Property [ public $connections ] + Property [ public $host ] + Property [ public $port ] + Property [ public $type ] + Property [ public $mode ] + Property [ public $ports ] + Property [ public $master_pid ] + Property [ public $manager_pid ] + Property [ public $worker_id ] + Property [ public $taskworker ] + Property [ public $worker_pid ] + } + + - Methods [42] { + Method [ public method __construct ] { + + - Parameters [4] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $mode ] + Parameter #3 [ $sock_type ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method listen ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $sock_type ] + } + } + + Method [ public method addlistener ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $sock_type ] + } + } + + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ $event_name ] + Parameter #1 [ $callback ] + } + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + } + + Method [ public method start ] { + + - Parameters [0] { + } + } + + Method [ public method send ] { + + - Parameters [3] { + Parameter #0 [ $fd ] + Parameter #1 [ $send_data ] + Parameter #2 [ $reactor_id ] + } + } + + Method [ public method sendto ] { + + - Parameters [4] { + Parameter #0 [ $ip ] + Parameter #1 [ $port ] + Parameter #2 [ $send_data ] + Parameter #3 [ $server_socket ] + } + } + + Method [ public method sendwait ] { + + - Parameters [2] { + Parameter #0 [ $conn_fd ] + Parameter #1 [ $send_data ] + } + } + + Method [ public method exist ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method protect ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $is_protected ] + } + } + + Method [ public method sendfile ] { + + - Parameters [4] { + Parameter #0 [ $conn_fd ] + Parameter #1 [ $filename ] + Parameter #2 [ $offset ] + Parameter #3 [ $length ] + } + } + + Method [ public method close ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $reset ] + } + } + + Method [ public method confirm ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method pause ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method resume ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method task ] { + + - Parameters [3] { + Parameter #0 [ $data ] + Parameter #1 [ $worker_id ] + Parameter #2 [ $finish_callback ] + } + } + + Method [ public method taskwait ] { + + - Parameters [3] { + Parameter #0 [ $data ] + Parameter #1 [ $timeout ] + Parameter #2 [ $worker_id ] + } + } + + Method [ public method taskWaitMulti ] { + + - Parameters [2] { + Parameter #0 [ array $tasks ] + Parameter #1 [ $timeout ] + } + } + + Method [ public method taskCo ] { + + - Parameters [2] { + Parameter #0 [ array $tasks ] + Parameter #1 [ $timeout ] + } + } + + Method [ public method finish ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method reload ] { + + - Parameters [0] { + } + } + + Method [ public method shutdown ] { + + - Parameters [0] { + } + } + + Method [ public method stop ] { + + - Parameters [1] { + Parameter #0 [ $worker_id ] + } + } + + Method [ public method getLastError ] { + + - Parameters [0] { + } + } + + Method [ public method heartbeat ] { + + - Parameters [1] { + Parameter #0 [ $reactor_id ] + } + } + + Method [ public method connection_info ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $reactor_id ] + } + } + + Method [ public method connection_list ] { + + - Parameters [2] { + Parameter #0 [ $start_fd ] + Parameter #1 [ $find_count ] + } + } + + Method [ public method getClientInfo ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $reactor_id ] + } + } + + Method [ public method getClientList ] { + + - Parameters [2] { + Parameter #0 [ $start_fd ] + Parameter #1 [ $find_count ] + } + } + + Method [ public method after ] { + + - Parameters [3] { + Parameter #0 [ $ms ] + Parameter #1 [ $callback ] + Parameter #2 [ $param ] + } + } + + Method [ public method tick ] { + + - Parameters [2] { + Parameter #0 [ $ms ] + Parameter #1 [ $callback ] + } + } + + Method [ public method clearTimer ] { + + - Parameters [1] { + Parameter #0 [ $timer_id ] + } + } + + Method [ public method defer ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + + Method [ public method sendMessage ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ $dst_worker_id ] + } + } + + Method [ public method addProcess ] { + + - Parameters [1] { + Parameter #0 [ swoole_process $process ] + } + } + + Method [ public method stats ] { + + - Parameters [0] { + } + } + + Method [ public method getSocket ] { + + - Parameters [1] { + Parameter #0 [ $port ] + } + } + + Method [ public method bind ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $uid ] + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + } + } + + Class [ class Swoole\Timer ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [4] { + Method [ static public method tick ] { + + - Parameters [2] { + Parameter #0 [ $ms ] + Parameter #1 [ $callback ] + } + } + + Method [ static public method after ] { + + - Parameters [3] { + Parameter #0 [ $ms ] + Parameter #1 [ $callback ] + Parameter #2 [ $param ] + } + } + + Method [ static public method exists ] { + + - Parameters [1] { + Parameter #0 [ $timer_id ] + } + } + + Method [ static public method clear ] { + + - Parameters [1] { + Parameter #0 [ $timer_id ] + } + } + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class Swoole\Event ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [8] { + Method [ static public method add ] { + + - Parameters [4] { + Parameter #0 [ $fd ] + Parameter #1 [ $read_callback ] + Parameter #2 [ $write_callback ] + Parameter #3 [ $events ] + } + } + + Method [ static public method del ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ static public method set ] { + + - Parameters [4] { + Parameter #0 [ $fd ] + Parameter #1 [ $read_callback ] + Parameter #2 [ $write_callback ] + Parameter #3 [ $events ] + } + } + + Method [ static public method exit ] { + + - Parameters [0] { + } + } + + Method [ static public method write ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $data ] + } + } + + Method [ static public method wait ] { + + - Parameters [0] { + } + } + + Method [ static public method defer ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + + Method [ static public method cycle ] { + + - Parameters [2] { + Parameter #0 [ $callback ] + Parameter #1 [ $before ] + } + } + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class Swoole\Async ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [8] { + Method [ static public method read ] { + + - Parameters [4] { + Parameter #0 [ $filename ] + Parameter #1 [ $callback ] + Parameter #2 [ $chunk_size ] + Parameter #3 [ $offset ] + } + } + + Method [ static public method write ] { + + - Parameters [4] { + Parameter #0 [ $filename ] + Parameter #1 [ $content ] + Parameter #2 [ $offset ] + Parameter #3 [ $callback ] + } + } + + Method [ static public method readFile ] { + + - Parameters [2] { + Parameter #0 [ $filename ] + Parameter #1 [ $callback ] + } + } + + Method [ static public method writeFile ] { + + - Parameters [4] { + Parameter #0 [ $filename ] + Parameter #1 [ $content ] + Parameter #2 [ $callback ] + Parameter #3 [ $flags ] + } + } + + Method [ static public method dnsLookup ] { + + - Parameters [2] { + Parameter #0 [ $hostname ] + Parameter #1 [ $callback ] + } + } + + Method [ static public method dnsLookupCoro ] { + + - Parameters [1] { + Parameter #0 [ $domain_name ] + } + } + + Method [ static public method set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + } + + Method [ static public method exec ] { + + - Parameters [2] { + Parameter #0 [ $command ] + Parameter #1 [ $callback ] + } + } + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class Swoole\Connection\Iterator implements Iterator, Traversable, Countable, ArrayAccess ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [11] { + Method [ public method rewind ] { + + - Parameters [0] { + } + } + + Method [ public method next ] { + + - Parameters [0] { + } + } + + Method [ public method current ] { + + - Parameters [0] { + } + } + + Method [ public method key ] { + + - Parameters [0] { + } + } + + Method [ public method valid ] { + + - Parameters [0] { + } + } + + Method [ public method count ] { + + - Parameters [0] { + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method offsetExists ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method offsetGet ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method offsetSet ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $value ] + } + } + + Method [ public method offsetUnset ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + } + } + + Class [ class Swoole\Exception extends Exception implements Throwable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ public method __wakeup ] { + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Swoole\Server\Port ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [16] { + Property [ public $onConnect ] + Property [ public $onReceive ] + Property [ public $onClose ] + Property [ public $onPacket ] + Property [ public $onBufferFull ] + Property [ public $onBufferEmpty ] + Property [ public $onRequest ] + Property [ public $onHandShake ] + Property [ public $onMessage ] + Property [ public $onOpen ] + Property [ public $host ] + Property [ public $port ] + Property [ public $type ] + Property [ public $sock ] + Property [ public $setting ] + Property [ public $connections ] + } + + - Methods [7] { + Method [ private method __construct ] { + + - Parameters [0] { + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + } + + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ $event_name ] + Parameter #1 [ $callback ] + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + + Method [ public method getSocket ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Client ] { + + - Constants [7] { + Constant [ public integer MSG_OOB ] { 1 } + Constant [ public integer MSG_PEEK ] { 2 } + Constant [ public integer MSG_DONTWAIT ] { 64 } + Constant [ public integer MSG_WAITALL ] { 256 } + Constant [ public integer SHUT_RDWR ] { 2 } + Constant [ public integer SHUT_RD ] { 0 } + Constant [ public integer SHUT_WR ] { 1 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [14] { + Property [ public $errCode ] + Property [ public $sock ] + Property [ public $reuse ] + Property [ public $reuseCount ] + Property [ public $type ] + Property [ public $id ] + Property [ public $setting ] + Property [ public $onConnect ] + Property [ public $onError ] + Property [ public $onReceive ] + Property [ public $onClose ] + Property [ public $onBufferFull ] + Property [ public $onBufferEmpty ] + Property [ public $onSSLReady ] + } + + - Methods [23] { + Method [ public method __construct ] { + + - Parameters [2] { + Parameter #0 [ $type ] + Parameter #1 [ $async ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + } + + Method [ public method connect ] { + + - Parameters [4] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $timeout ] + Parameter #3 [ $sock_flag ] + } + } + + Method [ public method recv ] { + + - Parameters [2] { + Parameter #0 [ $size ] + Parameter #1 [ $flag ] + } + } + + Method [ public method send ] { + + - Parameters [2] { + Parameter #0 [ $data ] + Parameter #1 [ $flag ] + } + } + + Method [ public method pipe ] { + + - Parameters [1] { + Parameter #0 [ $dst_socket ] + } + } + + Method [ public method sendfile ] { + + - Parameters [3] { + Parameter #0 [ $filename ] + Parameter #1 [ $offset ] + Parameter #2 [ $length ] + } + } + + Method [ public method sendto ] { + + - Parameters [3] { + Parameter #0 [ $ip ] + Parameter #1 [ $port ] + Parameter #2 [ $data ] + } + } + + Method [ public method sleep ] { + + - Parameters [0] { + } + } + + Method [ public method wakeup ] { + + - Parameters [0] { + } + } + + Method [ public method pause ] { + + - Parameters [0] { + } + } + + Method [ public method resume ] { + + - Parameters [0] { + } + } + + Method [ public method shutdown ] { + + - Parameters [1] { + Parameter #0 [ $how ] + } + } + + Method [ public method enableSSL ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + + Method [ public method getPeerCert ] { + + - Parameters [0] { + } + } + + Method [ public method verifyPeerCert ] { + + - Parameters [0] { + } + } + + Method [ public method isConnected ] { + + - Parameters [0] { + } + } + + Method [ public method getsockname ] { + + - Parameters [0] { + } + } + + Method [ public method getpeername ] { + + - Parameters [0] { + } + } + + Method [ public method close ] { + + - Parameters [1] { + Parameter #0 [ $force ] + } + } + + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ $event_name ] + Parameter #1 [ $callback ] + } + } + + Method [ public method getSocket ] { + + - Parameters [0] { + } + } + } + } + + Class [ final class Swoole\Coroutine\Socket ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [1] { + Property [ public $errCode ] + } + + - Methods [13] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $domain ] + Parameter #1 [ $type ] + Parameter #2 [ $protocol ] + } + } + + Method [ public method bind ] { + + - Parameters [2] { + Parameter #0 [ $address ] + Parameter #1 [ $port ] + } + } + + Method [ public method listen ] { + + - Parameters [1] { + Parameter #0 [ $backlog ] + } + } + + Method [ public method accept ] { + + - Parameters [1] { + Parameter #0 [ $timeout ] + } + } + + Method [ public method connect ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $timeout ] + } + } + + Method [ public method recv ] { + + - Parameters [1] { + Parameter #0 [ $timeout ] + } + } + + Method [ public method send ] { + + - Parameters [2] { + Parameter #0 [ $data ] + Parameter #1 [ $timeout ] + } + } + + Method [ public method recvfrom ] { + + - Parameters [2] { + Parameter #0 [ &$peername ] + Parameter #1 [ $timeout ] + } + } + + Method [ public method sendto ] { + + - Parameters [3] { + Parameter #0 [ $addr ] + Parameter #1 [ $port ] + Parameter #2 [ $data ] + } + } + + Method [ public method getpeername ] { + + - Parameters [0] { + } + } + + Method [ public method getsockname ] { + + - Parameters [0] { + } + } + + Method [ public method getSocket ] { + + - Parameters [0] { + } + } + + Method [ public method close ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Coroutine\Socket\Exception extends Exception implements Throwable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ public method __wakeup ] { + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Swoole\Coroutine\Client ] { + + - Constants [4] { + Constant [ public integer MSG_OOB ] { 1 } + Constant [ public integer MSG_PEEK ] { 2 } + Constant [ public integer MSG_DONTWAIT ] { 64 } + Constant [ public integer MSG_WAITALL ] { 256 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [8] { + Property [ public $errCode ] + Property [ public $sock ] + Property [ public $reuse ] + Property [ public $reuseCount ] + Property [ public $type ] + Property [ public $id ] + Property [ public $setting ] + Property [ public $connected ] + } + + - Methods [19] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $type ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + } + + Method [ public method connect ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $timeout ] + } + } + + Method [ public method recv ] { + + - Parameters [1] { + Parameter #0 [ $timeout ] + } + } + + Method [ public method peek ] { + + - Parameters [1] { + Parameter #0 [ $length ] + } + } + + Method [ public method send ] { + + - Parameters [2] { + Parameter #0 [ $data ] + Parameter #1 [ $flag ] + } + } + + Method [ public method sendfile ] { + + - Parameters [3] { + Parameter #0 [ $filename ] + Parameter #1 [ $offset ] + Parameter #2 [ $length ] + } + } + + Method [ public method sendto ] { + + - Parameters [3] { + Parameter #0 [ $ip ] + Parameter #1 [ $port ] + Parameter #2 [ $data ] + } + } + + Method [ public method enableSSL ] { + + - Parameters [0] { + } + } + + Method [ public method getPeerCert ] { + + - Parameters [0] { + } + } + + Method [ public method verifyPeerCert ] { + + - Parameters [0] { + } + } + + Method [ public method isConnected ] { + + - Parameters [0] { + } + } + + Method [ public method getsockname ] { + + - Parameters [0] { + } + } + + Method [ public method getpeername ] { + + - Parameters [0] { + } + } + + Method [ public method close ] { + + - Parameters [0] { + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + + Method [ public method getSocket ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Coroutine\Redis ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [7] { + Property [ public $setting ] + Property [ public $host ] + Property [ public $port ] + Property [ public $sock ] + Property [ public $connected ] + Property [ public $errCode ] + Property [ public $errMsg ] + } + + - Methods [154] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $config ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method connect ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $serialize ] + } + } + + Method [ public method setDefer ] { + } + + Method [ public method getDefer ] { + } + + Method [ public method recv ] { + } + + Method [ public method request ] { + + - Parameters [1] { + Parameter #0 [ array $params ] + } + } + + Method [ public method close ] { + } + + Method [ public method set ] { + } + + Method [ public method setBit ] { + } + + Method [ public method setEx ] { + } + + Method [ public method psetEx ] { + } + + Method [ public method lSet ] { + } + + Method [ public method get ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method mGet ] { + } + + Method [ public method del ] { + } + + Method [ public method hDel ] { + } + + Method [ public method hSet ] { + } + + Method [ public method hMSet ] { + } + + Method [ public method hSetNx ] { + } + + Method [ public method delete ] { + } + + Method [ public method mSet ] { + } + + Method [ public method mSetNx ] { + } + + Method [ public method getKeys ] { + } + + Method [ public method keys ] { + } + + Method [ public method exists ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method type ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method strLen ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method lPop ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method blPop ] { + } + + Method [ public method rPop ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method brPop ] { + } + + Method [ public method bRPopLPush ] { + } + + Method [ public method lSize ] { + } + + Method [ public method lLen ] { + } + + Method [ public method sSize ] { + } + + Method [ public method scard ] { + } + + Method [ public method sPop ] { + } + + Method [ public method sMembers ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method sGetMembers ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method sRandMember ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $integer ] + } + } + + Method [ public method persist ] { + } + + Method [ public method ttl ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method pttl ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method zCard ] { + } + + Method [ public method zSize ] { + } + + Method [ public method hLen ] { + } + + Method [ public method hKeys ] { + } + + Method [ public method hVals ] { + } + + Method [ public method hGetAll ] { + } + + Method [ public method debug ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method restore ] { + } + + Method [ public method dump ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method renameKey ] { + } + + Method [ public method rename ] { + } + + Method [ public method renameNx ] { + } + + Method [ public method rpoplpush ] { + } + + Method [ public method randomKey ] { + + - Parameters [0] { + } + } + + Method [ public method ping ] { + + - Parameters [0] { + } + } + + Method [ public method auth ] { + } + + Method [ public method unwatch ] { + + - Parameters [0] { + } + } + + Method [ public method watch ] { + } + + Method [ public method save ] { + + - Parameters [0] { + } + } + + Method [ public method bgSave ] { + + - Parameters [0] { + } + } + + Method [ public method lastSave ] { + } + + Method [ public method flushDB ] { + + - Parameters [0] { + } + } + + Method [ public method flushAll ] { + + - Parameters [0] { + } + } + + Method [ public method dbSize ] { + + - Parameters [0] { + } + } + + Method [ public method bgrewriteaof ] { + + - Parameters [0] { + } + } + + Method [ public method time ] { + + - Parameters [0] { + } + } + + Method [ public method role ] { + + - Parameters [0] { + } + } + + Method [ public method setRange ] { + } + + Method [ public method setNx ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + } + } + + Method [ public method getSet ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + } + } + + Method [ public method append ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + } + } + + Method [ public method lPushx ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + } + } + + Method [ public method lPush ] { + } + + Method [ public method rPush ] { + } + + Method [ public method rPushx ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + } + } + + Method [ public method sContains ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + } + } + + Method [ public method sismember ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + } + } + + Method [ public method zScore ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + } + } + + Method [ public method zRank ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + } + } + + Method [ public method zRevRank ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + } + } + + Method [ public method hGet ] { + } + + Method [ public method hMGet ] { + } + + Method [ public method hExists ] { + } + + Method [ public method publish ] { + } + + Method [ public method zIncrBy ] { + + - Parameters [3] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + Parameter #2 [ $member ] + } + } + + Method [ public method zAdd ] { + } + + Method [ public method zDeleteRangeByScore ] { + } + + Method [ public method zRemRangeByScore ] { + } + + Method [ public method zCount ] { + } + + Method [ public method zRange ] { + + - Parameters [4] { + Parameter #0 [ $key ] + Parameter #1 [ $start ] + Parameter #2 [ $end ] + Parameter #3 [ $withscores ] + } + } + + Method [ public method zRevRange ] { + } + + Method [ public method zRangeByScore ] { + } + + Method [ public method zRevRangeByScore ] { + } + + Method [ public method zRangeByLex ] { + } + + Method [ public method zRevRangeByLex ] { + } + + Method [ public method zInter ] { + } + + Method [ public method zinterstore ] { + } + + Method [ public method zUnion ] { + } + + Method [ public method zunionstore ] { + } + + Method [ public method incrBy ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $integer ] + } + } + + Method [ public method hIncrBy ] { + } + + Method [ public method incr ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method decrBy ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $integer ] + } + } + + Method [ public method decr ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method getBit ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $integer ] + } + } + + Method [ public method lInsert ] { + } + + Method [ public method lGet ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $integer ] + } + } + + Method [ public method lIndex ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $integer ] + } + } + + Method [ public method setTimeout ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $integer ] + } + } + + Method [ public method expire ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $integer ] + } + } + + Method [ public method pexpire ] { + } + + Method [ public method expireAt ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $integer ] + } + } + + Method [ public method pexpireAt ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $integer ] + } + } + + Method [ public method move ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $integer ] + } + } + + Method [ public method select ] { + } + + Method [ public method getRange ] { + } + + Method [ public method listTrim ] { + } + + Method [ public method ltrim ] { + } + + Method [ public method lGetRange ] { + } + + Method [ public method lRange ] { + } + + Method [ public method lRem ] { + } + + Method [ public method lRemove ] { + } + + Method [ public method zDeleteRangeByRank ] { + } + + Method [ public method zRemRangeByRank ] { + } + + Method [ public method incrByFloat ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $float_number ] + } + } + + Method [ public method hIncrByFloat ] { + } + + Method [ public method bitCount ] { + } + + Method [ public method bitOp ] { + } + + Method [ public method sAdd ] { + } + + Method [ public method sMove ] { + } + + Method [ public method sDiff ] { + } + + Method [ public method sDiffStore ] { + } + + Method [ public method sUnion ] { + } + + Method [ public method sUnionStore ] { + } + + Method [ public method sInter ] { + } + + Method [ public method sInterStore ] { + } + + Method [ public method sRemove ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + } + } + + Method [ public method srem ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + } + } + + Method [ public method zDelete ] { + } + + Method [ public method zRemove ] { + } + + Method [ public method zRem ] { + } + + Method [ public method pSubscribe ] { + } + + Method [ public method subscribe ] { + } + + Method [ public method multi ] { + } + + Method [ public method exec ] { + } + + Method [ public method eval ] { + } + + Method [ public method evalSha ] { + } + + Method [ public method script ] { + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + } + } + + Class [ class Swoole\Coroutine\PostgreSQL ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [12] { + Method [ public method __construct ] { + + - Parameters [0] { + } + } + + Method [ public method connect ] { + + - Parameters [1] { + Parameter #0 [ $conninfo ] + } + } + + Method [ public method query ] { + + - Parameters [1] { + Parameter #0 [ $query ] + } + } + + Method [ public method fetchAll ] { + + - Parameters [2] { + Parameter #0 [ $result ] + Parameter #1 [ $result_type ] + } + } + + Method [ public method affectedRows ] { + + - Parameters [1] { + Parameter #0 [ $result ] + } + } + + Method [ public method numRows ] { + + - Parameters [1] { + Parameter #0 [ $result ] + } + } + + Method [ public method metaData ] { + + - Parameters [1] { + Parameter #0 [ $table_name ] + } + } + + Method [ public method fetchObject ] { + + - Parameters [5] { + Parameter #0 [ $result ] + Parameter #1 [ $row ] + Parameter #2 [ $class_name ] + Parameter #3 [ $l ] + Parameter #4 [ $ctor_params ] + } + } + + Method [ public method fetchAssoc ] { + + - Parameters [2] { + Parameter #0 [ $result ] + Parameter #1 [ $row ] + } + } + + Method [ public method fetchArray ] { + + - Parameters [3] { + Parameter #0 [ $result ] + Parameter #1 [ $row ] + Parameter #2 [ $result_type ] + } + } + + Method [ public method fetchRow ] { + + - Parameters [3] { + Parameter #0 [ $result ] + Parameter #1 [ $row ] + Parameter #2 [ $result_type ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Coroutine\MySQL ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [9] { + Property [ private $serverInfo ] + Property [ public $sock ] + Property [ public $connected ] + Property [ public $connect_error ] + Property [ public $connect_errno ] + Property [ public $affected_rows ] + Property [ public $insert_id ] + Property [ public $error ] + Property [ public $errno ] + } + + - Methods [15] { + Method [ public method __construct ] { + + - Parameters [0] { + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method connect ] { + + - Parameters [1] { + Parameter #0 [ array $server_config ] + } + } + + Method [ public method query ] { + + - Parameters [2] { + Parameter #0 [ $sql ] + Parameter #1 [ $timeout ] + } + } + + Method [ public method recv ] { + + - Parameters [0] { + } + } + + Method [ public method escape ] { + + - Parameters [2] { + Parameter #0 [ $string ] + Parameter #1 [ $flags ] + } + } + + Method [ public method begin ] { + + - Parameters [0] { + } + } + + Method [ public method commit ] { + + - Parameters [0] { + } + } + + Method [ public method rollback ] { + + - Parameters [0] { + } + } + + Method [ public method prepare ] { + + - Parameters [1] { + Parameter #0 [ $query ] + } + } + + Method [ public method setDefer ] { + + - Parameters [1] { + Parameter #0 [ $defer ] + } + } + + Method [ public method getDefer ] { + + - Parameters [0] { + } + } + + Method [ public method close ] { + + - Parameters [0] { + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + } + } + + Class [ class Swoole\Coroutine\MySQL\Statement ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ public $affected_rows ] + Property [ public $insert_id ] + Property [ public $error ] + Property [ public $errno ] + } + + - Methods [4] { + Method [ public method execute ] { + + - Parameters [2] { + Parameter #0 [ $params ] + Parameter #1 [ $timeout ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + } + } + + Class [ class Swoole\Coroutine\MySQL\Exception extends Exception implements Throwable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ public method __wakeup ] { + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Swoole\Coroutine\Http\Client ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [17] { + Property [ public $errCode ] + Property [ public $sock ] + Property [ public $reuse ] + Property [ public $reuseCount ] + Property [ public $type ] + Property [ public $setting ] + Property [ public $connected ] + Property [ public $statusCode ] + Property [ public $host ] + Property [ public $port ] + Property [ public $requestMethod ] + Property [ public $requestHeaders ] + Property [ public $requestBody ] + Property [ public $uploadFiles ] + Property [ public $headers ] + Property [ public $cookies ] + Property [ public $body ] + } + + - Methods [21] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $ssl ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + } + + Method [ public method setMethod ] { + + - Parameters [1] { + Parameter #0 [ $method ] + } + } + + Method [ public method setHeaders ] { + + - Parameters [1] { + Parameter #0 [ array $headers ] + } + } + + Method [ public method setCookies ] { + + - Parameters [1] { + Parameter #0 [ array $cookies ] + } + } + + Method [ public method setData ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method execute ] { + + - Parameters [1] { + Parameter #0 [ $path ] + } + } + + Method [ public method get ] { + + - Parameters [1] { + Parameter #0 [ $path ] + } + } + + Method [ public method post ] { + + - Parameters [2] { + Parameter #0 [ $path ] + Parameter #1 [ $data ] + } + } + + Method [ public method download ] { + + - Parameters [3] { + Parameter #0 [ $path ] + Parameter #1 [ $file ] + Parameter #2 [ $offset ] + } + } + + Method [ public method upgrade ] { + + - Parameters [1] { + Parameter #0 [ $path ] + } + } + + Method [ public method addFile ] { + + - Parameters [6] { + Parameter #0 [ $path ] + Parameter #1 [ $name ] + Parameter #2 [ $type ] + Parameter #3 [ $filename ] + Parameter #4 [ $offset ] + Parameter #5 [ $length ] + } + } + + Method [ public method isConnected ] { + + - Parameters [0] { + } + } + + Method [ public method close ] { + + - Parameters [0] { + } + } + + Method [ public method setDefer ] { + + - Parameters [1] { + Parameter #0 [ $defer ] + } + } + + Method [ public method getDefer ] { + + - Parameters [0] { + } + } + + Method [ public method recv ] { + + - Parameters [1] { + Parameter #0 [ $timeout ] + } + } + + Method [ public method push ] { + + - Parameters [3] { + Parameter #0 [ $data ] + Parameter #1 [ $opcode ] + Parameter #2 [ $finish ] + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + } + } + + Class [ class Swoole\Coroutine ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [17] { + Method [ static public method create ] { + + - Parameters [1] { + Parameter #0 [ $func ] + } + } + + Method [ static public method exec ] { + + - Parameters [1] { + Parameter #0 [ $command ] + } + } + + Method [ static public method set ] { + + - Parameters [1] { + Parameter #0 [ $options ] + } + } + + Method [ static public method cli_wait ] { + + - Parameters [0] { + } + } + + Method [ static public method suspend ] { + + - Parameters [1] { + Parameter #0 [ $uid ] + } + } + + Method [ static public method resume ] { + + - Parameters [1] { + Parameter #0 [ $uid ] + } + } + + Method [ static public method getuid ] { + + - Parameters [0] { + } + } + + Method [ static public method sleep ] { + + - Parameters [1] { + Parameter #0 [ $seconds ] + } + } + + Method [ static public method fread ] { + + - Parameters [2] { + Parameter #0 [ $handle ] + Parameter #1 [ $length ] + } + } + + Method [ static public method fgets ] { + + - Parameters [1] { + Parameter #0 [ $handle ] + } + } + + Method [ static public method fwrite ] { + + - Parameters [3] { + Parameter #0 [ $handle ] + Parameter #1 [ $string ] + Parameter #2 [ $length ] + } + } + + Method [ static public method readFile ] { + + - Parameters [1] { + Parameter #0 [ $filename ] + } + } + + Method [ static public method writeFile ] { + + - Parameters [3] { + Parameter #0 [ $filename ] + Parameter #1 [ $data ] + Parameter #2 [ $flags ] + } + } + + Method [ static public method gethostbyname ] { + + - Parameters [2] { + Parameter #0 [ $domain_name ] + Parameter #1 [ $family ] + } + } + + Method [ static public method getaddrinfo ] { + + - Parameters [5] { + Parameter #0 [ $hostname ] + Parameter #1 [ $family ] + Parameter #2 [ $socktype ] + Parameter #3 [ $protocol ] + Parameter #4 [ $service ] + } + } + + Method [ static public method call_user_func ] { + + - Parameters [1] { + Parameter #0 [ $func ] + } + } + + Method [ static public method call_user_func_array ] { + + - Parameters [2] { + Parameter #0 [ $func ] + Parameter #1 [ array $params ] + } + } + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class Swoole\Http\Client ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [19] { + Property [ public $type ] + Property [ public $errCode ] + Property [ public $sock ] + Property [ public $statusCode ] + Property [ public $host ] + Property [ public $port ] + Property [ public $requestMethod ] + Property [ public $requestHeaders ] + Property [ public $requestBody ] + Property [ public $uploadFiles ] + Property [ public $set_cookie_headers ] + Property [ public $downloadFile ] + Property [ public $headers ] + Property [ public $cookies ] + Property [ public $body ] + Property [ public $onConnect ] + Property [ public $onError ] + Property [ public $onMessage ] + Property [ public $onClose ] + } + + - Methods [17] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $ssl ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + } + + Method [ public method setMethod ] { + + - Parameters [1] { + Parameter #0 [ $method ] + } + } + + Method [ public method setHeaders ] { + + - Parameters [1] { + Parameter #0 [ array $headers ] + } + } + + Method [ public method setCookies ] { + + - Parameters [1] { + Parameter #0 [ array $cookies ] + } + } + + Method [ public method setData ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method addFile ] { + + - Parameters [6] { + Parameter #0 [ $path ] + Parameter #1 [ $name ] + Parameter #2 [ $type ] + Parameter #3 [ $filename ] + Parameter #4 [ $offset ] + Parameter #5 [ $length ] + } + } + + Method [ public method execute ] { + + - Parameters [2] { + Parameter #0 [ $path ] + Parameter #1 [ $callback ] + } + } + + Method [ public method push ] { + + - Parameters [3] { + Parameter #0 [ $data ] + Parameter #1 [ $opcode ] + Parameter #2 [ $finish ] + } + } + + Method [ public method get ] { + + - Parameters [2] { + Parameter #0 [ $path ] + Parameter #1 [ $callback ] + } + } + + Method [ public method post ] { + + - Parameters [3] { + Parameter #0 [ $path ] + Parameter #1 [ $data ] + Parameter #2 [ $callback ] + } + } + + Method [ public method upgrade ] { + + - Parameters [2] { + Parameter #0 [ $path ] + Parameter #1 [ $callback ] + } + } + + Method [ public method download ] { + + - Parameters [4] { + Parameter #0 [ $path ] + Parameter #1 [ $file ] + Parameter #2 [ $callback ] + Parameter #3 [ $offset ] + } + } + + Method [ public method isConnected ] { + + - Parameters [0] { + } + } + + Method [ public method close ] { + + - Parameters [0] { + } + } + + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ $event_name ] + Parameter #1 [ $callback ] + } + } + } + } + + Class [ class Swoole\Process ] { + + - Constants [5] { + Constant [ public integer IPC_NOWAIT ] { 256 } + Constant [ public integer PIPE_MASTER ] { 1 } + Constant [ public integer PIPE_WORKER ] { 2 } + Constant [ public integer PIPE_READ ] { 3 } + Constant [ public integer PIPE_WRITE ] { 4 } + } + + - Static properties [0] { + } + + - Static methods [6] { + Method [ static public method wait ] { + + - Parameters [1] { + Parameter #0 [ $blocking ] + } + } + + Method [ static public method signal ] { + + - Parameters [2] { + Parameter #0 [ $signal_no ] + Parameter #1 [ $callback ] + } + } + + Method [ static public method alarm ] { + + - Parameters [1] { + Parameter #0 [ $usec ] + } + } + + Method [ static public method kill ] { + + - Parameters [2] { + Parameter #0 [ $pid ] + Parameter #1 [ $signal_no ] + } + } + + Method [ static public method daemon ] { + + - Parameters [2] { + Parameter #0 [ $nochdir ] + Parameter #1 [ $noclose ] + } + } + + Method [ static public method setaffinity ] { + + - Parameters [1] { + Parameter #0 [ array $cpu_settings ] + } + } + } + + - Properties [6] { + Property [ public $pipe ] + Property [ public $callback ] + Property [ public $msgQueueId ] + Property [ public $msgQueueKey ] + Property [ public $pid ] + Property [ public $id ] + } + + - Methods [16] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $callback ] + Parameter #1 [ $redirect_stdin_and_stdout ] + Parameter #2 [ $pipe_type ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method setTimeout ] { + + - Parameters [1] { + Parameter #0 [ $seconds ] + } + } + + Method [ public method setBlocking ] { + + - Parameters [1] { + Parameter #0 [ $blocking ] + } + } + + Method [ public method useQueue ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $mode ] + } + } + + Method [ public method statQueue ] { + + - Parameters [0] { + } + } + + Method [ public method freeQueue ] { + + - Parameters [0] { + } + } + + Method [ public method start ] { + + - Parameters [0] { + } + } + + Method [ public method write ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method close ] { + + - Parameters [0] { + } + } + + Method [ public method read ] { + + - Parameters [1] { + Parameter #0 [ $size ] + } + } + + Method [ public method push ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method pop ] { + + - Parameters [1] { + Parameter #0 [ $size ] + } + } + + Method [ public method exit ] { + + - Parameters [1] { + Parameter #0 [ $exit_code ] + } + } + + Method [ public method exec ] { + + - Parameters [2] { + Parameter #0 [ $exec_file ] + Parameter #1 [ $args ] + } + } + + Method [ public method name ] { + + - Parameters [1] { + Parameter #0 [ $process_name ] + } + } + } + } + + Class [ class Swoole\Process\Pool ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [6] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $worker_num ] + Parameter #1 [ $ipc_type ] + Parameter #2 [ $msgqueue_key ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ $event_name ] + Parameter #1 [ $callback ] + } + } + + Method [ public method listen ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $backlog ] + } + } + + Method [ public method write ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method start ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Table implements ArrayAccess, Iterator, Traversable, Countable ] { + + - Constants [3] { + Constant [ public integer TYPE_INT ] { 1 } + Constant [ public integer TYPE_STRING ] { 7 } + Constant [ public integer TYPE_FLOAT ] { 6 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [23] { + Method [ public method __construct ] { + + - Parameters [2] { + Parameter #0 [ $table_size ] + Parameter #1 [ $conflict_proportion ] + } + } + + Method [ public method column ] { + + - Parameters [3] { + Parameter #0 [ $name ] + Parameter #1 [ $type ] + Parameter #2 [ $size ] + } + } + + Method [ public method create ] { + + - Parameters [0] { + } + } + + Method [ public method destroy ] { + + - Parameters [0] { + } + } + + Method [ public method set ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ array $value ] + } + } + + Method [ public method get ] { + + - Parameters [2] { + Parameter #0 [ $key ] + Parameter #1 [ $field ] + } + } + + Method [ public method count ] { + + - Parameters [0] { + } + } + + Method [ public method del ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method exist ] { + + - Parameters [1] { + Parameter #0 [ $key ] + } + } + + Method [ public method incr ] { + + - Parameters [3] { + Parameter #0 [ $key ] + Parameter #1 [ $column ] + Parameter #2 [ $incrby ] + } + } + + Method [ public method decr ] { + + - Parameters [3] { + Parameter #0 [ $key ] + Parameter #1 [ $column ] + Parameter #2 [ $decrby ] + } + } + + Method [ public method getMemorySize ] { + + - Parameters [0] { + } + } + + Method [ public method offsetExists ] { + + - Parameters [1] { + Parameter #0 [ $offset ] + } + } + + Method [ public method offsetGet ] { + + - Parameters [1] { + Parameter #0 [ $offset ] + } + } + + Method [ public method offsetSet ] { + + - Parameters [2] { + Parameter #0 [ $offset ] + Parameter #1 [ $value ] + } + } + + Method [ public method offsetUnset ] { + + - Parameters [1] { + Parameter #0 [ $offset ] + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + + Method [ public method rewind ] { + + - Parameters [0] { + } + } + + Method [ public method next ] { + + - Parameters [0] { + } + } + + Method [ public method current ] { + + - Parameters [0] { + } + } + + Method [ public method key ] { + + - Parameters [0] { + } + } + + Method [ public method valid ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Table\Row implements ArrayAccess ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [2] { + Property [ public $key ] + Property [ public $value ] + } + + - Methods [5] { + Method [ public method offsetExists ] { + + - Parameters [1] { + Parameter #0 [ $offset ] + } + } + + Method [ public method offsetGet ] { + + - Parameters [1] { + Parameter #0 [ $offset ] + } + } + + Method [ public method offsetSet ] { + + - Parameters [2] { + Parameter #0 [ $offset ] + Parameter #1 [ $value ] + } + } + + Method [ public method offsetUnset ] { + + - Parameters [1] { + Parameter #0 [ $offset ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Lock ] { + + - Constants [5] { + Constant [ public integer FILELOCK ] { 2 } + Constant [ public integer MUTEX ] { 3 } + Constant [ public integer SEM ] { 4 } + Constant [ public integer RWLOCK ] { 1 } + Constant [ public integer SPINLOCK ] { 5 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [1] { + Property [ public $errCode ] + } + + - Methods [9] { + Method [ public method __construct ] { + + - Parameters [2] { + Parameter #0 [ $type ] + Parameter #1 [ $filename ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method lock ] { + + - Parameters [0] { + } + } + + Method [ public method lockwait ] { + + - Parameters [1] { + Parameter #0 [ $timeout ] + } + } + + Method [ public method trylock ] { + + - Parameters [0] { + } + } + + Method [ public method lock_read ] { + + - Parameters [0] { + } + } + + Method [ public method trylock_read ] { + + - Parameters [0] { + } + } + + Method [ public method unlock ] { + + - Parameters [0] { + } + } + + Method [ public method destroy ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Atomic ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + } + + Method [ public method add ] { + + - Parameters [1] { + Parameter #0 [ $add_value ] + } + } + + Method [ public method sub ] { + + - Parameters [1] { + Parameter #0 [ $sub_value ] + } + } + + Method [ public method get ] { + + - Parameters [0] { + } + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + } + + Method [ public method wait ] { + + - Parameters [1] { + Parameter #0 [ $timeout ] + } + } + + Method [ public method wakeup ] { + + - Parameters [1] { + Parameter #0 [ $count ] + } + } + + Method [ public method cmpset ] { + + - Parameters [2] { + Parameter #0 [ $cmp_value ] + Parameter #1 [ $new_value ] + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + } + } + + Class [ class Swoole\Atomic\Long ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [8] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + } + + Method [ public method add ] { + + - Parameters [1] { + Parameter #0 [ $add_value ] + } + } + + Method [ public method sub ] { + + - Parameters [1] { + Parameter #0 [ $sub_value ] + } + } + + Method [ public method get ] { + + - Parameters [0] { + } + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ $value ] + } + } + + Method [ public method cmpset ] { + + - Parameters [2] { + Parameter #0 [ $cmp_value ] + Parameter #1 [ $new_value ] + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + } + } + + Class [ class Swoole\Http\Server extends Swoole\Server ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [31] { + Property [ public $onConnect ] + Property [ public $onReceive ] + Property [ public $onClose ] + Property [ public $onPacket ] + Property [ public $onBufferFull ] + Property [ public $onBufferEmpty ] + Property [ public $onStart ] + Property [ public $onShutdown ] + Property [ public $onWorkerStart ] + Property [ public $onWorkerStop ] + Property [ public $onWorkerExit ] + Property [ public $onWorkerError ] + Property [ public $onTask ] + Property [ public $onFinish ] + Property [ public $onManagerStart ] + Property [ public $onManagerStop ] + Property [ public $onPipeMessage ] + Property [ public $connections ] + Property [ public $host ] + Property [ public $port ] + Property [ public $type ] + Property [ public $mode ] + Property [ public $ports ] + Property [ public $master_pid ] + Property [ public $manager_pid ] + Property [ public $worker_id ] + Property [ public $taskworker ] + Property [ public $worker_pid ] + Property [ public $onRequest ] + Property [ public $onHandshake ] + Property [ public $setting ] + } + + - Methods [42] { + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ $event_name ] + Parameter #1 [ $callback ] + } + } + + Method [ public method start ] { + + - Parameters [0] { + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + + Method [ public method __construct ] { + + - Parameters [4] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $mode ] + Parameter #3 [ $sock_type ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method listen ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $sock_type ] + } + } + + Method [ public method addlistener ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $sock_type ] + } + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + } + + Method [ public method send ] { + + - Parameters [3] { + Parameter #0 [ $fd ] + Parameter #1 [ $send_data ] + Parameter #2 [ $reactor_id ] + } + } + + Method [ public method sendto ] { + + - Parameters [4] { + Parameter #0 [ $ip ] + Parameter #1 [ $port ] + Parameter #2 [ $send_data ] + Parameter #3 [ $server_socket ] + } + } + + Method [ public method sendwait ] { + + - Parameters [2] { + Parameter #0 [ $conn_fd ] + Parameter #1 [ $send_data ] + } + } + + Method [ public method exist ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method protect ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $is_protected ] + } + } + + Method [ public method sendfile ] { + + - Parameters [4] { + Parameter #0 [ $conn_fd ] + Parameter #1 [ $filename ] + Parameter #2 [ $offset ] + Parameter #3 [ $length ] + } + } + + Method [ public method close ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $reset ] + } + } + + Method [ public method confirm ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method pause ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method resume ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method task ] { + + - Parameters [3] { + Parameter #0 [ $data ] + Parameter #1 [ $worker_id ] + Parameter #2 [ $finish_callback ] + } + } + + Method [ public method taskwait ] { + + - Parameters [3] { + Parameter #0 [ $data ] + Parameter #1 [ $timeout ] + Parameter #2 [ $worker_id ] + } + } + + Method [ public method taskWaitMulti ] { + + - Parameters [2] { + Parameter #0 [ array $tasks ] + Parameter #1 [ $timeout ] + } + } + + Method [ public method taskCo ] { + + - Parameters [2] { + Parameter #0 [ array $tasks ] + Parameter #1 [ $timeout ] + } + } + + Method [ public method finish ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method reload ] { + + - Parameters [0] { + } + } + + Method [ public method shutdown ] { + + - Parameters [0] { + } + } + + Method [ public method stop ] { + + - Parameters [1] { + Parameter #0 [ $worker_id ] + } + } + + Method [ public method getLastError ] { + + - Parameters [0] { + } + } + + Method [ public method heartbeat ] { + + - Parameters [1] { + Parameter #0 [ $reactor_id ] + } + } + + Method [ public method connection_info ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $reactor_id ] + } + } + + Method [ public method connection_list ] { + + - Parameters [2] { + Parameter #0 [ $start_fd ] + Parameter #1 [ $find_count ] + } + } + + Method [ public method getClientInfo ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $reactor_id ] + } + } + + Method [ public method getClientList ] { + + - Parameters [2] { + Parameter #0 [ $start_fd ] + Parameter #1 [ $find_count ] + } + } + + Method [ public method after ] { + + - Parameters [3] { + Parameter #0 [ $ms ] + Parameter #1 [ $callback ] + Parameter #2 [ $param ] + } + } + + Method [ public method tick ] { + + - Parameters [2] { + Parameter #0 [ $ms ] + Parameter #1 [ $callback ] + } + } + + Method [ public method clearTimer ] { + + - Parameters [1] { + Parameter #0 [ $timer_id ] + } + } + + Method [ public method defer ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + + Method [ public method sendMessage ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ $dst_worker_id ] + } + } + + Method [ public method addProcess ] { + + - Parameters [1] { + Parameter #0 [ swoole_process $process ] + } + } + + Method [ public method stats ] { + + - Parameters [0] { + } + } + + Method [ public method getSocket ] { + + - Parameters [1] { + Parameter #0 [ $port ] + } + } + + Method [ public method bind ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $uid ] + } + } + } + } + + Class [ class Swoole\Http\Response ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ static public method create ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + } + + - Properties [4] { + Property [ public $fd ] + Property [ public $header ] + Property [ public $cookie ] + Property [ public $trailer ] + } + + - Methods [15] { + Method [ public method initHeader ] { + + - Parameters [0] { + } + } + + Method [ public method cookie ] { + + - Parameters [7] { + Parameter #0 [ $name ] + Parameter #1 [ $value ] + Parameter #2 [ $expires ] + Parameter #3 [ $path ] + Parameter #4 [ $domain ] + Parameter #5 [ $secure ] + Parameter #6 [ $httponly ] + } + } + + Method [ public method rawcookie ] { + + - Parameters [7] { + Parameter #0 [ $name ] + Parameter #1 [ $value ] + Parameter #2 [ $expires ] + Parameter #3 [ $path ] + Parameter #4 [ $domain ] + Parameter #5 [ $secure ] + Parameter #6 [ $httponly ] + } + } + + Method [ public method status ] { + + - Parameters [1] { + Parameter #0 [ $http_code ] + } + } + + Method [ public method gzip ] { + + - Parameters [1] { + Parameter #0 [ $compress_level ] + } + } + + Method [ public method header ] { + + - Parameters [3] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + Parameter #2 [ $ucwords ] + } + } + + Method [ public method trailer ] { + + - Parameters [3] { + Parameter #0 [ $key ] + Parameter #1 [ $value ] + Parameter #2 [ $ucwords ] + } + } + + Method [ public method write ] { + + - Parameters [1] { + Parameter #0 [ $content ] + } + } + + Method [ public method end ] { + + - Parameters [1] { + Parameter #0 [ $content ] + } + } + + Method [ public method sendfile ] { + + - Parameters [3] { + Parameter #0 [ $filename ] + Parameter #1 [ $offset ] + Parameter #2 [ $length ] + } + } + + Method [ public method redirect ] { + + - Parameters [2] { + Parameter #0 [ $location ] + Parameter #1 [ $http_code ] + } + } + + Method [ public method detach ] { + + - Parameters [0] { + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Http\Request ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [9] { + Property [ public $fd ] + Property [ public $header ] + Property [ public $server ] + Property [ public $request ] + Property [ public $cookie ] + Property [ public $get ] + Property [ public $files ] + Property [ public $post ] + Property [ public $tmpfiles ] + } + + - Methods [5] { + Method [ public method rawcontent ] { + + - Parameters [0] { + } + } + + Method [ public method getData ] { + + - Parameters [0] { + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Buffer ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [12] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $size ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method __toString ] { + + - Parameters [0] { + } + } + + Method [ public method substr ] { + + - Parameters [3] { + Parameter #0 [ $offset ] + Parameter #1 [ $length ] + Parameter #2 [ $seek ] + } + } + + Method [ public method write ] { + + - Parameters [2] { + Parameter #0 [ $offset ] + Parameter #1 [ $data ] + } + } + + Method [ public method read ] { + + - Parameters [2] { + Parameter #0 [ $offset ] + Parameter #1 [ $length ] + } + } + + Method [ public method append ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method expand ] { + + - Parameters [1] { + Parameter #0 [ $size ] + } + } + + Method [ public method recycle ] { + + - Parameters [0] { + } + } + + Method [ public method clear ] { + + - Parameters [0] { + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + } + } + + Class [ class Swoole\WebSocket\Server extends Swoole\Http\Server ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [2] { + Method [ static public method pack ] { + + - Parameters [4] { + Parameter #0 [ $data ] + Parameter #1 [ $opcode ] + Parameter #2 [ $finish ] + Parameter #3 [ $mask ] + } + } + + Method [ static public method unpack ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + } + + - Properties [31] { + Property [ public $onConnect ] + Property [ public $onReceive ] + Property [ public $onClose ] + Property [ public $onPacket ] + Property [ public $onBufferFull ] + Property [ public $onBufferEmpty ] + Property [ public $onStart ] + Property [ public $onShutdown ] + Property [ public $onWorkerStart ] + Property [ public $onWorkerStop ] + Property [ public $onWorkerExit ] + Property [ public $onWorkerError ] + Property [ public $onTask ] + Property [ public $onFinish ] + Property [ public $onManagerStart ] + Property [ public $onManagerStop ] + Property [ public $onPipeMessage ] + Property [ public $connections ] + Property [ public $host ] + Property [ public $port ] + Property [ public $type ] + Property [ public $mode ] + Property [ public $ports ] + Property [ public $master_pid ] + Property [ public $manager_pid ] + Property [ public $worker_id ] + Property [ public $taskworker ] + Property [ public $worker_pid ] + Property [ public $onRequest ] + Property [ public $onHandshake ] + Property [ public $setting ] + } + + - Methods [44] { + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ $event_name ] + Parameter #1 [ $callback ] + } + } + + Method [ public method push ] { + + - Parameters [4] { + Parameter #0 [ $fd ] + Parameter #1 [ $data ] + Parameter #2 [ $opcode ] + Parameter #3 [ $finish ] + } + } + + Method [ public method exist ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method isEstablished ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method start ] { + + - Parameters [0] { + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + + Method [ public method __construct ] { + + - Parameters [4] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $mode ] + Parameter #3 [ $sock_type ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method listen ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $sock_type ] + } + } + + Method [ public method addlistener ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $sock_type ] + } + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + } + + Method [ public method send ] { + + - Parameters [3] { + Parameter #0 [ $fd ] + Parameter #1 [ $send_data ] + Parameter #2 [ $reactor_id ] + } + } + + Method [ public method sendto ] { + + - Parameters [4] { + Parameter #0 [ $ip ] + Parameter #1 [ $port ] + Parameter #2 [ $send_data ] + Parameter #3 [ $server_socket ] + } + } + + Method [ public method sendwait ] { + + - Parameters [2] { + Parameter #0 [ $conn_fd ] + Parameter #1 [ $send_data ] + } + } + + Method [ public method protect ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $is_protected ] + } + } + + Method [ public method sendfile ] { + + - Parameters [4] { + Parameter #0 [ $conn_fd ] + Parameter #1 [ $filename ] + Parameter #2 [ $offset ] + Parameter #3 [ $length ] + } + } + + Method [ public method close ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $reset ] + } + } + + Method [ public method confirm ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method pause ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method resume ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method task ] { + + - Parameters [3] { + Parameter #0 [ $data ] + Parameter #1 [ $worker_id ] + Parameter #2 [ $finish_callback ] + } + } + + Method [ public method taskwait ] { + + - Parameters [3] { + Parameter #0 [ $data ] + Parameter #1 [ $timeout ] + Parameter #2 [ $worker_id ] + } + } + + Method [ public method taskWaitMulti ] { + + - Parameters [2] { + Parameter #0 [ array $tasks ] + Parameter #1 [ $timeout ] + } + } + + Method [ public method taskCo ] { + + - Parameters [2] { + Parameter #0 [ array $tasks ] + Parameter #1 [ $timeout ] + } + } + + Method [ public method finish ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method reload ] { + + - Parameters [0] { + } + } + + Method [ public method shutdown ] { + + - Parameters [0] { + } + } + + Method [ public method stop ] { + + - Parameters [1] { + Parameter #0 [ $worker_id ] + } + } + + Method [ public method getLastError ] { + + - Parameters [0] { + } + } + + Method [ public method heartbeat ] { + + - Parameters [1] { + Parameter #0 [ $reactor_id ] + } + } + + Method [ public method connection_info ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $reactor_id ] + } + } + + Method [ public method connection_list ] { + + - Parameters [2] { + Parameter #0 [ $start_fd ] + Parameter #1 [ $find_count ] + } + } + + Method [ public method getClientInfo ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $reactor_id ] + } + } + + Method [ public method getClientList ] { + + - Parameters [2] { + Parameter #0 [ $start_fd ] + Parameter #1 [ $find_count ] + } + } + + Method [ public method after ] { + + - Parameters [3] { + Parameter #0 [ $ms ] + Parameter #1 [ $callback ] + Parameter #2 [ $param ] + } + } + + Method [ public method tick ] { + + - Parameters [2] { + Parameter #0 [ $ms ] + Parameter #1 [ $callback ] + } + } + + Method [ public method clearTimer ] { + + - Parameters [1] { + Parameter #0 [ $timer_id ] + } + } + + Method [ public method defer ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + + Method [ public method sendMessage ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ $dst_worker_id ] + } + } + + Method [ public method addProcess ] { + + - Parameters [1] { + Parameter #0 [ swoole_process $process ] + } + } + + Method [ public method stats ] { + + - Parameters [0] { + } + } + + Method [ public method getSocket ] { + + - Parameters [1] { + Parameter #0 [ $port ] + } + } + + Method [ public method bind ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $uid ] + } + } + } + } + + Class [ class Swoole\WebSocket\Frame ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class Swoole\MySQL ] { + + - Constants [6] { + Constant [ public integer STATE_QUERY ] { 0 } + Constant [ public integer STATE_READ_START ] { 1 } + Constant [ public integer STATE_READ_FIELD ] { 2 } + Constant [ public integer STATE_READ_ROW ] { 3 } + Constant [ public integer STATE_READ_END ] { 5 } + Constant [ public integer STATE_CLOSED ] { 6 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [11] { + Property [ public $serverInfo ] + Property [ public $sock ] + Property [ public $connected ] + Property [ public $errno ] + Property [ public $connect_errno ] + Property [ public $error ] + Property [ public $connect_error ] + Property [ public $insert_id ] + Property [ public $affected_rows ] + Property [ public $onConnect ] + Property [ public $onClose ] + } + + - Methods [11] { + Method [ public method __construct ] { + + - Parameters [0] { + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method connect ] { + + - Parameters [2] { + Parameter #0 [ array $server_config ] + Parameter #1 [ $callback ] + } + } + + Method [ public method begin ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + + Method [ public method commit ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + + Method [ public method rollback ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + + Method [ public method escape ] { + + - Parameters [2] { + Parameter #0 [ $string ] + Parameter #1 [ $flags ] + } + } + + Method [ public method query ] { + + - Parameters [2] { + Parameter #0 [ $sql ] + Parameter #1 [ $callback ] + } + } + + Method [ public method close ] { + + - Parameters [0] { + } + } + + Method [ public method getState ] { + + - Parameters [0] { + } + } + + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ $event_name ] + Parameter #1 [ $callback ] + } + } + } + } + + Class [ class Swoole\MySQL\Exception extends Exception implements Throwable ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ protected $message ] + Property [ protected $code ] + Property [ protected $file ] + Property [ protected $line ] + } + + - Methods [10] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $message ] + Parameter #1 [ $code ] + Parameter #2 [ $previous ] + } + } + + Method [ public method __wakeup ] { + } + + Method [ final public method getMessage ] { + } + + Method [ final public method getCode ] { + } + + Method [ final public method getFile ] { + } + + Method [ final public method getLine ] { + } + + Method [ final public method getTrace ] { + } + + Method [ final public method getPrevious ] { + } + + Method [ final public method getTraceAsString ] { + } + + Method [ public method __toString ] { + } + } + } + + Class [ class Swoole\Mmap ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ static public method open ] { + + - Parameters [3] { + Parameter #0 [ $filename ] + Parameter #1 [ $size ] + Parameter #2 [ $offset ] + } + } + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class Swoole\Channel ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [5] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $size ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method push ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method pop ] { + + - Parameters [0] { + } + } + + Method [ public method stats ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Coroutine\Channel ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ static public method select ] { + + - Parameters [3] { + Parameter #0 [ array or NULL &$read_list ] + Parameter #1 [ array or NULL &$write_list ] + Parameter #2 [ $timeout ] + } + } + } + + - Properties [1] { + Property [ public $capacity ] + } + + - Methods [9] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $size ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method push ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method pop ] { + + - Parameters [0] { + } + } + + Method [ public method isEmpty ] { + + - Parameters [0] { + } + } + + Method [ public method isFull ] { + + - Parameters [0] { + } + } + + Method [ public method close ] { + + - Parameters [0] { + } + } + + Method [ public method stats ] { + + - Parameters [0] { + } + } + + Method [ public method length ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\RingQueue ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [7] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $len ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method push ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method pop ] { + + - Parameters [0] { + } + } + + Method [ public method count ] { + + - Parameters [0] { + } + } + + Method [ public method isFull ] { + + - Parameters [0] { + } + } + + Method [ public method isEmpty ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\MsgQueue ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [7] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $len ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method push ] { + + - Parameters [2] { + Parameter #0 [ $data ] + Parameter #1 [ $type ] + } + } + + Method [ public method pop ] { + + - Parameters [1] { + Parameter #0 [ $type ] + } + } + + Method [ public method setBlocking ] { + + - Parameters [1] { + Parameter #0 [ $blocking ] + } + } + + Method [ public method stats ] { + + - Parameters [0] { + } + } + + Method [ public method destory ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Http2\Client extends Swoole\Client ] { + + - Constants [7] { + Constant [ public integer MSG_OOB ] { 1 } + Constant [ public integer MSG_PEEK ] { 2 } + Constant [ public integer MSG_DONTWAIT ] { 64 } + Constant [ public integer MSG_WAITALL ] { 256 } + Constant [ public integer SHUT_RDWR ] { 2 } + Constant [ public integer SHUT_RD ] { 0 } + Constant [ public integer SHUT_WR ] { 1 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [16] { + Property [ public $errCode ] + Property [ public $sock ] + Property [ public $reuse ] + Property [ public $reuseCount ] + Property [ public $type ] + Property [ public $id ] + Property [ public $setting ] + Property [ public $onConnect ] + Property [ public $onError ] + Property [ public $onReceive ] + Property [ public $onClose ] + Property [ public $onBufferFull ] + Property [ public $onBufferEmpty ] + Property [ public $onSSLReady ] + Property [ public $requestHeaders ] + Property [ public $cookies ] + } + + - Methods [34] { + Method [ public method __construct ] { + } + + Method [ public method __destruct ] { + } + + Method [ public method setHeaders ] { + } + + Method [ public method setCookies ] { + } + + Method [ public method get ] { + } + + Method [ public method post ] { + } + + Method [ public method onConnect ] { + } + + Method [ public method onError ] { + } + + Method [ public method onReceive ] { + } + + Method [ public method onClose ] { + } + + Method [ public method openStream ] { + } + + Method [ public method push ] { + } + + Method [ public method closeStream ] { + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + } + + Method [ public method connect ] { + + - Parameters [4] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $timeout ] + Parameter #3 [ $sock_flag ] + } + } + + Method [ public method recv ] { + + - Parameters [2] { + Parameter #0 [ $size ] + Parameter #1 [ $flag ] + } + } + + Method [ public method send ] { + + - Parameters [2] { + Parameter #0 [ $data ] + Parameter #1 [ $flag ] + } + } + + Method [ public method pipe ] { + + - Parameters [1] { + Parameter #0 [ $dst_socket ] + } + } + + Method [ public method sendfile ] { + + - Parameters [3] { + Parameter #0 [ $filename ] + Parameter #1 [ $offset ] + Parameter #2 [ $length ] + } + } + + Method [ public method sendto ] { + + - Parameters [3] { + Parameter #0 [ $ip ] + Parameter #1 [ $port ] + Parameter #2 [ $data ] + } + } + + Method [ public method sleep ] { + + - Parameters [0] { + } + } + + Method [ public method wakeup ] { + + - Parameters [0] { + } + } + + Method [ public method pause ] { + + - Parameters [0] { + } + } + + Method [ public method resume ] { + + - Parameters [0] { + } + } + + Method [ public method shutdown ] { + + - Parameters [1] { + Parameter #0 [ $how ] + } + } + + Method [ public method enableSSL ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + + Method [ public method getPeerCert ] { + + - Parameters [0] { + } + } + + Method [ public method verifyPeerCert ] { + + - Parameters [0] { + } + } + + Method [ public method isConnected ] { + + - Parameters [0] { + } + } + + Method [ public method getsockname ] { + + - Parameters [0] { + } + } + + Method [ public method getpeername ] { + + - Parameters [0] { + } + } + + Method [ public method close ] { + + - Parameters [1] { + Parameter #0 [ $force ] + } + } + + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ $event_name ] + Parameter #1 [ $callback ] + } + } + + Method [ public method getSocket ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Http2\Response ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ public $errCode ] + Property [ public $statusCode ] + Property [ public $body ] + Property [ public $streamId ] + } + + - Methods [0] { + } + } + + Class [ class Swoole\Coroutine\Http2\Client ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [9] { + Property [ public $errCode ] + Property [ public $sock ] + Property [ public $reuse ] + Property [ public $reuseCount ] + Property [ public $type ] + Property [ public $setting ] + Property [ public $connected ] + Property [ public $host ] + Property [ public $port ] + } + + - Methods [8] { + Method [ public method __construct ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $ssl ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + } + + Method [ public method connect ] { + + - Parameters [0] { + } + } + + Method [ public method send ] { + + - Parameters [1] { + Parameter #0 [ $request ] + } + } + + Method [ public method recv ] { + + - Parameters [0] { + } + } + + Method [ public method write ] { + + - Parameters [3] { + Parameter #0 [ $stream_id ] + Parameter #1 [ $data ] + Parameter #2 [ $end_stream ] + } + } + + Method [ public method close ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Coroutine\Http2\Request ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [5] { + Property [ public $method ] + Property [ public $headers ] + Property [ public $data ] + Property [ public $pipeline ] + Property [ public $files ] + } + + - Methods [0] { + } + } + + Class [ class Swoole\Serialize ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [2] { + Method [ static public method pack ] { + + - Parameters [2] { + Parameter #0 [ $data ] + Parameter #1 [ $flag ] + } + } + + Method [ static public method unpack ] { + + - Parameters [2] { + Parameter #0 [ $string ] + Parameter #1 [ $args ] + } + } + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class Swoole\Redis ] { + + - Constants [5] { + Constant [ public integer STATE_CONNECT ] { 0 } + Constant [ public integer STATE_READY ] { 1 } + Constant [ public integer STATE_WAIT_RESULT ] { 2 } + Constant [ public integer STATE_SUBSCRIBE ] { 3 } + Constant [ public integer STATE_CLOSED ] { 4 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [9] { + Property [ public $onConnect ] + Property [ public $onClose ] + Property [ public $onMessage ] + Property [ public $setting ] + Property [ public $host ] + Property [ public $port ] + Property [ public $sock ] + Property [ public $errCode ] + Property [ public $errMsg ] + } + + - Methods [7] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ array or NULL $setting ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ $event_name ] + Parameter #1 [ $callback ] + } + } + + Method [ public method connect ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $callback ] + } + } + + Method [ public method close ] { + + - Parameters [0] { + } + } + + Method [ public method getState ] { + + - Parameters [0] { + } + } + + Method [ public method __call ] { + + - Parameters [2] { + Parameter #0 [ $command ] + Parameter #1 [ $params ] + } + } + } + } + + Class [ class Swoole\Redis\Server extends Swoole\Server ] { + + - Constants [7] { + Constant [ public integer NIL ] { 1 } + Constant [ public integer ERROR ] { 0 } + Constant [ public integer STATUS ] { 2 } + Constant [ public integer INT ] { 3 } + Constant [ public integer STRING ] { 4 } + Constant [ public integer SET ] { 5 } + Constant [ public integer MAP ] { 6 } + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ static public method format ] { + + - Parameters [2] { + Parameter #0 [ $type ] + Parameter #1 [ $value ] + } + } + } + + - Properties [29] { + Property [ public $onConnect ] + Property [ public $onReceive ] + Property [ public $onClose ] + Property [ public $onPacket ] + Property [ public $onBufferFull ] + Property [ public $onBufferEmpty ] + Property [ public $onStart ] + Property [ public $onShutdown ] + Property [ public $onWorkerStart ] + Property [ public $onWorkerStop ] + Property [ public $onWorkerExit ] + Property [ public $onWorkerError ] + Property [ public $onTask ] + Property [ public $onFinish ] + Property [ public $onManagerStart ] + Property [ public $onManagerStop ] + Property [ public $onPipeMessage ] + Property [ public $setting ] + Property [ public $connections ] + Property [ public $host ] + Property [ public $port ] + Property [ public $type ] + Property [ public $mode ] + Property [ public $ports ] + Property [ public $master_pid ] + Property [ public $manager_pid ] + Property [ public $worker_id ] + Property [ public $taskworker ] + Property [ public $worker_pid ] + } + + - Methods [43] { + Method [ public method start ] { + + - Parameters [0] { + } + } + + Method [ public method setHandler ] { + + - Parameters [4] { + Parameter #0 [ $command ] + Parameter #1 [ $callback ] + Parameter #2 [ $number_of_string_param ] + Parameter #3 [ $type_of_array_param ] + } + } + + Method [ public method __construct ] { + + - Parameters [4] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $mode ] + Parameter #3 [ $sock_type ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + + Method [ public method listen ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $sock_type ] + } + } + + Method [ public method addlistener ] { + + - Parameters [3] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $sock_type ] + } + } + + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ $event_name ] + Parameter #1 [ $callback ] + } + } + + Method [ public method set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + } + + Method [ public method send ] { + + - Parameters [3] { + Parameter #0 [ $fd ] + Parameter #1 [ $send_data ] + Parameter #2 [ $reactor_id ] + } + } + + Method [ public method sendto ] { + + - Parameters [4] { + Parameter #0 [ $ip ] + Parameter #1 [ $port ] + Parameter #2 [ $send_data ] + Parameter #3 [ $server_socket ] + } + } + + Method [ public method sendwait ] { + + - Parameters [2] { + Parameter #0 [ $conn_fd ] + Parameter #1 [ $send_data ] + } + } + + Method [ public method exist ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method protect ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $is_protected ] + } + } + + Method [ public method sendfile ] { + + - Parameters [4] { + Parameter #0 [ $conn_fd ] + Parameter #1 [ $filename ] + Parameter #2 [ $offset ] + Parameter #3 [ $length ] + } + } + + Method [ public method close ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $reset ] + } + } + + Method [ public method confirm ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method pause ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method resume ] { + + - Parameters [1] { + Parameter #0 [ $fd ] + } + } + + Method [ public method task ] { + + - Parameters [3] { + Parameter #0 [ $data ] + Parameter #1 [ $worker_id ] + Parameter #2 [ $finish_callback ] + } + } + + Method [ public method taskwait ] { + + - Parameters [3] { + Parameter #0 [ $data ] + Parameter #1 [ $timeout ] + Parameter #2 [ $worker_id ] + } + } + + Method [ public method taskWaitMulti ] { + + - Parameters [2] { + Parameter #0 [ array $tasks ] + Parameter #1 [ $timeout ] + } + } + + Method [ public method taskCo ] { + + - Parameters [2] { + Parameter #0 [ array $tasks ] + Parameter #1 [ $timeout ] + } + } + + Method [ public method finish ] { + + - Parameters [1] { + Parameter #0 [ $data ] + } + } + + Method [ public method reload ] { + + - Parameters [0] { + } + } + + Method [ public method shutdown ] { + + - Parameters [0] { + } + } + + Method [ public method stop ] { + + - Parameters [1] { + Parameter #0 [ $worker_id ] + } + } + + Method [ public method getLastError ] { + + - Parameters [0] { + } + } + + Method [ public method heartbeat ] { + + - Parameters [1] { + Parameter #0 [ $reactor_id ] + } + } + + Method [ public method connection_info ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $reactor_id ] + } + } + + Method [ public method connection_list ] { + + - Parameters [2] { + Parameter #0 [ $start_fd ] + Parameter #1 [ $find_count ] + } + } + + Method [ public method getClientInfo ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $reactor_id ] + } + } + + Method [ public method getClientList ] { + + - Parameters [2] { + Parameter #0 [ $start_fd ] + Parameter #1 [ $find_count ] + } + } + + Method [ public method after ] { + + - Parameters [3] { + Parameter #0 [ $ms ] + Parameter #1 [ $callback ] + Parameter #2 [ $param ] + } + } + + Method [ public method tick ] { + + - Parameters [2] { + Parameter #0 [ $ms ] + Parameter #1 [ $callback ] + } + } + + Method [ public method clearTimer ] { + + - Parameters [1] { + Parameter #0 [ $timer_id ] + } + } + + Method [ public method defer ] { + + - Parameters [1] { + Parameter #0 [ $callback ] + } + } + + Method [ public method sendMessage ] { + + - Parameters [2] { + Parameter #0 [ $message ] + Parameter #1 [ $dst_worker_id ] + } + } + + Method [ public method addProcess ] { + + - Parameters [1] { + Parameter #0 [ swoole_process $process ] + } + } + + Method [ public method stats ] { + + - Parameters [0] { + } + } + + Method [ public method getSocket ] { + + - Parameters [1] { + Parameter #0 [ $port ] + } + } + + Method [ public method bind ] { + + - Parameters [2] { + Parameter #0 [ $fd ] + Parameter #1 [ $uid ] + } + } + + Method [ public method __sleep ] { + } + + Method [ public method __wakeup ] { + } + } + } + } +} + diff --git a/php-pecl-swoole4.spec b/php-pecl-swoole4.spec new file mode 100644 index 0000000..e132e14 --- /dev/null +++ b/php-pecl-swoole4.spec @@ -0,0 +1,575 @@ +# remirepo spec file for php-pecl-swoole2 +# +# Copyright (c) 2013-2018 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# + +# we don't want -z defs linker flag +%undefine _strict_symbol_defs_build + +%if 0%{?scl:1} +%global sub_prefix %{scl_prefix} +%scl_package php-pecl-swoole +%endif + +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +%global pecl_name swoole +%if "%{php_version}" < "5.6" +# After sockets +%global ini_name %{pecl_name}.ini +%else +# After 20-sockets +%global ini_name 40-%{pecl_name}.ini +%endif + +%if 0%{?fedora} >= 24 || 0%{?rhel} >= 8 +%global with_pgsql 1 +%else +%global with_pgsql 0 +%endif + +%if 0%{?fedora} >= 22 || 0%{?rhel} >= 6 +%global with_nghttpd2 1 +%else +%global with_nghttpd2 0 +%endif + +%global with_hiredis 1 + +Summary: PHP's asynchronous concurrent distributed networking framework +Name: %{?sub_prefix}php-pecl-%{pecl_name}2 +Version: 2.2.0 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +License: BSD +URL: http://pecl.php.net/package/%{pecl_name} +Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz + +BuildRequires: %{?dtsprefix}gcc +BuildRequires: %{?scl_prefix}php-devel > 7 +BuildRequires: %{?scl_prefix}php-pear +BuildRequires: %{?scl_prefix}php-sockets +BuildRequires: %{?scl_prefix}php-mysqlnd +BuildRequires: pcre-devel +BuildRequires: openssl-devel +%if %{with_nghttpd2} +BuildRequires: libnghttp2-devel +%endif +%if %{with_pgsql} +BuildRequires: postgresql-devel > 9.5 +%endif +%if %{with_hiredis} +BuildRequires: hiredis-devel +%endif + +Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} +Requires: %{?scl_prefix}php(api) = %{php_core_api} +Requires: %{?scl_prefix}php-sockets%{?_isa} +Requires: %{?scl_prefix}php-mysqlnd%{?_isa} +%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} + +Provides: %{?scl_prefix}php-%{pecl_name} = %{version} +Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} +Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} +Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +%if "%{?scl_prefix}" != "%{?sub_prefix}" +Provides: %{?scl_prefix}php-pecl-%{pecl_name}2 = %{version}-%{release} +Provides: %{?scl_prefix}php-pecl-%{pecl_name}2%{?_isa} = %{version}-%{release} +%endif + +# Single version can be installed +Conflicts: %{?sub_prefix}php-pecl-%{pecl_name} < 2 +Conflicts: %{?scl_prefix}php-pecl-%{pecl_name} < 2 + +%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} +# Other third party repo stuff +Obsoletes: php56u-pecl-%{pecl_name}2 <= %{version} +Obsoletes: php56w-pecl-%{pecl_name}2 <= %{version} +Obsoletes: php70u-pecl-%{pecl_name}2 <= %{version} +Obsoletes: php70w-pecl-%{pecl_name}2 <= %{version} +%if "%{php_version}" > "7.1" +Obsoletes: php71u-pecl-%{pecl_name}2 <= %{version} +Obsoletes: php71w-pecl-%{pecl_name}2 <= %{version} +%endif +%if "%{php_version}" > "7.2" +Obsoletes: php72u-pecl-%{pecl_name}2 <= %{version} +Obsoletes: php72w-pecl-%{pecl_name}2 <= %{version} +%endif +%endif + +%if 0%{?fedora} < 20 && 0%{?rhel} < 7 +# Filter shared private +%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} +%{?filter_setup} +%endif + + +%description +Event-driven asynchronous and concurrent networking engine with +high performance for PHP. +- event-driven +- asynchronous non-blocking +- multi-thread reactor +- multi-process worker +- multi-protocol +- millisecond timer +- async mysql client +- built-in http/websocket/http2 server +- async http/websocket client +- async redis client +- async task +- async read/write file system +- async dns lookup +- support IPv4/IPv6/UnixSocket/TCP/UDP +- support SSL/TLS encrypted transmission + +Documentation: https://rawgit.com/tchiotludo/swoole-ide-helper/english/docs/ + +Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}. + + +%package devel +Summary: %{name} developer files (header) +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: %{?scl_prefix}php-devel%{?_isa} +%if "%{?scl_prefix}" != "%{?sub_prefix}" +Provides: %{?scl_prefix}php-pecl-%{pecl_name}-devel = %{version}-%{release} +Provides: %{?scl_prefix}php-pecl-%{pecl_name}-devel%{?_isa} = %{version}-%{release} +%endif + +%description devel +These are the files needed to compile programs using %{name}. + + +%prep +%setup -q -c +mv %{pecl_name}-%{version} NTS + +# Don't install/register tests, install examples as doc +sed -e '/examples/s/role="src"/role="doc"/' \ + %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ + -i package.xml + + +cd NTS +# Sanity check, really often broken +extver=$(sed -n '/#define PHP_SWOOLE_VERSION/{s/.* "//;s/".*$//;p}' php_swoole.h) +if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then + : Error: Upstream extension version is ${extver}, expecting %{version}%{?prever:-%{prever}}. + exit 1 +fi +cd .. + +%if %{with_zts} +# Duplicate source tree for NTS / ZTS build +cp -pr NTS ZTS +%endif + +# Create configuration file +cat << 'EOF' | tee %{ini_name} +; Enable %{summary} extension module +extension=%{pecl_name}.so + +; Configuration +;swoole.aio_thread_num = 2 +;swoole.display_errors = On +;swoole.use_namespace = On +:swoole.use_shortname = On +;swoole.fast_serialize = Off +;swoole.unixsock_buffer_size = 8388608 +EOF + + +%build +%{?dtsenable} + +peclbuild() { +%configure \ + --with-swoole \ + --enable-sockets \ + --enable-trace-log \ +%if %{with_hiredis} + --enable-async-redis \ +%endif + --enable-openssl \ +%if %{with_nghttpd2} + --enable-http2 \ +%endif +%if %{with_pgsql} + --enable-coroutine-postgresql \ +%endif + --enable-thread \ + --enable-mysqlnd \ + --enable-coroutine \ + --with-libdir=%{_lib} \ + --with-php-config=$1 + +make %{?_smp_mflags} +} + +cd NTS +%{_bindir}/phpize +peclbuild %{_bindir}/php-config + +%if %{with_zts} +cd ../ZTS +%{_bindir}/zts-phpize +peclbuild %{_bindir}/zts-php-config +%endif + + +%install +%{?dtsenable} + +make -C NTS \ + install INSTALL_ROOT=%{buildroot} + +# install config file +install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} + +# Install XML package description +install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml + +%if %{with_zts} +make -C ZTS \ + install INSTALL_ROOT=%{buildroot} + +install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} +%endif + +# Test and Documentation +for i in $(grep 'role="test"' package.xml | sed -e 's/^.*name="//;s/".*$//') +do install -Dpm 644 NTS/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i +done +for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') +do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i +done + + +%if 0%{?fedora} < 24 && 0%{?rhel} < 8 +# when pear installed alone, after us +%triggerin -- %{?scl_prefix}php-pear +if [ -x %{__pecl} ] ; then + %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +fi + +# posttrans as pear can be installed after us +%posttrans +if [ -x %{__pecl} ] ; then + %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : +fi + +%postun +if [ $1 -eq 0 -a -x %{__pecl} ] ; then + %{pecl_uninstall} %{pecl_name} >/dev/null || : +fi +%endif + + +%check +OPT="--no-php-ini" +[ -f %{php_extdir}/sockets.so ] && OPT="$OPT -d extension=sockets.so" +[ -f %{php_extdir}/mysqlnd.so ] && OPT="$OPT -d extension=mysqlnd.so" + +cd NTS +: Minimal load test for NTS extension +%{__php} $OPT \ + --define extension=modules/%{pecl_name}.so \ + --modules | grep %{pecl_name} + +%if %{with_zts} +cd ../ZTS +: Minimal load test for ZTS extension +%{__ztsphp} $OPT \ + --define extension=modules/%{pecl_name}.so \ + --modules | grep %{pecl_name} +%endif + + +%files +%{?_licensedir:%license NTS/LICENSE} +%{!?_licensedir:%{pecl_docdir}/%{pecl_name}/LICENSE} +%doc %{pecl_docdir}/%{pecl_name}/*md +%doc %{pecl_docdir}/%{pecl_name}/CREDITS +%{pecl_xmldir}/%{name}.xml + +%config(noreplace) %{php_inidir}/%{ini_name} +%{php_extdir}/%{pecl_name}.so + +%if %{with_zts} +%config(noreplace) %{php_ztsinidir}/%{ini_name} +%{php_ztsextdir}/%{pecl_name}.so +%endif + + +%files devel +%doc %{pecl_testdir}/%{pecl_name} +%doc %{pecl_docdir}/%{pecl_name}/examples +%{php_incldir}/ext/%{pecl_name} + +%if %{with_zts} +%{php_ztsincldir}/ext/%{pecl_name} +%endif + + +%changelog +* Wed May 23 2018 Remi Collet - 2.2.0-1 +- update to 2.2.0 + +* Mon Apr 16 2018 Remi Collet - 2.1.3-1 +- update to 2.1.3 + +* Tue Apr 10 2018 Remi Collet - 2.1.2-1 +- update to 2.1.2 +- add PostgreSQL coroutine client on Fedora 24+ +- enable trace log +- open https://github.com/swoole/swoole-src/issues/1558 + broken build with PHP 7.0 + +* Wed Mar 7 2018 Remi Collet - 2.1.1-1 +- update to 2.1.1 + +* Fri Feb 9 2018 Remi Collet - 2.1.0-1 +- Update to 2.1.0 +- add swoole.use_shortname option in provided configuration + +* Fri Dec 29 2017 Remi Collet - 2.0.12-1 +- Update to 2.0.12 (stable) +- drop PHP 5 support + +* Thu Dec 28 2017 Remi Collet - 2.0.11-1 +- Update to 2.0.11 (stable) +- add upstream patch to fix broken build with PHP 5.x + https://github.com/swoole/swoole-src/issues/1433 + +* Thu Dec 14 2017 Remi Collet - 2.0.10-1 +- Update to 2.0.10 (stable) + +* Thu Aug 31 2017 Remi Collet - 2.0.9-1 +- Update to 2.0.9 (beta) + +* Fri Aug 4 2017 Remi Collet - 2.0.8-1 +- Update to 2.0.8 (beta) +- add devel sub-package + +* Tue Jul 18 2017 Remi Collet - 2.0.7-3 +- rebuild for PHP 7.2.0beta1 new API + +* Fri Mar 17 2017 Remi Collet - 2.0.7-2 +- fix release + +* Fri Mar 17 2017 Remi Collet - 2.0.7-1 +- Update to 2.0.7 (beta) +- rename to php-pecl-swoole2 + +* Mon Mar 6 2017 Remi Collet - 2.0.6-3 +- add upstream patch for + https://github.com/swoole/swoole-src/issues/1118 +- open https://github.com/swoole/swoole-src/issues/1119 + +* Fri Feb 24 2017 Remi Collet - 2.0.6-2 +- use --enable-ringbuffer, --enable-thread and --enable-mysqlnd + +* Tue Jan 24 2017 Remi Collet - 2.0.6-1 +- Update to 2.0.6 (beta) + +* Fri Dec 30 2016 Remi Collet - 2.0.5-1 +- Update to 2.0.5 (beta) +- raise dependency on PHP 5.5 +- add ZTS patch from https://github.com/swoole/swoole-src/pull/992 + +* Fri Dec 30 2016 Remi Collet - 2.0.4-1 +- Update to 2.0.4 (beta) +- open https://github.com/swoole/swoole-src/issues/987 - Options +- open https://github.com/swoole/swoole-src/issues/989 - ZTS build +- disable ZTS extension for now +- open https://github.com/swoole/swoole-src/issues/990 - PHP 5.4 + +* Fri Dec 23 2016 Remi Collet - 1.9.3-1 +- Update to 1.9.3 + +* Mon Dec 19 2016 Remi Collet - 1.9.2-1 +- Update to 1.9.2 + +* Wed Dec 7 2016 Remi Collet - 1.9.1-1 +- Update to 1.9.1 + +* Thu Dec 1 2016 Remi Collet - 1.9.0-2 +- rebuild with PHP 7.1.0 GA + +* Tue Nov 22 2016 Remi Collet - 1.9.0-1 +- Update to 1.9.0 + +* Tue Oct 25 2016 Remi Collet - 1.8.13-1 +- Update to 1.8.13 + +* Fri Sep 30 2016 Remi Collet - 1.8.12-1 +- Update to 1.8.12 + +* Wed Sep 14 2016 Remi Collet - 1.8.11-2 +- rebuild for PHP 7.1 new API version + +* Fri Sep 09 2016 Remi Collet - 1.8.11-1 +- Update to 1.8.11 + +* Thu Sep 01 2016 Remi Collet - 1.8.10-1 +- Update to 1.8.10 + +* Thu Sep 01 2016 Remi Collet - 1.8.9-1 +- Update to 1.8.9 + +* Thu Jul 28 2016 Remi Collet - 1.8.8-2 +- add upstream patch and add back --enable-http2 build option + +* Thu Jul 28 2016 Remi Collet - 1.8.8-1 +- Update to 1.8.8 +- drop --enable-http2 build option (broken) + open https://github.com/swoole/swoole-src/issues/787 + +* Fri Jul 01 2016 Remi Collet - 1.8.7-1 +- Update to 1.8.7 + +* Thu Jun 16 2016 Remi Collet - 1.8.6-1 +- Update to 1.8.6 +- drop --enable-async-mysql and --enable-async-httpclient + removed upstream + +* Thu May 12 2016 Remi Collet - 1.8.5-1 +- Update to 1.8.5 + +* Wed Apr 13 2016 Remi Collet - 1.8.4-1 +- Update to 1.8.4 (stable) + +* Mon Mar 21 2016 Remi Collet - 1.8.3-1 +- Update to 1.8.3 (stable) + +* Wed Mar 02 2016 Remi Collet - 1.8.2-1 +- Update to 1.8.2 (stable) +- add --enable-openssl, --enable-async-httpclient + --enable-http2 and --enable-async-redis to build options + +* Thu Feb 4 2016 Remi Collet - 1.8.1-1 +- Update to 1.8.1 (stable) + +* Wed Jan 27 2016 Remi Collet - 1.8.0-1 +- Update to 1.8.0 (stable) + +* Thu Dec 31 2015 Remi Collet - 1.7.22-2 +- Update to 1.7.22 (new sources) + +* Thu Dec 31 2015 Remi Collet - 1.7.22-1 +- Update to 1.7.22 +- add patch to fix PHP 7 build + open https://github.com/swoole/swoole-src/pull/462 + open https://github.com/swoole/swoole-src/issues/461 + +* Tue Dec 01 2015 Remi Collet - 1.7.21-1 +- Update to 1.7.21 + +* Wed Oct 21 2015 Remi Collet - 1.7.20-1 +- Update to 1.7.20 + +* Tue Oct 13 2015 Remi Collet - 1.7.19-4 +- rebuild for PHP 7.0.0RC5 new API version + +* Fri Sep 18 2015 Remi Collet - 1.7.19-3 +- F23 rebuild with rh_layout + +* Thu Sep 3 2015 Remi Collet - 1.7.19-2 +- allow build against rh-php56 (as more-php56) + +* Mon Aug 31 2015 Remi Collet - 1.7.19-1 +- Update to 1.7.19 + +* Thu Jul 23 2015 Remi Collet - 1.7.18-1 +- Update to 1.7.18 + +* Mon Jun 01 2015 Remi Collet - 1.7.17-1 +- Update to 1.7.17 + +* Fri May 08 2015 Remi Collet - 1.7.16-1 +- Update to 1.7.16 + +* Tue Apr 14 2015 Remi Collet - 1.7.15-1 +- Update to 1.7.15 + +* Thu Mar 26 2015 Remi Collet - 1.7.14-1 +- Update to 1.7.14 + +* Wed Mar 18 2015 Remi Collet - 1.7.13-1 +- Update to 1.7.13 + +* Thu Mar 12 2015 Remi Collet - 1.7.12-1 +- Update to 1.7.12 + +* Tue Mar 10 2015 Remi Collet - 1.7.11-2 +- rebuild with new sources + +* Tue Mar 10 2015 Remi Collet - 1.7.11-1 +- Update to 1.7.11 + +* Sun Feb 15 2015 Remi Collet - 1.7.10-1 +- Update to 1.7.10 +- drop runtime dependency on pear, new scriptlets + +* Wed Jan 07 2015 Remi Collet - 1.7.9-1 +- Update to 1.7.9 + +* Wed Dec 24 2014 Remi Collet - 1.7.8-1.1 +- Fedora 21 SCL mass rebuild + +* Wed Nov 26 2014 Remi Collet - 1.7.8-1 +- Update to 1.7.8 (stable) + +* Tue Oct 28 2014 Remi Collet - 1.7.7-1 +- Update to 1.7.7 (stable) + +* Fri Oct 10 2014 Remi Collet - 1.7.6-1 +- Update to 1.7.6 (stable) + +* Wed Sep 10 2014 Remi Collet - 1.7.5-1 +- Update to 1.7.5 (stable) + +* Tue Aug 26 2014 Remi Collet - 1.7.4-2 +- improve SCL build + +* Tue Jul 15 2014 Remi Collet - 1.7.4-1 +- Update to 1.7.4 (stable) + +* Fri Jun 20 2014 Remi Collet - 1.7.3-1 +- Update to 1.7.3 (stable) + +* Fri May 30 2014 Remi Collet - 1.7.2-1 +- Update to 1.7.2 (stable) +- open https://github.com/matyhtf/swoole/pull/67 (fix EL5 build) + +* Wed Apr 30 2014 Remi Collet - 1.7.1-1 +- Update to 1.7.1 (stable) + +* Wed Apr 16 2014 Remi Collet - 1.7.0-1 +- Update to 1.7.0 + +* Sun Apr 13 2014 Remi Collet - 1.6.12-1 +- Update to 1.6.12 + +* Fri Feb 28 2014 Remi Collet - 1.6.11-2 +- no --enable-async-mysql with php 5.3 + +* Thu Feb 27 2014 Remi Collet - 1.6.11-1 +- Update to 1.6.11 + +* Sun Jan 26 2014 Remi Collet - 1.6.10-1 +- Update to 1.6.10 + +* Thu Jan 02 2014 Remi Collet - 1.6.9-1 +- Update to 1.6.9 (stable) + +* Mon Dec 30 2013 Remi Collet - 1.6.8-1 +- Update to 1.6.8 (stable) + +* Tue Dec 24 2013 Remi Collet - 1.6.7-1 +- initial package, version 1.6.7 (stable) +- open https://github.com/matyhtf/swoole/issues/14 - archive +- open https://github.com/matyhtf/swoole/issues/15 - php 5.5 -- cgit