From b08bf1204bbe7f6aedd7927d00bcde4749f73cc3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 30 Dec 2016 12:06:51 +0100 Subject: php-pecl-swoole: 2.0.4 (beta) --- REFLECTION-DEV | 3914 ++++++++++++++++++++++++++++++++++++++++++++++ php-pecl-swoole-dev.spec | 460 ++++++ 2 files changed, 4374 insertions(+) create mode 100644 REFLECTION-DEV create mode 100644 php-pecl-swoole-dev.spec diff --git a/REFLECTION-DEV b/REFLECTION-DEV new file mode 100644 index 0000000..dcd0640 --- /dev/null +++ b/REFLECTION-DEV @@ -0,0 +1,3914 @@ +Extension [ extension #127 swoole version 2.0.4 ] { + + - INI { + Entry [ swoole.aio_thread_num ] + Current = '2' + } + Entry [ swoole.display_errors ] + Current = 'On' + } + Entry [ swoole.use_namespace ] + Current = 'On' + } + Entry [ swoole.message_queue_key ] + Current = '0' + } + Entry [ swoole.unixsock_buffer_size ] + Current = '8388608' + } + } + + - Constants [67] { + 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.0.4 } + 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 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 } + } + + - Functions { + Function [ function swoole_version ] { + + - Parameters [0] { + } + } + Function [ function swoole_cpu_num ] { + + - Parameters [0] { + } + } + Function [ function swoole_clear_dns_cache ] { + + - 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_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 [ $domain_name ] + Parameter #1 [ $content ] + } + } + 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_strerror ] { + + - Parameters [1] { + Parameter #0 [ $errno ] + } + } + Function [ function swoole_errno ] { + + - Parameters [0] { + } + } + Function [ function swoole_load_module ] { + } + } + + - Classes [32] { + Class [ class Swoole\Server ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [38] { + Method [ public method __construct ] { + + - Parameters [4] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $mode ] + Parameter #3 [ $sock_type ] + } + } + + 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 [3] { + Parameter #0 [ $conn_fd ] + Parameter #1 [ $filename ] + Parameter #2 [ $offset ] + } + } + + 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 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 [ $dst_worker_id ] + Parameter #1 [ $data ] + } + } + + 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\Timer ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [4] { + Method [ static public method tick ] { + + - Parameters [3] { + Parameter #0 [ $ms ] + Parameter #1 [ $callback ] + Parameter #2 [ $param ] + } + } + + Method [ static public method after ] { + + - Parameters [2] { + Parameter #0 [ $ms ] + Parameter #1 [ $callback ] + } + } + + 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 [7] { + 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 ] + } + } + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class Swoole\Async ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [6] { + 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 [ $domain_name ] + Parameter #1 [ $content ] + } + } + + Method [ static public method set ] { + + - Parameters [1] { + Parameter #0 [ array $settings ] + } + } + } + + - 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 [10] { + 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 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 [0] { + } + + - Methods [5] { + 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 getSocket ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Client ] { + + - Constants [4] { + Constant [ integer MSG_OOB ] { 1 } + Constant [ integer MSG_PEEK ] { 2 } + Constant [ integer MSG_DONTWAIT ] { 64 } + Constant [ integer MSG_WAITALL ] { 256 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [4] { + Property [ public $errCode ] + Property [ public $sock ] + Property [ public $reuse ] + Property [ public $reuseCount ] + } + + - Methods [22] { + 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 [2] { + Parameter #0 [ $filename ] + Parameter #1 [ $offset ] + } + } + + 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 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\Coroutine\Client ] { + + - Constants [4] { + Constant [ integer MSG_OOB ] { 1 } + Constant [ integer MSG_PEEK ] { 2 } + Constant [ integer MSG_DONTWAIT ] { 64 } + Constant [ integer MSG_WAITALL ] { 256 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [2] { + Property [ public $errCode ] + Property [ public $sock ] + } + + - Methods [15] { + Method [ public method __construct ] { + } + + Method [ public method __destruct ] { + } + + Method [ public method set ] { + } + + Method [ public method connect ] { + } + + Method [ public method recv ] { + } + + Method [ public method send ] { + } + + Method [ public method sendfile ] { + } + + Method [ public method sendto ] { + } + + Method [ public method enableSSL ] { + } + + Method [ public method getPeerCert ] { + } + + Method [ public method verifyPeerCert ] { + } + + Method [ public method isConnected ] { + } + + Method [ public method getsockname ] { + } + + Method [ public method getpeername ] { + } + + Method [ public method close ] { + } + } + } + + Class [ class Swoole\Coroutine\Redis ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [2] { + Property [ public $errCode ] + Property [ public $errMsg ] + } + + - Methods [148] { + Method [ public method __construct ] { + } + + Method [ public method __destruct ] { + } + + Method [ public method connect ] { + } + + Method [ public method setDefer ] { + } + + Method [ public method getDefer ] { + } + + Method [ public method recv ] { + } + + 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 ] { + } + + 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 ] { + } + + Method [ public method type ] { + } + + Method [ public method strLen ] { + } + + Method [ public method lPop ] { + } + + Method [ public method blPop ] { + } + + Method [ public method rPop ] { + } + + 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 ] { + } + + Method [ public method sGetMembers ] { + } + + Method [ public method sRandMember ] { + } + + Method [ public method persist ] { + } + + Method [ public method ttl ] { + } + + Method [ public method pttl ] { + } + + 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 ] { + } + + Method [ public method restore ] { + } + + Method [ public method dump ] { + } + + Method [ public method renameKey ] { + } + + Method [ public method rename ] { + } + + Method [ public method renameNx ] { + } + + Method [ public method rpoplpush ] { + } + + Method [ public method randomKey ] { + } + + Method [ public method ping ] { + } + + Method [ public method auth ] { + } + + Method [ public method unwatch ] { + } + + Method [ public method watch ] { + } + + Method [ public method save ] { + } + + Method [ public method bgSave ] { + } + + Method [ public method lastSave ] { + } + + Method [ public method flushDB ] { + } + + Method [ public method flushAll ] { + } + + Method [ public method dbSize ] { + } + + Method [ public method bgrewriteaof ] { + } + + Method [ public method time ] { + } + + Method [ public method role ] { + } + + Method [ public method setRange ] { + } + + Method [ public method setNx ] { + } + + Method [ public method getSet ] { + } + + Method [ public method append ] { + } + + Method [ public method lPushx ] { + } + + Method [ public method lPush ] { + } + + Method [ public method rPush ] { + } + + Method [ public method rPushx ] { + } + + Method [ public method sContains ] { + } + + Method [ public method sismember ] { + } + + Method [ public method zScore ] { + } + + Method [ public method zRank ] { + } + + Method [ public method zRevRank ] { + } + + Method [ public method hGet ] { + } + + Method [ public method hMGet ] { + } + + Method [ public method hExists ] { + } + + Method [ public method publish ] { + } + + Method [ public method zIncrBy ] { + } + + Method [ public method zAdd ] { + } + + Method [ public method zDeleteRangeByScore ] { + } + + Method [ public method zRemRangeByScore ] { + } + + Method [ public method zCount ] { + } + + Method [ public method zRange ] { + } + + 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 ] { + } + + Method [ public method hIncrBy ] { + } + + Method [ public method incr ] { + } + + Method [ public method decrBy ] { + } + + Method [ public method decr ] { + } + + Method [ public method getBit ] { + } + + Method [ public method lInsert ] { + } + + Method [ public method lGet ] { + } + + Method [ public method lIndex ] { + } + + Method [ public method setTimeout ] { + } + + Method [ public method expire ] { + } + + Method [ public method pexpire ] { + } + + Method [ public method expireAt ] { + } + + Method [ public method pexpireAt ] { + } + + Method [ public method move ] { + } + + 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 ] { + } + + 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 ] { + } + + Method [ public method srem ] { + } + + 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 ] { + } + } + } + + 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 [8] { + Method [ public method __construct ] { + } + + Method [ public method __destruct ] { + } + + Method [ public method connect ] { + } + + Method [ public method query ] { + } + + Method [ public method recv ] { + } + + Method [ public method setDefer ] { + } + + Method [ public method getDefer ] { + } + + Method [ public method close ] { + } + } + } + + 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 [2] { + Property [ public $errCode ] + Property [ public $sock ] + } + + - Methods [16] { + Method [ public method __construct ] { + } + + Method [ public method __destruct ] { + } + + Method [ public method set ] { + } + + Method [ public method setMethod ] { + } + + Method [ public method setHeaders ] { + } + + Method [ public method setCookies ] { + } + + Method [ public method setData ] { + } + + Method [ public method execute ] { + } + + Method [ public method get ] { + } + + Method [ public method post ] { + } + + Method [ public method addFile ] { + } + + Method [ public method isConnected ] { + } + + Method [ public method close ] { + } + + Method [ public method setDefer ] { + } + + Method [ public method getDefer ] { + } + + Method [ public method recv ] { + } + } + } + + Class [ class Swoole\Coroutine ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [5] { + Method [ static public method suspend ] { + } + + Method [ static public method resume ] { + } + + Method [ static public method getuid ] { + } + + Method [ static public method call_user_func ] { + } + + Method [ static public method call_user_func_array ] { + } + } + + - Properties [0] { + } + + - Methods [0] { + } + } + + Class [ class Swoole\Http\Client ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [2] { + Property [ public $errCode ] + Property [ public $sock ] + } + + - 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 [5] { + Parameter #0 [ $path ] + Parameter #1 [ $name ] + Parameter #2 [ $type ] + Parameter #3 [ $filename ] + Parameter #4 [ $offset ] + } + } + + 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 [1] { + Constant [ integer IPC_NOWAIT ] { 256 } + } + + - 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 [0] { + } + + - Methods [14] { + 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 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\Table implements Iterator, Traversable, Countable ] { + + - Constants [3] { + Constant [ integer TYPE_INT ] { 1 } + Constant [ integer TYPE_STRING ] { 7 } + Constant [ integer TYPE_FLOAT ] { 6 } + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [16] { + Method [ public method __construct ] { + + - Parameters [1] { + Parameter #0 [ $table_size ] + } + } + + 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 [1] { + Parameter #0 [ $key ] + } + } + + 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 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\Lock ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [7] { + 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 trylock ] { + + - Parameters [0] { + } + } + + Method [ public method lock_read ] { + + - Parameters [0] { + } + } + + Method [ public method trylock_read ] { + + - Parameters [0] { + } + } + + Method [ public method unlock ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Atomic ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [6] { + 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 ] + } + } + } + } + + Class [ class Swoole\Http\Server extends Swoole\Server ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [1] { + Property [ private $global ] + } + + - Methods [38] { + Method [ public method on ] { + + - Parameters [2] { + Parameter #0 [ $event_name ] + Parameter #1 [ $callback ] + } + } + + Method [ public method start ] { + + - Parameters [0] { + } + } + + Method [ public method __construct ] { + + - Parameters [4] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $mode ] + Parameter #3 [ $sock_type ] + } + } + + 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 [3] { + Parameter #0 [ $conn_fd ] + Parameter #1 [ $filename ] + Parameter #2 [ $offset ] + } + } + + 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 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 [ $dst_worker_id ] + Parameter #1 [ $data ] + } + } + + 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 [0] { + } + + - Properties [0] { + } + + - Methods [9] { + 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 write ] { + + - Parameters [1] { + Parameter #0 [ $content ] + } + } + + Method [ public method end ] { + + - Parameters [1] { + Parameter #0 [ $content ] + } + } + + Method [ public method sendfile ] { + + - Parameters [2] { + Parameter #0 [ $filename ] + Parameter #1 [ $offset ] + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Http\Request ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [2] { + Method [ public method rawcontent ] { + + - Parameters [0] { + } + } + + Method [ public method __destruct ] { + + - Parameters [0] { + } + } + } + } + + Class [ class Swoole\Buffer ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [9] { + 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 clear ] { + + - Parameters [0] { + } + } + } + } + + 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 [0] { + } + + - Methods [39] { + 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 start ] { + + - Parameters [0] { + } + } + + Method [ public method __construct ] { + + - Parameters [4] { + Parameter #0 [ $host ] + Parameter #1 [ $port ] + Parameter #2 [ $mode ] + Parameter #3 [ $sock_type ] + } + } + + 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 [3] { + Parameter #0 [ $conn_fd ] + Parameter #1 [ $filename ] + Parameter #2 [ $offset ] + } + } + + 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 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 [ $dst_worker_id ] + Parameter #1 [ $data ] + } + } + + 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 [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [6] { + 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 query ] { + + - Parameters [2] { + Parameter #0 [ $sql ] + Parameter #1 [ $callback ] + } + } + + Method [ public method close ] { + + - 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\Module ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [1] { + Method [ public method __call ] { + + - Parameters [2] { + Parameter #0 [ $func ] + Parameter #1 [ $params ] + } + } + } + } + + 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\Redis ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [6] { + Method [ public method __construct ] { + } + + Method [ public method __destruct ] { + } + + 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 ] { + } + + Method [ public method __call ] { + + - Parameters [2] { + Parameter #0 [ $command ] + Parameter #1 [ $params ] + } + } + } + } + + Class [ class Swoole\Redis\Server extends Swoole\Server ] { + + - Constants [7] { + Constant [ integer NIL ] { 1 } + Constant [ integer ERROR ] { 0 } + Constant [ integer STATUS ] { 2 } + Constant [ integer INT ] { 3 } + Constant [ integer STRING ] { 4 } + Constant [ integer SET ] { 5 } + Constant [ integer MAP ] { 6 } + } + + - Static properties [0] { + } + + - Static methods [1] { + Method [ static public method format ] { + + - Parameters [2] { + Parameter #0 [ $type ] + Parameter #1 [ $value ] + } + } + } + + - Properties [0] { + } + + - Methods [39] { + 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 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 [3] { + Parameter #0 [ $conn_fd ] + Parameter #1 [ $filename ] + Parameter #2 [ $offset ] + } + } + + 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 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 [ $dst_worker_id ] + Parameter #1 [ $data ] + } + } + + 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 ] + } + } + } + } + } +} + diff --git a/php-pecl-swoole-dev.spec b/php-pecl-swoole-dev.spec new file mode 100644 index 0000000..a2d8174 --- /dev/null +++ b/php-pecl-swoole-dev.spec @@ -0,0 +1,460 @@ +# remirepo spec file for php-pecl-swoole +# +# Copyright (c) 2013-2016 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# +%if 0%{?scl:1} +%global sub_prefix %{scl_prefix} +%scl_package php-pecl-swoole +%endif + +%global with_zts 0 +%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} >= 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} +Version: 2.0.4 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +License: BSD +Group: Development/Languages +URL: http://pecl.php.net/package/%{pecl_name} +Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz + +BuildRequires: %{?scl_prefix}php-devel >= 5.3.10 +BuildRequires: %{?scl_prefix}php-pear +BuildRequires: %{?scl_prefix}php-sockets +BuildRequires: %{?scl_prefix}php-mysqli +BuildRequires: pcre-devel +BuildRequires: openssl-devel +%if %{with_nghttpd2} +BuildRequires: libnghttp2-devel +%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} +%{?_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} = %{version}-%{release} +Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} +%endif + +%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} +# Other third party repo stuff +Obsoletes: php53-pecl-%{pecl_name} <= %{version} +Obsoletes: php53u-pecl-%{pecl_name} <= %{version} +Obsoletes: php54-pecl-%{pecl_name} <= %{version} +Obsoletes: php54w-pecl-%{pecl_name} <= %{version} +%if "%{php_version}" > "5.5" +Obsoletes: php55u-pecl-%{pecl_name} <= %{version} +Obsoletes: php55w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "5.6" +Obsoletes: php56u-pecl-%{pecl_name} <= %{version} +Obsoletes: php56w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "7.0" +Obsoletes: php70u-pecl-%{pecl_name} <= %{version} +Obsoletes: php70w-pecl-%{pecl_name} <= %{version} +%endif +%if "%{php_version}" > "7.1" +Obsoletes: php71u-pecl-%{pecl_name} <= %{version} +Obsoletes: php71w-pecl-%{pecl_name} <= %{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})}. + + +%prep +%setup -q -c +mv %{pecl_name}-%{version} NTS + +# Don't install/register tests, install examples as doc +sed -e 's/role="test"/role="src"/' \ + -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.message_queue_key = 0 +;swoole.unixsock_buffer_size = 8388608 +EOF + + +%build +peclbuild() { +%configure \ + --with-swoole \ + --enable-openssl \ + --with-openssl \ + --enable-sockets \ +%if %{with_nghttpd2} + --enable-http2 \ +%endif +%if %{with_hiredis} + --enable-async-redis \ +%endif + --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 +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 + +# Documentation +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 +# 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 +[ -f %{php_extdir}/sockets.so ] && modules="-d extension=sockets.so" + +cd NTS +: Minimal load test for NTS extension +%{__php} --no-php-ini \ + $modules \ + --define extension=modules/%{pecl_name}.so \ + --modules | grep %{pecl_name} + +%if %{with_zts} +cd ../ZTS +: Minimal load test for ZTS extension +%{__ztsphp} --no-php-ini \ + $modules \ + --define extension=modules/%{pecl_name}.so \ + --modules | grep %{pecl_name} +%endif + + +%files +%{?_licensedir:%license NTS/LICENSE} +%doc %{pecl_docdir}/%{pecl_name} +%{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 + + +%changelog +* 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