diff options
-rw-r--r-- | PHPINFO | 5 | ||||
-rw-r--r-- | REFLECTION | 2957 | ||||
-rw-r--r-- | openswoole-pg9.patch | 36 | ||||
-rw-r--r-- | php-pecl-openswoole.spec | 23 |
4 files changed, 1951 insertions, 1070 deletions
@@ -3,8 +3,8 @@ openswoole Open Swoole => enabled Author => Open Swoole Group & Contributors <hello@swoole.co.uk> -Version => 4.7.2 -Built => Oct 25 2021 00:00:00 +Version => 4.8.0 +Built => Nov 29 2021 00:00:00 coroutine => enabled with boost asm context trace_log => enabled epoll => enabled @@ -28,6 +28,7 @@ pthread_barrier => enabled futex => enabled mysqlnd => enabled async_redis => enabled +postgresql => enabled Directive => Local Value => Master Value swoole.enable_coroutine => On => On @@ -1,6 +1,7 @@ -Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { +Extension [ <persistent> extension #88 openswoole version 4.8.0 ] { - Dependencies { + Dependency [ swoole (Conflicts) ] Dependency [ json (Required) ] Dependency [ mysqlnd (Required) ] Dependency [ sockets (Required) ] @@ -13,7 +14,6 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { } Entry [ swoole.enable_library <ALL> ] Current = 'On' - Default = 'On' } Entry [ swoole.enable_preemptive_scheduler <ALL> ] Current = 'Off' @@ -29,18 +29,19 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { } } - - Constants [374] { - Constant [ string SWOOLE_VERSION ] { 4.7.2 } - Constant [ int SWOOLE_VERSION_ID ] { 40702 } + - Constants [378] { + Constant [ string SWOOLE_VERSION ] { 4.8.0 } + Constant [ int SWOOLE_VERSION_ID ] { 40800 } Constant [ int SWOOLE_MAJOR_VERSION ] { 4 } - Constant [ int SWOOLE_MINOR_VERSION ] { 7 } - Constant [ int SWOOLE_RELEASE_VERSION ] { 2 } + Constant [ int SWOOLE_MINOR_VERSION ] { 8 } + Constant [ int SWOOLE_RELEASE_VERSION ] { 0 } Constant [ string SWOOLE_EXTRA_VERSION ] { } Constant [ bool SWOOLE_DEBUG ] { } Constant [ bool SWOOLE_HAVE_COMPRESSION ] { 1 } Constant [ bool SWOOLE_HAVE_ZLIB ] { 1 } Constant [ bool SWOOLE_HAVE_BROTLI ] { 1 } Constant [ bool SWOOLE_USE_HTTP2 ] { 1 } + Constant [ bool SWOOLE_USE_POSTGRES ] { 1 } Constant [ bool SWOOLE_USE_SHORTNAME ] { 1 } Constant [ int SWOOLE_BASE ] { 1 } Constant [ int SWOOLE_PROCESS ] { 2 } @@ -404,6 +405,9 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Constant [ int WEBSOCKET_CLOSE_EXTENSION_MISSING ] { 1010 } Constant [ int WEBSOCKET_CLOSE_SERVER_ERROR ] { 1011 } Constant [ int WEBSOCKET_CLOSE_TLS ] { 1015 } + Constant [ int OPENSWOOLE_PGSQL_ASSOC ] { 1 } + Constant [ int OPENSWOOLE_PGSQL_NUM ] { 2 } + Constant [ int OPENSWOOLE_PGSQL_BOTH ] { 3 } } - Functions { @@ -617,121 +621,137 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> public method swoole_event_add ] { - Parameters [4] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> ?callable $read_callback ] - Parameter #2 [ <optional> ?callable $write_callback = <default> ] - Parameter #3 [ <optional> $events = <default> ] + Parameter #0 [ <required> mixed $sock ] + Parameter #1 [ <optional> ?callable $readCallback = null ] + Parameter #2 [ <optional> ?callable $writeCallback = null ] + Parameter #3 [ <optional> int $flags = SWOOLE_EVENT_READ ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method swoole_event_del ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> mixed $sock ] } + - Return [ bool ] } Method [ <internal:openswoole> public method swoole_event_set ] { - Parameters [4] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> ?callable $read_callback = <default> ] - Parameter #2 [ <optional> ?callable $write_callback = <default> ] - Parameter #3 [ <optional> $events = <default> ] + Parameter #0 [ <required> mixed $sock ] + Parameter #1 [ <optional> ?callable $readCallback = null ] + Parameter #2 [ <optional> ?callable $writeCallback = null ] + Parameter #3 [ <optional> int $flags = SWOOLE_EVENT_READ ] } + - Return [ bool ] } Method [ <internal:openswoole> public method swoole_event_isset ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $events = <default> ] + Parameter #0 [ <required> mixed $sock ] + Parameter #1 [ <optional> int $flags = SWOOLE_EVENT_READ | SWOOLE_EVENT_WRITE ] } + - Return [ bool ] } Method [ <internal:openswoole> public method swoole_event_dispatch ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method swoole_event_defer ] { - Parameters [1] { Parameter #0 [ <required> callable $callback ] } + - Return [ bool ] } Method [ <internal:openswoole> public method swoole_event_cycle ] { - Parameters [2] { - Parameter #0 [ <required> ?callable $callback ] - Parameter #1 [ <optional> $before = <default> ] + Parameter #0 [ <required> callable $callback ] + Parameter #1 [ <optional> bool $before = false ] } + - Return [ bool ] } Method [ <internal:openswoole> public method swoole_event_write ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $data ] + Parameter #0 [ <required> mixed $sock ] + Parameter #1 [ <required> string $data ] } + - Return [ bool ] } Method [ <internal:openswoole> public method swoole_event_wait ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:openswoole> public method swoole_event_exit ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:openswoole> public method swoole_timer_set ] { - Parameters [1] { Parameter #0 [ <required> array $settings ] } + - Return [ bool ] } Method [ <internal:openswoole> public method swoole_timer_after ] { - Parameters [2] { - Parameter #0 [ <required> $ms ] + Parameter #0 [ <required> int $ms ] Parameter #1 [ <required> callable $callback ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method swoole_timer_tick ] { - Parameters [2] { - Parameter #0 [ <required> $ms ] + Parameter #0 [ <required> int $ms ] Parameter #1 [ <required> callable $callback ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method swoole_timer_exists ] { - - Parameters [1] { - Parameter #0 [ <required> $timer_id ] + - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method swoole_timer_info ] { - - Parameters [1] { - Parameter #0 [ <required> $timer_id ] + - Parameters [0] { } + - Return [ array|bool ] } Method [ <internal:openswoole> public method swoole_timer_stats ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:openswoole> public method swoole_timer_list ] { - Parameters [0] { } + - Return [ ] } Method [ <internal:openswoole> public method swoole_timer_clear ] { - - Parameters [1] { - Parameter #0 [ <required> $timer_id ] + - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method swoole_timer_clear_all ] { - Parameters [0] { } + - Return [ bool ] } Function [ <internal:openswoole> function swoole_native_curl_close ] { @@ -909,7 +929,7 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { } } - - Classes [53] { + - Classes [54] { Class [ <internal:openswoole> class Swoole\Exception extends Exception implements Stringable, Throwable ] { - Constants [0] { @@ -1104,42 +1124,47 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> static public method add ] { - Parameters [4] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> ?callable $read_callback ] - Parameter #2 [ <optional> ?callable $write_callback = <default> ] - Parameter #3 [ <optional> $events = <default> ] + Parameter #0 [ <required> mixed $sock ] + Parameter #1 [ <optional> ?callable $readCallback = null ] + Parameter #2 [ <optional> ?callable $writeCallback = null ] + Parameter #3 [ <optional> int $flags = SWOOLE_EVENT_READ ] } + - Return [ int|bool ] } Method [ <internal:openswoole> static public method del ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> mixed $sock ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method set ] { - Parameters [4] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> ?callable $read_callback = <default> ] - Parameter #2 [ <optional> ?callable $write_callback = <default> ] - Parameter #3 [ <optional> $events = <default> ] + Parameter #0 [ <required> mixed $sock ] + Parameter #1 [ <optional> ?callable $readCallback = null ] + Parameter #2 [ <optional> ?callable $writeCallback = null ] + Parameter #3 [ <optional> int $flags = SWOOLE_EVENT_READ ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method isset ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $events = <default> ] + Parameter #0 [ <required> mixed $sock ] + Parameter #1 [ <optional> int $flags = SWOOLE_EVENT_READ | SWOOLE_EVENT_WRITE ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method dispatch ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> static public method defer ] { @@ -1147,40 +1172,46 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> callable $callback ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method cycle ] { - Parameters [2] { - Parameter #0 [ <required> ?callable $callback ] - Parameter #1 [ <optional> $before = <default> ] + Parameter #0 [ <required> callable $callback ] + Parameter #1 [ <optional> bool $before = false ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method write ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $data ] + Parameter #0 [ <required> mixed $sock ] + Parameter #1 [ <required> string $data ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method wait ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:openswoole> static public method rshutdown ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:openswoole> static public method exit ] { - Parameters [0] { } + - Return [ void ] } } @@ -1209,57 +1240,64 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $value = <default> ] + Parameter #0 [ <optional> int $value = 0 ] } } Method [ <internal:openswoole> public method add ] { - Parameters [1] { - Parameter #0 [ <optional> $add_value = <default> ] + Parameter #0 [ <optional> int $value = 1 ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method sub ] { - Parameters [1] { - Parameter #0 [ <optional> $sub_value = <default> ] + Parameter #0 [ <optional> int $value = 1 ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method get ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole> public method set ] { - Parameters [1] { - Parameter #0 [ <required> $value ] + Parameter #0 [ <required> int $value ] } + - Return [ bool|void ] } Method [ <internal:openswoole> public method wait ] { - Parameters [1] { - Parameter #0 [ <optional> $timeout = <default> ] + Parameter #0 [ <optional> float $timeout = 1.0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method wakeup ] { - Parameters [1] { - Parameter #0 [ <optional> $count = <default> ] + Parameter #0 [ <optional> int $count = 1 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method cmpset ] { - Parameters [2] { - Parameter #0 [ <required> $cmp_value ] - Parameter #1 [ <required> $new_value ] + Parameter #0 [ <optional> int $cmpVal = 0 ] + Parameter #1 [ <optional> int $newVal = 0 ] } + - Return [ bool ] } } } @@ -1282,43 +1320,48 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $value = <default> ] + Parameter #0 [ <optional> int $value = 0 ] } } Method [ <internal:openswoole> public method add ] { - Parameters [1] { - Parameter #0 [ <optional> $add_value = <default> ] + Parameter #0 [ <optional> int $value = 1 ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method sub ] { - Parameters [1] { - Parameter #0 [ <optional> $sub_value = <default> ] + Parameter #0 [ <optional> int $value = 1 ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method get ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole> public method set ] { - Parameters [1] { - Parameter #0 [ <required> $value ] + Parameter #0 [ <required> int $value ] } + - Return [ bool|void ] } Method [ <internal:openswoole> public method cmpset ] { - Parameters [2] { - Parameter #0 [ <required> $cmp_value ] - Parameter #1 [ <required> $new_value ] + Parameter #0 [ <optional> int $cmpVal = 0 ] + Parameter #1 [ <optional> int $newVal = 0 ] } + - Return [ bool ] } } } @@ -1347,8 +1390,8 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, ctor> public method __construct ] { - Parameters [2] { - Parameter #0 [ <optional> $type = <default> ] - Parameter #1 [ <optional> $filename = <default> ] + Parameter #0 [ <optional> int $type = SWOOLE_MUTEX ] + Parameter #1 [ <optional> string $lockFile = "" ] } } @@ -1362,43 +1405,50 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method lockwait ] { - Parameters [1] { - Parameter #0 [ <optional> $timeout = <default> ] + Parameter #0 [ <optional> float $timeout = 1.0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method trylock ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method lock_read ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method trylock_read ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method unlock ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method destroy ] { - Parameters [0] { } + - Return [ void ] } } } @@ -1420,48 +1470,54 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> static public method wait ] { - Parameters [1] { - Parameter #0 [ <optional> $blocking = <default> ] + Parameter #0 [ <optional> bool $blocking = 1 ] } + - Return [ array|bool ] } Method [ <internal:openswoole> static public method signal ] { - Parameters [2] { - Parameter #0 [ <required> $signal_no ] - Parameter #1 [ <required> $callback ] + Parameter #0 [ <required> int $sigNo ] + Parameter #1 [ <optional> ?callable $callback = null ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method alarm ] { - Parameters [2] { - Parameter #0 [ <required> $usec ] - Parameter #1 [ <optional> $type = <default> ] + Parameter #0 [ <required> int $intervalUsec ] + Parameter #1 [ <optional> int $type = ITIMER_REAL ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method kill ] { - Parameters [2] { - Parameter #0 [ <required> $pid ] - Parameter #1 [ <optional> $signal_no = <default> ] + Parameter #0 [ <required> int $pid ] + Parameter #1 [ <optional> int $sigNo = SIGTERM ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method daemon ] { - Parameters [3] { - Parameter #0 [ <optional> $nochdir = <default> ] - Parameter #1 [ <optional> $noclose = <default> ] - Parameter #2 [ <optional> $pipes = <default> ] + Parameter #0 [ <optional> bool $noChdir = true ] + Parameter #1 [ <optional> bool $noClose = true ] + Parameter #2 [ <optional> ?array $pipes = null ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method setAffinity ] { - Parameters [1] { - Parameter #0 [ <required> array $cpu_settings ] + Parameter #0 [ <required> array $cpuSet ] } + - Return [ bool ] } } @@ -1479,9 +1535,9 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [4] { Parameter #0 [ <required> callable $callback ] - Parameter #1 [ <optional> $redirect_stdin_and_stdout = <default> ] - Parameter #2 [ <optional> $pipe_type = <default> ] - Parameter #3 [ <optional> $enable_coroutine = <default> ] + Parameter #1 [ <optional> bool $redirectStdIO = false ] + Parameter #2 [ <optional> int $pipeType = SOCK_DGRAM ] + Parameter #3 [ <optional> bool $enableCoroutine = false ] } } @@ -1494,16 +1550,18 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> public method setPriority ] { - Parameters [2] { - Parameter #0 [ <required> $which ] - Parameter #1 [ <required> $priority ] + Parameter #0 [ <required> int $which ] + Parameter #1 [ <required> int $priority ] } + - Return [ bool ] } Method [ <internal:openswoole> public method getPriority ] { - Parameters [1] { - Parameter #0 [ <required> $which ] + Parameter #0 [ <required> int $which ] } + - Return [ int ] } Method [ <internal:openswoole> public method set ] { @@ -1511,109 +1569,126 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> array $settings ] } + - Return [ void ] } Method [ <internal:openswoole> public method setTimeout ] { - Parameters [1] { - Parameter #0 [ <required> $seconds ] + Parameter #0 [ <required> float $timeout ] } + - Return [ void ] } Method [ <internal:openswoole> public method setBlocking ] { - Parameters [1] { - Parameter #0 [ <required> $blocking ] + Parameter #0 [ <required> bool $blocking ] } + - Return [ void ] } Method [ <internal:openswoole> public method useQueue ] { - Parameters [3] { - Parameter #0 [ <optional> $key = <default> ] - Parameter #1 [ <optional> $mode = <default> ] - Parameter #2 [ <optional> $capacity = <default> ] + Parameter #0 [ <optional> int $key = 0 ] + Parameter #1 [ <optional> int $mode = 2 ] + Parameter #2 [ <optional> int $capacity = -1 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method statQueue ] { - Parameters [0] { } + - Return [ array|bool ] } Method [ <internal:openswoole> public method freeQueue ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method start ] { - Parameters [0] { } + - Return [ int|bool ] } Method [ <internal:openswoole> public method write ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> string $data ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method close ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> int $reason = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method read ] { - Parameters [1] { - Parameter #0 [ <optional> $size = <default> ] + Parameter #0 [ <optional> int $bufferSize = 8192 ] } + - Return [ string|bool ] } Method [ <internal:openswoole> public method push ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> string $data ] } + - Return [ bool ] } Method [ <internal:openswoole> public method pop ] { - Parameters [1] { - Parameter #0 [ <optional> $size = <default> ] + Parameter #0 [ <optional> int $maxSize = 8192 ] } + - Return [ string|bool ] } Method [ <internal:openswoole> public method exit ] { - Parameters [1] { - Parameter #0 [ <optional> $exit_code = <default> ] + Parameter #0 [ <optional> int $status = 0 ] } + - Return [ int ] } Method [ <internal:openswoole> public method exec ] { - Parameters [2] { - Parameter #0 [ <required> $exec_file ] - Parameter #1 [ <required> $args ] + Parameter #0 [ <required> string $execFile ] + Parameter #1 [ <required> array $args ] } + - Return [ bool ] } Method [ <internal:openswoole> public method exportSocket ] { - Parameters [0] { } + - Return [ Swoole\Coroutine\Socket|false ] } Method [ <internal:openswoole> public method name ] { - Parameters [1] { - Parameter #0 [ <required> $process_name ] + Parameter #0 [ <required> string $processName ] } + - Return [ bool ] } } } @@ -1638,10 +1713,10 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, ctor> public method __construct ] { - Parameters [4] { - Parameter #0 [ <required> $worker_num ] - Parameter #1 [ <optional> $ipc_type = <default> ] - Parameter #2 [ <optional> $msgqueue_key = <default> ] - Parameter #3 [ <optional> $enable_coroutine = <default> ] + Parameter #0 [ <required> int $workerNum ] + Parameter #1 [ <optional> int $ipcType = SWOOLE_IPC_NONE ] + Parameter #2 [ <optional> int $msgqueue_key = 0 ] + Parameter #3 [ <optional> bool $enableCoroutine = false ] } } @@ -1656,61 +1731,70 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> array $settings ] } + - Return [ bool|void ] } Method [ <internal:openswoole> public method on ] { - Parameters [2] { - Parameter #0 [ <required> $event_name ] + Parameter #0 [ <required> string $event ] Parameter #1 [ <required> callable $callback ] } + - Return [ bool ] } Method [ <internal:openswoole> public method getProcess ] { - Parameters [1] { - Parameter #0 [ <optional> $worker_id = <default> ] + Parameter #0 [ <optional> int $workerId = -1 ] } + - Return [ Swoole\Process|false ] } Method [ <internal:openswoole> public method listen ] { - Parameters [3] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <optional> $port = <default> ] - Parameter #2 [ <optional> $backlog = <default> ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <optional> int $port = 0 ] + Parameter #2 [ <optional> int $backlog = 2048 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method write ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> string $data ] } + - Return [ bool ] } Method [ <internal:openswoole> public method detach ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method start ] { - Parameters [0] { } + - Return [ bool|void ] } Method [ <internal:openswoole> public method stop ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:openswoole> public method shutdown ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -1738,140 +1822,159 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, ctor> public method __construct ] { - Parameters [2] { - Parameter #0 [ <required> $table_size ] - Parameter #1 [ <optional> $conflict_proportion = <default> ] + Parameter #0 [ <required> int $size ] + Parameter #1 [ <optional> float $conflictProportion = 1.0 ] } } Method [ <internal:openswoole> public method column ] { - Parameters [3] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <required> $type ] - Parameter #2 [ <optional> $size = <default> ] + Parameter #0 [ <required> string $name ] + Parameter #1 [ <required> int $type ] + Parameter #2 [ <optional> int $size = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method create ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method destroy ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method set ] { - Parameters [2] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] Parameter #1 [ <required> array $value ] } + - Return [ bool ] } Method [ <internal:openswoole> public method get ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <optional> $field = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> string $column = "" ] } + - Return [ array|string|int|float|bool ] } Method [ <internal:openswoole, prototype Countable> public method count ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole> public method del ] { - Parameters [1] { - Parameter #0 [ <required> $key ] - } - } - - Method [ <internal:openswoole> public method delete ] { - - - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ bool ] } Method [ <internal:openswoole> public method exists ] { - Parameters [1] { - Parameter #0 [ <required> $key ] - } - } - - Method [ <internal:openswoole> public method exist ] { - - - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ bool ] } Method [ <internal:openswoole> public method incr ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $column ] - Parameter #2 [ <optional> $incrby = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $column ] + Parameter #2 [ <optional> int $incrBy = 1 ] } + - Return [ int ] } Method [ <internal:openswoole> public method decr ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $column ] - Parameter #2 [ <optional> $decrby = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $column ] + Parameter #2 [ <optional> int $decrBy = 1 ] } + - Return [ int ] } Method [ <internal:openswoole> public method getSize ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole> public method getMemorySize ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole, prototype Iterator> public method rewind ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:openswoole, prototype Iterator> public method valid ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole, prototype Iterator> public method next ] { - Parameters [0] { } + - Return [ void ] } Method [ <internal:openswoole, prototype Iterator> public method current ] { - Parameters [0] { } + - Return [ ?array ] } Method [ <internal:openswoole, prototype Iterator> public method key ] { - Parameters [0] { } + - Return [ ?string ] + } + + Method [ <internal:openswoole> public method delete ] { + + - Parameters [1] { + Parameter #0 [ <required> string $key ] + } + - Return [ bool ] + } + + Method [ <internal:openswoole> public method exist ] { + + - Parameters [1] { + Parameter #0 [ <required> string $key ] + } + - Return [ bool ] } } } @@ -1890,63 +1993,69 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> array $settings ] } + - Return [ bool ] } - Method [ <internal:openswoole> static public method tick ] { + Method [ <internal:openswoole> static public method after ] { - Parameters [3] { - Parameter #0 [ <required> $ms ] + Parameter #0 [ <required> int $ms ] Parameter #1 [ <required> callable $callback ] - Parameter #2 [ <optional> ...$params ] + Parameter #2 [ <optional> mixed ...$params ] } + - Return [ int|bool ] } - Method [ <internal:openswoole> static public method after ] { + Method [ <internal:openswoole> static public method tick ] { - Parameters [3] { - Parameter #0 [ <required> $ms ] + Parameter #0 [ <required> int $ms ] Parameter #1 [ <required> callable $callback ] - Parameter #2 [ <optional> ...$params ] + Parameter #2 [ <optional> mixed ...$params ] } + - Return [ int|bool ] } Method [ <internal:openswoole> static public method exists ] { - - Parameters [1] { - Parameter #0 [ <required> $timer_id ] + - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> static public method info ] { - - Parameters [1] { - Parameter #0 [ <required> $timer_id ] + - Parameters [0] { } + - Return [ array|bool ] } Method [ <internal:openswoole> static public method stats ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:openswoole> static public method list ] { - Parameters [0] { } + - Return [ Swoole\Timer\Iterator ] } Method [ <internal:openswoole> static public method clear ] { - - Parameters [1] { - Parameter #0 [ <required> $timer_id ] + - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> static public method clearAll ] { - Parameters [0] { } + - Return [ bool ] } } @@ -2166,280 +2275,318 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> static public method create ] { - Parameters [2] { - Parameter #0 [ <required> callable $func ] - Parameter #1 [ <optional> ...$params ] + Parameter #0 [ <required> callable $callback ] + Parameter #1 [ <optional> mixed ...$params ] } + - Return [ int|false ] } Method [ <internal:openswoole> static public method defer ] { - Parameters [1] { - Parameter #0 [ <required> $callback ] + Parameter #0 [ <required> callable $callback ] } + - Return [ void ] } Method [ <internal:openswoole> static public method set ] { - Parameters [1] { - Parameter #0 [ <required> $options ] + Parameter #0 [ <required> array $options ] } + - Return [ mixed ] } Method [ <internal:openswoole> static public method getOptions ] { - Parameters [0] { } + - Return [ ?array ] } Method [ <internal:openswoole> static public method exists ] { - Parameters [1] { - Parameter #0 [ <required> $cid ] + Parameter #0 [ <required> int $cid ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method yield ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> static public method cancel ] { - Parameters [1] { - Parameter #0 [ <required> $cid ] + Parameter #0 [ <required> int $cid ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method isCanceled ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> static public method suspend ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> static public method resume ] { - Parameters [1] { - Parameter #0 [ <required> $cid ] + Parameter #0 [ <required> int $cid ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method stats ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:openswoole> static public method getCid ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole> static public method getuid ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole> static public method getPcid ] { - Parameters [1] { - Parameter #0 [ <optional> $cid = <default> ] + Parameter #0 [ <optional> int $cid = 0 ] } + - Return [ int ] } Method [ <internal:openswoole> static public method getContext ] { - Parameters [1] { - Parameter #0 [ <optional> $cid = <default> ] + Parameter #0 [ <optional> int $cid = 0 ] } + - Return [ ?Swoole\Coroutine\Context ] } Method [ <internal:openswoole> static public method getBackTrace ] { - Parameters [3] { - Parameter #0 [ <optional> $cid = <default> ] - Parameter #1 [ <optional> $options = <default> ] - Parameter #2 [ <optional> $limit = <default> ] + Parameter #0 [ <optional> int $cid = 0 ] + Parameter #1 [ <optional> int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT ] + Parameter #2 [ <optional> int $limit = 0 ] } + - Return [ array|false ] } Method [ <internal:openswoole> static public method printBackTrace ] { - Parameters [3] { - Parameter #0 [ <optional> $cid = <default> ] - Parameter #1 [ <optional> $options = <default> ] - Parameter #2 [ <optional> $limit = <default> ] + Parameter #0 [ <optional> int $cid = 0 ] + Parameter #1 [ <optional> int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT ] + Parameter #2 [ <optional> int $limit = 0 ] } + - Return [ false|void ] } Method [ <internal:openswoole> static public method getElapsed ] { - Parameters [1] { - Parameter #0 [ <optional> $cid = <default> ] + Parameter #0 [ <optional> int $cid = 0 ] } + - Return [ int ] } Method [ <internal:openswoole> static public method getStackUsage ] { - Parameters [1] { - Parameter #0 [ <optional> $cid = <default> ] + Parameter #0 [ <optional> int $cid = 0 ] } + - Return [ int|false ] } Method [ <internal:openswoole> static public method list ] { - Parameters [0] { } + - Return [ Swoole\Coroutine\Iterator ] } Method [ <internal:openswoole> static public method listCoroutines ] { - Parameters [0] { } + - Return [ Swoole\Coroutine\Iterator ] } Method [ <internal:openswoole> static public method enableScheduler ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> static public method disableScheduler ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> static public method gethostbyname ] { - Parameters [3] { - Parameter #0 [ <required> $domain_name ] - Parameter #1 [ <optional> $family = <default> ] - Parameter #2 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> string $domain ] + Parameter #1 [ <optional> int $family = AF_INET ] + Parameter #2 [ <optional> float $timeout = -1 ] } + - Return [ string|false ] } Method [ <internal:openswoole> static public method dnsLookup ] { - - Parameters [3] { - Parameter #0 [ <required> $domain_name ] - Parameter #1 [ <optional> $timeout = <default> ] - Parameter #2 [ <optional> $type = <default> ] + - Parameters [2] { + Parameter #0 [ <required> string $domain ] + Parameter #1 [ <optional> float $timeout = 5 ] } + - Return [ string|false ] } Method [ <internal:openswoole> static public method exec ] { - Parameters [2] { - Parameter #0 [ <required> $command ] - Parameter #1 [ <optional> $get_error_stream = <default> ] + Parameter #0 [ <required> string $command ] + Parameter #1 [ <optional> bool $get_error_stream = false ] } + - Return [ array|false ] } Method [ <internal:openswoole> static public method sleep ] { - Parameters [1] { - Parameter #0 [ <required> $seconds ] + Parameter #0 [ <required> float $seconds ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method getaddrinfo ] { - Parameters [6] { - Parameter #0 [ <required> $hostname ] - Parameter #1 [ <optional> $family = <default> ] - Parameter #2 [ <optional> $socktype = <default> ] - Parameter #3 [ <optional> $protocol = <default> ] - Parameter #4 [ <optional> $service = <default> ] - Parameter #5 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> string $domain ] + Parameter #1 [ <optional> int $family = AF_INET ] + Parameter #2 [ <optional> int $sockType = SOCK_STREAM ] + Parameter #3 [ <optional> int $protocol = STREAM_IPPROTO_TCP ] + Parameter #4 [ <optional> string $service = null ] + Parameter #5 [ <optional> float $timeout = -1 ] } + - Return [ array|false ] } Method [ <internal:openswoole> static public method statvfs ] { - Parameters [1] { - Parameter #0 [ <required> $path ] + Parameter #0 [ <required> string $path ] } + - Return [ array|bool ] } Method [ <internal:openswoole> static public method readFile ] { - - Parameters [1] { - Parameter #0 [ <required> $filename ] + - Parameters [2] { + Parameter #0 [ <required> string $filename ] + Parameter #1 [ <optional> int $flags = 0 ] } + - Return [ string|false ] } Method [ <internal:openswoole> static public method writeFile ] { - Parameters [3] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <required> $data ] - Parameter #2 [ <optional> $flags = <default> ] + Parameter #0 [ <required> string $filename ] + Parameter #1 [ <required> string $data ] + Parameter #2 [ <optional> int $flags = 0 ] } + - Return [ int|bool ] } Method [ <internal:openswoole> static public method wait ] { - Parameters [1] { - Parameter #0 [ <optional> $timeout = <default> ] + Parameter #0 [ <optional> float $timeout = -1 ] } + - Return [ array|bool ] } Method [ <internal:openswoole> static public method waitPid ] { - Parameters [2] { - Parameter #0 [ <required> $pid ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> int $pid ] + Parameter #1 [ <optional> float $timeout = -1 ] } + - Return [ array|bool ] } Method [ <internal:openswoole> static public method waitSignal ] { - Parameters [2] { - Parameter #0 [ <required> $signo ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> int $signalNum ] + Parameter #1 [ <optional> float $timeout = -1 ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method waitEvent ] { - Parameters [3] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $events = <default> ] - Parameter #2 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> mixed $fd ] + Parameter #1 [ <required> int $events ] + Parameter #2 [ <optional> float $timeout = -1 ] } + - Return [ int|bool ] } Method [ <internal, deprecated:openswoole> static public method fread ] { - Parameters [2] { - Parameter #0 [ <required> $handle ] - Parameter #1 [ <optional> $length = <default> ] + Parameter #0 [ <required> mixed $handle ] + Parameter #1 [ <optional> int $length = 0 ] } + - Return [ string|false ] } - Method [ <internal, deprecated:openswoole> static public method fgets ] { + Method [ <internal, deprecated:openswoole> static public method fwrite ] { - - Parameters [1] { - Parameter #0 [ <required> $handle ] + - Parameters [3] { + Parameter #0 [ <required> mixed $handle ] + Parameter #1 [ <required> string $data ] + Parameter #2 [ <optional> int $length = 0 ] } + - Return [ int|false ] } - Method [ <internal, deprecated:openswoole> static public method fwrite ] { + Method [ <internal, deprecated:openswoole> static public method fgets ] { - - Parameters [3] { - Parameter #0 [ <required> $handle ] - Parameter #1 [ <required> $string ] - Parameter #2 [ <optional> $length = <default> ] + - Parameters [1] { + Parameter #0 [ <required> mixed $handle ] } + - Return [ string|bool ] } } @@ -2951,125 +3098,140 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> static public method gethostbyname ] { - Parameters [3] { - Parameter #0 [ <required> $domain_name ] - Parameter #1 [ <optional> $family = <default> ] - Parameter #2 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> string $domain ] + Parameter #1 [ <optional> int $family = AF_INET ] + Parameter #2 [ <optional> float $timeout = -1 ] } + - Return [ string|false ] } Method [ <internal:openswoole> static public method dnsLookup ] { - - Parameters [3] { - Parameter #0 [ <required> $domain_name ] - Parameter #1 [ <optional> $timeout = <default> ] - Parameter #2 [ <optional> $type = <default> ] + - Parameters [2] { + Parameter #0 [ <required> string $domain ] + Parameter #1 [ <optional> float $timeout = 5 ] } + - Return [ string|false ] } Method [ <internal:openswoole> static public method exec ] { - Parameters [2] { - Parameter #0 [ <required> $command ] - Parameter #1 [ <optional> $get_error_stream = <default> ] + Parameter #0 [ <required> string $command ] + Parameter #1 [ <optional> bool $get_error_stream = false ] } + - Return [ array|false ] } Method [ <internal:openswoole> static public method sleep ] { - Parameters [1] { - Parameter #0 [ <required> $seconds ] + Parameter #0 [ <required> int|float $seconds ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method getaddrinfo ] { - Parameters [6] { - Parameter #0 [ <required> $hostname ] - Parameter #1 [ <optional> $family = <default> ] - Parameter #2 [ <optional> $socktype = <default> ] - Parameter #3 [ <optional> $protocol = <default> ] - Parameter #4 [ <optional> $service = <default> ] - Parameter #5 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> string $domain ] + Parameter #1 [ <optional> int $family = AF_INET ] + Parameter #2 [ <optional> int $sockType = SOCK_STREAM ] + Parameter #3 [ <optional> int $protocol = STREAM_IPPROTO_TCP ] + Parameter #4 [ <optional> string $service = null ] + Parameter #5 [ <optional> float $timeout = -1 ] } + - Return [ array|false ] } Method [ <internal:openswoole> static public method statvfs ] { - Parameters [1] { - Parameter #0 [ <required> $path ] + Parameter #0 [ <required> string $path ] } + - Return [ array|bool ] } Method [ <internal:openswoole> static public method readFile ] { - - Parameters [1] { - Parameter #0 [ <required> $filename ] + - Parameters [2] { + Parameter #0 [ <required> string $filename ] + Parameter #1 [ <optional> int $flags = 0 ] } + - Return [ string|false ] } Method [ <internal:openswoole> static public method writeFile ] { - Parameters [3] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <required> $data ] - Parameter #2 [ <optional> $flags = <default> ] + Parameter #0 [ <required> string $filename ] + Parameter #1 [ <required> string $data ] + Parameter #2 [ <optional> int $flags = 0 ] } + - Return [ int|bool ] } Method [ <internal:openswoole> static public method wait ] { - Parameters [1] { - Parameter #0 [ <optional> $timeout = <default> ] + Parameter #0 [ <optional> float $timeout = -1 ] } + - Return [ array|bool ] } Method [ <internal:openswoole> static public method waitPid ] { - Parameters [2] { - Parameter #0 [ <required> $pid ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> int $pid ] + Parameter #1 [ <optional> float $timeout = -1 ] } + - Return [ array|bool ] } Method [ <internal:openswoole> static public method waitSignal ] { - Parameters [2] { - Parameter #0 [ <required> $signo ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> int $signalNum ] + Parameter #1 [ <optional> float $timeout = -1 ] } + - Return [ bool ] } Method [ <internal:openswoole> static public method waitEvent ] { - Parameters [3] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $events = <default> ] - Parameter #2 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> mixed $fd ] + Parameter #1 [ <required> int $events ] + Parameter #2 [ <optional> float $timeout = -1 ] } + - Return [ int|bool ] } Method [ <internal, deprecated:openswoole> static public method fread ] { - Parameters [2] { - Parameter #0 [ <required> $handle ] - Parameter #1 [ <optional> $length = <default> ] + Parameter #0 [ <required> mixed $handle ] + Parameter #1 [ <optional> int $length = 0 ] } + - Return [ string|false ] } Method [ <internal, deprecated:openswoole> static public method fwrite ] { - Parameters [3] { - Parameter #0 [ <required> $handle ] - Parameter #1 [ <required> $string ] - Parameter #2 [ <optional> $length = <default> ] + Parameter #0 [ <required> mixed $handle ] + Parameter #1 [ <required> string $data ] + Parameter #2 [ <optional> int $length = 0 ] } + - Return [ int|false ] } Method [ <internal, deprecated:openswoole> static public method fgets ] { - Parameters [1] { - Parameter #0 [ <required> $handle ] + Parameter #0 [ <required> mixed $handle ] } + - Return [ string|bool ] } } @@ -3098,18 +3260,20 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> public method add ] { - Parameters [2] { - Parameter #0 [ <required> callable $func ] - Parameter #1 [ <optional> ...$params ] + Parameter #0 [ <required> callable $callback ] + Parameter #1 [ <optional> mixed ...$params ] } + - Return [ false|void ] } Method [ <internal:openswoole> public method parallel ] { - Parameters [3] { - Parameter #0 [ <required> $n ] - Parameter #1 [ <optional> callable $func = <default> ] - Parameter #2 [ <optional> ...$params ] + Parameter #0 [ <required> int $count ] + Parameter #1 [ <required> callable $callback ] + Parameter #2 [ <optional> mixed ...$params ] } + - Return [ void ] } Method [ <internal:openswoole> public method set ] { @@ -3117,18 +3281,21 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> array $settings ] } + - Return [ void ] } Method [ <internal:openswoole> public method getOptions ] { - Parameters [0] { } + - Return [ array|void ] } Method [ <internal:openswoole> public method start ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -3153,53 +3320,60 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $size = <default> ] + Parameter #0 [ <optional> int $capacity = 1 ] } } Method [ <internal:openswoole> public method push ] { - Parameters [2] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> mixed $data ] + Parameter #1 [ <optional> float $timeout = -1 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method pop ] { - Parameters [1] { - Parameter #0 [ <optional> $timeout = <default> ] + Parameter #0 [ <optional> float $timeout = -1 ] } + - Return [ mixed ] } Method [ <internal:openswoole> public method isEmpty ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method isFull ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method close ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method stats ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:openswoole> public method length ] { - Parameters [0] { } + - Return [ int ] } } } @@ -3216,22 +3390,25 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> static public method enableCoroutine ] { - Parameters [2] { - Parameter #0 [ <optional> $enable = <default> ] - Parameter #1 [ <optional> $flags = <default> ] + Parameter #0 [ <optional> bool $enable = true ] + Parameter #1 [ <optional> int $flags = SWOOLE_HOOK_ALL ] } + - Return [ void ] } Method [ <internal:openswoole> static public method getHookFlags ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole> static public method setHookFlags ] { - Parameters [1] { - Parameter #0 [ <required> $flags ] + Parameter #0 [ <optional> int $flags = SWOOLE_HOOK_ALL ] } + - Return [ void ] } } @@ -3375,175 +3552,196 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, ctor> public method __construct ] { - Parameters [3] { - Parameter #0 [ <required> $domain ] - Parameter #1 [ <required> $type ] - Parameter #2 [ <optional> $protocol = <default> ] + Parameter #0 [ <required> int $domain ] + Parameter #1 [ <required> int $type ] + Parameter #2 [ <optional> int $protocol = IPPROTO_IP ] } } Method [ <internal:openswoole> public method bind ] { - Parameters [2] { - Parameter #0 [ <required> $address ] - Parameter #1 [ <optional> $port = <default> ] + Parameter #0 [ <required> string $address ] + Parameter #1 [ <optional> int $port = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method listen ] { - Parameters [1] { - Parameter #0 [ <optional> $backlog = <default> ] + Parameter #0 [ <optional> int $backlog = 512 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method accept ] { - Parameters [1] { - Parameter #0 [ <optional> $timeout = <default> ] + Parameter #0 [ <optional> float $timeout = 0 ] } + - Return [ Swoole\Coroutine\Socket|false ] } Method [ <internal:openswoole> public method connect ] { - Parameters [3] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <optional> $port = <default> ] - Parameter #2 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <optional> int $port = 0 ] + Parameter #2 [ <optional> float $timeout = 0 ] } + - Return [ mixed ] } Method [ <internal:openswoole> public method checkLiveness ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method peek ] { - Parameters [1] { - Parameter #0 [ <optional> $length = <default> ] + Parameter #0 [ <optional> int $length = 65536 ] } + - Return [ string|bool ] } Method [ <internal:openswoole> public method recv ] { - Parameters [2] { - Parameter #0 [ <optional> $length = <default> ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <optional> int $length = 65536 ] + Parameter #1 [ <optional> float $timeout = 0 ] } + - Return [ string|bool ] } Method [ <internal:openswoole> public method recvAll ] { - Parameters [2] { - Parameter #0 [ <optional> $length = <default> ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <optional> int $length = 65536 ] + Parameter #1 [ <optional> float $timeout = 0 ] } + - Return [ string|bool ] } Method [ <internal:openswoole> public method recvLine ] { - Parameters [2] { - Parameter #0 [ <optional> $length = <default> ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <optional> int $length = 65536 ] + Parameter #1 [ <optional> float $timeout = 0 ] } + - Return [ string|bool ] } Method [ <internal:openswoole> public method recvWithBuffer ] { - Parameters [2] { - Parameter #0 [ <optional> $length = <default> ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <optional> int $length = 65536 ] + Parameter #1 [ <optional> float $timeout = 0 ] } + - Return [ string|bool ] } Method [ <internal:openswoole> public method recvPacket ] { - Parameters [1] { - Parameter #0 [ <optional> $timeout = <default> ] + Parameter #0 [ <optional> float $timeout = 0 ] } + - Return [ string|bool ] } Method [ <internal:openswoole> public method send ] { - Parameters [2] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> string $data ] + Parameter #1 [ <optional> float $timeout = 0 ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method readVector ] { - Parameters [2] { - Parameter #0 [ <required> $io_vector ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> array $ioVector ] + Parameter #1 [ <optional> float $timeout = 0 ] } + - Return [ array|bool ] } Method [ <internal:openswoole> public method readVectorAll ] { - Parameters [2] { - Parameter #0 [ <required> $io_vector ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> array $ioVector ] + Parameter #1 [ <optional> float $timeout = 0 ] } + - Return [ array|bool ] } Method [ <internal:openswoole> public method writeVector ] { - Parameters [2] { - Parameter #0 [ <required> $io_vector ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> array $ioVector ] + Parameter #1 [ <optional> float $timeout = 0 ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method writeVectorAll ] { - Parameters [2] { - Parameter #0 [ <required> $io_vector ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> array $ioVector ] + Parameter #1 [ <optional> float $timeout = 0 ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method sendFile ] { - Parameters [3] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <optional> $offset = <default> ] - Parameter #2 [ <optional> $length = <default> ] + Parameter #0 [ <required> string $fileName ] + Parameter #1 [ <optional> int $offset = 0 ] + Parameter #2 [ <optional> int $length = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method sendAll ] { - Parameters [2] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> string $data ] + Parameter #1 [ <optional> float $timeout = 0 ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method recvfrom ] { - Parameters [2] { - Parameter #0 [ <required> &$peername ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #0 [ <required> mixed &$peerName ] + Parameter #1 [ <optional> float $timeout = 0 ] } + - Return [ string|bool ] } Method [ <internal:openswoole> public method sendto ] { - Parameters [3] { - Parameter #0 [ <required> $addr ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $data ] + Parameter #0 [ <required> string $addr ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> string $data ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method getOption ] { - Parameters [2] { - Parameter #0 [ <required> $level ] - Parameter #1 [ <required> $opt_name ] + Parameter #0 [ <required> int $level ] + Parameter #1 [ <required> int $name ] } + - Return [ mixed ] } Method [ <internal:openswoole> public method setProtocol ] { @@ -3551,53 +3749,61 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> array $settings ] } + - Return [ bool ] } Method [ <internal:openswoole> public method setOption ] { - Parameters [3] { - Parameter #0 [ <required> $level ] - Parameter #1 [ <required> $opt_name ] - Parameter #2 [ <required> $opt_value ] + Parameter #0 [ <required> int $level ] + Parameter #1 [ <required> int $name ] + Parameter #2 [ <required> mixed $value ] } + - Return [ bool ] } Method [ <internal:openswoole> public method sslHandshake ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method shutdown ] { - Parameters [1] { - Parameter #0 [ <optional> $how = <default> ] + Parameter #0 [ <optional> int $how = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method cancel ] { - Parameters [1] { - Parameter #0 [ <optional> $event = <default> ] + Parameter #0 [ <optional> int $event = SWOOLE_EVENT_READ ] } + - Return [ bool ] } Method [ <internal:openswoole> public method close ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method getpeername ] { - Parameters [0] { } + - Return [ array|bool ] } Method [ <internal:openswoole> public method getsockname ] { - Parameters [0] { } + - Return [ array|bool ] } } } @@ -3725,9 +3931,9 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, ctor> public method __construct ] { - Parameters [3] { - Parameter #0 [ <required> $type ] - Parameter #1 [ <optional> $async = <default> ] - Parameter #2 [ <optional> $id = <default> ] + Parameter #0 [ <required> int $sockType ] + Parameter #1 [ <optional> bool $async = false ] + Parameter #2 [ <optional> string $id = "" ] } } @@ -3742,106 +3948,121 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> array $settings ] } + - Return [ bool ] } Method [ <internal:openswoole> public method connect ] { - Parameters [4] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <optional> $port = <default> ] - Parameter #2 [ <optional> $timeout = <default> ] - Parameter #3 [ <optional> $sock_flag = <default> ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <optional> float $timeout = 0.5 ] + Parameter #3 [ <optional> int $sockFlag = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method recv ] { - Parameters [2] { - Parameter #0 [ <optional> $size = <default> ] - Parameter #1 [ <optional> $flag = <default> ] + Parameter #0 [ <optional> int $length = 65535 ] + Parameter #1 [ <optional> int $flags = 0 ] } + - Return [ string|bool ] } Method [ <internal:openswoole> public method send ] { - Parameters [2] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $flag = <default> ] + Parameter #0 [ <required> string $data ] + Parameter #1 [ <optional> int $flags = 0 ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method sendfile ] { - Parameters [3] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <optional> $offset = <default> ] - Parameter #2 [ <optional> $length = <default> ] + Parameter #0 [ <required> string $fileName ] + Parameter #1 [ <optional> int $offset = 0 ] + Parameter #2 [ <optional> int $length = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method sendto ] { - Parameters [3] { - Parameter #0 [ <required> $ip ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $data ] + Parameter #0 [ <required> string $ip ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> string $data ] } + - Return [ bool ] } Method [ <internal:openswoole> public method shutdown ] { - Parameters [1] { - Parameter #0 [ <required> $how ] + Parameter #0 [ <required> int $how ] } + - Return [ bool ] } Method [ <internal:openswoole> public method enableSSL ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method getPeerCert ] { - Parameters [0] { } + - Return [ string|bool ] } Method [ <internal:openswoole> public method verifyPeerCert ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method isConnected ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method getsockname ] { - Parameters [0] { } + - Return [ array|bool ] } Method [ <internal:openswoole> public method getpeername ] { - Parameters [0] { } + - Return [ array|bool ] } Method [ <internal:openswoole> public method close ] { - Parameters [1] { - Parameter #0 [ <optional> $force = <default> ] + Parameter #0 [ <optional> bool $force = false ] } + - Return [ bool ] } Method [ <internal:openswoole> public method getSocket ] { - Parameters [0] { } + - Return [ Socket|false ] } } } @@ -3966,7 +4187,7 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <required> $type ] + Parameter #0 [ <required> int $type ] } } @@ -3981,112 +4202,130 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> array $settings ] } + - Return [ bool ] } Method [ <internal:openswoole> public method connect ] { - Parameters [4] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <optional> $port = <default> ] - Parameter #2 [ <optional> $timeout = <default> ] - Parameter #3 [ <optional> $sock_flag = <default> ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <optional> int $port = 0 ] + Parameter #2 [ <optional> float $timeout = 0.5 ] + Parameter #3 [ <optional> int $sockFlag = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method recv ] { - Parameters [1] { - Parameter #0 [ <optional> $timeout = <default> ] + Parameter #0 [ <optional> float $timeout = 1.0 ] } + - Return [ string|bool ] } Method [ <internal:openswoole> public method peek ] { - Parameters [1] { - Parameter #0 [ <optional> $length = <default> ] + Parameter #0 [ <optional> int $length = 65535 ] } + - Return [ string|bool ] } Method [ <internal:openswoole> public method send ] { - - Parameters [1] { - Parameter #0 [ <required> $data ] + - Parameters [2] { + Parameter #0 [ <required> string $data ] + Parameter #1 [ <optional> float $timeout = 1.0 ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method sendfile ] { - Parameters [3] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <optional> $offset = <default> ] - Parameter #2 [ <optional> $length = <default> ] + Parameter #0 [ <required> string $fileName ] + Parameter #1 [ <optional> int $offset = 0 ] + Parameter #2 [ <optional> int $length = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method sendto ] { - Parameters [3] { - Parameter #0 [ <required> $address ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $data ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> string $data ] } + - Return [ bool ] } Method [ <internal:openswoole> public method recvfrom ] { - Parameters [3] { - Parameter #0 [ <required> $length ] - Parameter #1 [ <required> &$address ] - Parameter #2 [ <optional> &$port = <default> ] + Parameter #0 [ <required> int $length ] + Parameter #1 [ <required> mixed &$host ] + Parameter #2 [ <optional> mixed &$port = 0 ] } + - Return [ string|bool ] } Method [ <internal:openswoole> public method enableSSL ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method getPeerCert ] { - Parameters [0] { } + - Return [ string|bool ] } Method [ <internal:openswoole> public method verifyPeerCert ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> bool $allowSelfSigned = false ] } + - Return [ bool ] } Method [ <internal:openswoole> public method isConnected ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method getsockname ] { - Parameters [0] { } + - Return [ array|bool ] } Method [ <internal:openswoole> public method getpeername ] { - Parameters [0] { } + - Return [ array|bool ] } Method [ <internal:openswoole> public method close ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method exportSocket ] { - Parameters [0] { } + - Return [ Swoole\Coroutine\Socket|bool ] } } } @@ -4442,39 +4681,39 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { } - Methods [16] { - Method [ <internal:openswoole, ctor> public method __construct ] { + Method [ <internal, deprecated:openswoole, ctor> public method __construct ] { - Parameters [0] { } } - Method [ <internal:openswoole> public method __destruct ] { + Method [ <internal, deprecated:openswoole> public method __destruct ] { - Parameters [0] { } } - Method [ <internal:openswoole> public method getDefer ] { + Method [ <internal, deprecated:openswoole> public method getDefer ] { - Parameters [0] { } } - Method [ <internal:openswoole> public method setDefer ] { + Method [ <internal, deprecated:openswoole> public method setDefer ] { - Parameters [1] { Parameter #0 [ <optional> $defer = <default> ] } } - Method [ <internal:openswoole> public method connect ] { + Method [ <internal, deprecated:openswoole> public method connect ] { - Parameters [1] { Parameter #0 [ <optional> array $server_config = <default> ] } } - Method [ <internal:openswoole> public method query ] { + Method [ <internal, deprecated:openswoole> public method query ] { - Parameters [2] { Parameter #0 [ <required> $sql ] @@ -4482,25 +4721,25 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { } } - Method [ <internal:openswoole> public method fetch ] { + Method [ <internal, deprecated:openswoole> public method fetch ] { - Parameters [0] { } } - Method [ <internal:openswoole> public method fetchAll ] { + Method [ <internal, deprecated:openswoole> public method fetchAll ] { - Parameters [0] { } } - Method [ <internal:openswoole> public method nextResult ] { + Method [ <internal, deprecated:openswoole> public method nextResult ] { - Parameters [0] { } } - Method [ <internal:openswoole> public method prepare ] { + Method [ <internal, deprecated:openswoole> public method prepare ] { - Parameters [2] { Parameter #0 [ <required> $query ] @@ -4508,34 +4747,34 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { } } - Method [ <internal:openswoole> public method recv ] { + Method [ <internal, deprecated:openswoole> public method recv ] { - Parameters [0] { } } - Method [ <internal:openswoole> public method begin ] { + Method [ <internal, deprecated:openswoole> public method begin ] { - Parameters [1] { Parameter #0 [ <optional> $timeout = <default> ] } } - Method [ <internal:openswoole> public method commit ] { + Method [ <internal, deprecated:openswoole> public method commit ] { - Parameters [1] { Parameter #0 [ <optional> $timeout = <default> ] } } - Method [ <internal:openswoole> public method rollback ] { + Method [ <internal, deprecated:openswoole> public method rollback ] { - Parameters [1] { Parameter #0 [ <optional> $timeout = <default> ] } } - Method [ <internal:openswoole> public method escape ] { + Method [ <internal, deprecated:openswoole> public method escape ] { - Parameters [2] { Parameter #0 [ <required> $string ] @@ -4543,7 +4782,7 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { } } - Method [ <internal:openswoole> public method close ] { + Method [ <internal, deprecated:openswoole> public method close ] { - Parameters [0] { } @@ -4571,7 +4810,7 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { } - Methods [6] { - Method [ <internal:openswoole> public method execute ] { + Method [ <internal, deprecated:openswoole> public method execute ] { - Parameters [2] { Parameter #0 [ <optional> $params = <default> ] @@ -4579,35 +4818,35 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { } } - Method [ <internal:openswoole> public method fetch ] { + Method [ <internal, deprecated:openswoole> public method fetch ] { - Parameters [1] { Parameter #0 [ <optional> $timeout = <default> ] } } - Method [ <internal:openswoole> public method fetchAll ] { + Method [ <internal, deprecated:openswoole> public method fetchAll ] { - Parameters [1] { Parameter #0 [ <optional> $timeout = <default> ] } } - Method [ <internal:openswoole> public method nextResult ] { + Method [ <internal, deprecated:openswoole> public method nextResult ] { - Parameters [1] { Parameter #0 [ <optional> $timeout = <default> ] } } - Method [ <internal:openswoole> public method recv ] { + Method [ <internal, deprecated:openswoole> public method recv ] { - Parameters [1] { Parameter #0 [ <optional> $timeout = <default> ] } } - Method [ <internal:openswoole> public method close ] { + Method [ <internal, deprecated:openswoole> public method close ] { - Parameters [0] { } @@ -4732,7 +4971,7 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, ctor> public method __construct ] { - Parameters [1] { - Parameter #0 [ <optional> $config = <default> ] + Parameter #0 [ <optional> array $setting = [] ] } } @@ -4745,54 +4984,62 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> public method connect ] { - Parameters [3] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <optional> $port = <default> ] - Parameter #2 [ <optional> $serialize = <default> ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <optional> bool $serialize = false ] } + - Return [ bool ] } Method [ <internal:openswoole> public method getAuth ] { - Parameters [0] { } + - Return [ mixed ] } Method [ <internal:openswoole> public method getDBNum ] { - Parameters [0] { } + - Return [ int|bool ] } Method [ <internal:openswoole> public method getOptions ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:openswoole> public method setOptions ] { - Parameters [1] { - Parameter #0 [ <required> $options ] + Parameter #0 [ <required> array $options ] } + - Return [ bool ] } Method [ <internal:openswoole> public method getDefer ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method setDefer ] { - Parameters [1] { - Parameter #0 [ <required> $defer ] + Parameter #0 [ <optional> bool $defer = true ] } + - Return [ bool ] } Method [ <internal:openswoole> public method recv ] { - Parameters [0] { } + - Return [ mixed ] } Method [ <internal:openswoole> public method request ] { @@ -4800,1237 +5047,1400 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> array $params ] } + - Return [ void ] } Method [ <internal:openswoole> public method close ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method set ] { - - Parameters [4] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] - Parameter #2 [ <optional> $timeout = <default> ] - Parameter #3 [ <optional> $opt = <default> ] + - Parameters [3] { + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $value ] + Parameter #2 [ <optional> mixed $opt = null ] } + - Return [ Swoole\Coroutine\Redis|bool ] } Method [ <internal:openswoole> public method setBit ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $offset ] - Parameter #2 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $idx ] + Parameter #2 [ <required> bool $value ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method setEx ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $expire ] - Parameter #2 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $expire ] + Parameter #2 [ <required> mixed $value ] } + - Return [ Swoole\Coroutine\Redis|bool ] } Method [ <internal:openswoole> public method psetEx ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $expire ] - Parameter #2 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $expire ] + Parameter #2 [ <required> mixed $value ] } + - Return [ Swoole\Coroutine\Redis|bool ] } Method [ <internal:openswoole> public method lSet ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $index ] - Parameter #2 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $index ] + Parameter #2 [ <required> string $value ] } + - Return [ bool ] } Method [ <internal:openswoole> public method get ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ Swoole\Coroutine\Redis|string ] } Method [ <internal:openswoole> public method mGet ] { - Parameters [1] { - Parameter #0 [ <required> $keys ] + Parameter #0 [ <required> array $keys ] } + - Return [ Swoole\Coroutine\Redis|array ] } Method [ <internal:openswoole> public method del ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <optional> $other_keys = <default> ] + Parameter #0 [ <required> array|string $key ] + Parameter #1 [ <optional> string ...$other_keys ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method hDel ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $member ] - Parameter #2 [ <optional> $other_members = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $member ] + Parameter #2 [ <optional> string ...$other_members ] } + - Return [ int ] } Method [ <internal:openswoole> public method hSet ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $member ] - Parameter #2 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $member ] + Parameter #2 [ <required> string $value ] } + - Return [ int ] } Method [ <internal:openswoole> public method hMSet ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $pairs ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> array $keyvals ] } + - Return [ bool ] } Method [ <internal:openswoole> public method hSetNx ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $member ] - Parameter #2 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $member ] + Parameter #2 [ <required> string $value ] } + - Return [ int ] } Method [ <internal:openswoole> public method delete ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <optional> $other_keys = <default> ] + Parameter #0 [ <required> array|string $key ] + Parameter #1 [ <optional> string ...$other_keys ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method mSet ] { - Parameters [1] { - Parameter #0 [ <required> $pairs ] + Parameter #0 [ <required> array $key_values ] } + - Return [ bool ] } Method [ <internal:openswoole> public method mSetNx ] { - Parameters [1] { - Parameter #0 [ <required> $pairs ] + Parameter #0 [ <required> array $key_values ] } + - Return [ int ] } Method [ <internal:openswoole> public method getKeys ] { - Parameters [1] { - Parameter #0 [ <required> $pattern ] + Parameter #0 [ <required> string $pattern ] } + - Return [ Swoole\Coroutine\Redis|array ] } Method [ <internal:openswoole> public method keys ] { - Parameters [1] { - Parameter #0 [ <required> $pattern ] + Parameter #0 [ <required> string $pattern ] } + - Return [ Swoole\Coroutine\Redis|array ] } Method [ <internal:openswoole> public method exists ] { - - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <optional> $other_keys = <default> ] + - Parameters [1] { + Parameter #0 [ <required> string $key ] } + - Return [ Swoole\Coroutine\Redis|bool ] } Method [ <internal:openswoole> public method type ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method strLen ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method lPop ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ Swoole\Coroutine\Redis|string ] } Method [ <internal:openswoole> public method blPop ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $timeout_or_key ] - Parameter #2 [ <optional> $extra_args = <default> ] + Parameter #0 [ <required> array|string $key ] + Parameter #1 [ <required> string|int $timeout_or_key ] + Parameter #2 [ <optional> mixed ...$extra_args ] } + - Return [ array ] } Method [ <internal:openswoole> public method rPop ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ Swoole\Coroutine\Redis|string ] } Method [ <internal:openswoole> public method brPop ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $timeout_or_key ] - Parameter #2 [ <optional> $extra_args = <default> ] + Parameter #0 [ <required> array|string $key ] + Parameter #1 [ <required> string|int $timeout_or_key ] + Parameter #2 [ <optional> mixed ...$extra_args ] } + - Return [ array ] } Method [ <internal:openswoole> public method bRPopLPush ] { - Parameters [3] { - Parameter #0 [ <required> $src ] - Parameter #1 [ <required> $dst ] - Parameter #2 [ <required> $timeout ] + Parameter #0 [ <required> string $src ] + Parameter #1 [ <required> string $dst ] + Parameter #2 [ <required> int $timeout ] } + - Return [ string ] } Method [ <internal:openswoole> public method lSize ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ int ] } Method [ <internal:openswoole> public method lLen ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ int ] } Method [ <internal:openswoole> public method sSize ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ int ] } Method [ <internal:openswoole> public method scard ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ int ] } Method [ <internal:openswoole> public method sPop ] { - - Parameters [1] { - Parameter #0 [ <required> $key ] + - Parameters [2] { + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> int $count = 0 ] } + - Return [ array|string ] } Method [ <internal:openswoole> public method sMembers ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ array ] } Method [ <internal:openswoole> public method sGetMembers ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ array ] } Method [ <internal:openswoole> public method sRandMember ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <optional> $count = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> int $count = 0 ] } + - Return [ array|string ] } Method [ <internal:openswoole> public method persist ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ bool ] } Method [ <internal:openswoole> public method ttl ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ int ] } Method [ <internal:openswoole> public method pttl ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ int ] } Method [ <internal:openswoole> public method zCard ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ int ] } Method [ <internal:openswoole> public method zSize ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ int ] } Method [ <internal:openswoole> public method hLen ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ int ] } Method [ <internal:openswoole> public method hKeys ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ array ] } Method [ <internal:openswoole> public method hVals ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ array ] } Method [ <internal:openswoole> public method hGetAll ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ array ] } Method [ <internal:openswoole> public method debug ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ string ] } Method [ <internal:openswoole> public method restore ] { - Parameters [3] { - Parameter #0 [ <required> $ttl ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $timeout ] + Parameter #2 [ <required> string $value ] } + - Return [ bool ] } Method [ <internal:openswoole> public method dump ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ string ] } Method [ <internal:openswoole> public method renameKey ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $newkey ] + Parameter #0 [ <required> string $key_src ] + Parameter #1 [ <required> string $key_dst ] } + - Return [ Swoole\Coroutine\Redis|bool ] } Method [ <internal:openswoole> public method rename ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $newkey ] + Parameter #0 [ <required> string $key_src ] + Parameter #1 [ <required> string $key_dst ] } + - Return [ Swoole\Coroutine\Redis|bool ] } Method [ <internal:openswoole> public method renameNx ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $newkey ] + Parameter #0 [ <required> string $key_src ] + Parameter #1 [ <required> string $key_dst ] } + - Return [ Swoole\Coroutine\Redis|bool ] } Method [ <internal:openswoole> public method rpoplpush ] { - Parameters [2] { - Parameter #0 [ <required> $src ] - Parameter #1 [ <required> $dst ] + Parameter #0 [ <required> string $src ] + Parameter #1 [ <required> string $dst ] } + - Return [ string ] } Method [ <internal:openswoole> public method randomKey ] { - Parameters [0] { } + - Return [ Swoole\Coroutine\Redis|string ] } Method [ <internal:openswoole> public method pfadd ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $elements ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> array $elements ] } + - Return [ int ] } Method [ <internal:openswoole> public method pfcount ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ int ] } Method [ <internal:openswoole> public method pfmerge ] { - Parameters [2] { - Parameter #0 [ <required> $dstkey ] - Parameter #1 [ <required> $keys ] + Parameter #0 [ <required> string $dst ] + Parameter #1 [ <required> array $keys ] } + - Return [ bool ] } Method [ <internal:openswoole> public method ping ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> ?string $key = null ] } + - Return [ Swoole\Coroutine\Redis|string ] } Method [ <internal:openswoole> public method auth ] { - Parameters [1] { - Parameter #0 [ <required> $password ] + Parameter #0 [ <required> mixed $credentials ] } + - Return [ bool ] } Method [ <internal:openswoole> public method unwatch ] { - Parameters [0] { } + - Return [ Swoole\Coroutine\Redis|bool ] } Method [ <internal:openswoole> public method watch ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <optional> $other_keys = <default> ] + Parameter #0 [ <required> array|string $key ] + Parameter #1 [ <optional> string ...$other_keys ] } + - Return [ Swoole\Coroutine\Redis|bool ] } Method [ <internal:openswoole> public method save ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method bgSave ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method lastSave ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole> public method flushDB ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> bool $async = false ] } + - Return [ bool ] } Method [ <internal:openswoole> public method flushAll ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> bool $async = false ] } + - Return [ bool ] } Method [ <internal:openswoole> public method dbSize ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole> public method bgrewriteaof ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method time ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:openswoole> public method role ] { - Parameters [0] { } + - Return [ mixed ] } Method [ <internal:openswoole> public method setRange ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $offset ] - Parameter #2 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $start ] + Parameter #2 [ <required> string $value ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method setNx ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $value ] } + - Return [ Swoole\Coroutine\Redis|array|bool ] } Method [ <internal:openswoole> public method getSet ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $value ] } + - Return [ Swoole\Coroutine\Redis|string ] } Method [ <internal:openswoole> public method append ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $value ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method lPushx ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $value ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method lPush ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $value ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method rPush ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $value ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method rPushx ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $value ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method sContains ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $value ] } + - Return [ bool ] } Method [ <internal:openswoole> public method sismember ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $value ] } + - Return [ bool ] } Method [ <internal:openswoole> public method zScore ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $member ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $member ] } + - Return [ float ] } Method [ <internal:openswoole> public method zRank ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $member ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $member ] } + - Return [ int ] } Method [ <internal:openswoole> public method zRevRank ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $member ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $member ] } + - Return [ int ] } Method [ <internal:openswoole> public method hGet ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $member ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $member ] } + - Return [ string ] } Method [ <internal:openswoole> public method hMGet ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $keys ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> array $keys ] } + - Return [ array ] } Method [ <internal:openswoole> public method hExists ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $member ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $member ] } + - Return [ bool ] } Method [ <internal:openswoole> public method publish ] { - Parameters [2] { - Parameter #0 [ <required> $channel ] - Parameter #1 [ <required> $message ] + Parameter #0 [ <required> string $channel ] + Parameter #1 [ <required> string $message ] } + - Return [ int ] } Method [ <internal:openswoole> public method zIncrBy ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] - Parameter #2 [ <required> $member ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> float $value ] + Parameter #2 [ <required> mixed $member ] } + - Return [ float ] } Method [ <internal:openswoole> public method zAdd ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $score ] - Parameter #2 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $score ] + Parameter #2 [ <required> string $value ] } + - Return [ int ] } Method [ <internal:openswoole> public method zPopMin ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $count ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> ?int $value = null ] } + - Return [ array ] } Method [ <internal:openswoole> public method zPopMax ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $count ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> ?int $value = null ] } + - Return [ array ] } Method [ <internal:openswoole> public method bzPopMin ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $timeout_or_key ] - Parameter #2 [ <optional> $extra_args = <default> ] + Parameter #0 [ <required> array|string $key ] + Parameter #1 [ <required> string|int $timeout_or_key ] + Parameter #2 [ <optional> mixed ...$extra_args ] } + - Return [ array ] } Method [ <internal:openswoole> public method bzPopMax ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $timeout_or_key ] - Parameter #2 [ <optional> $extra_args = <default> ] + Parameter #0 [ <required> array|string $key ] + Parameter #1 [ <required> string|int $timeout_or_key ] + Parameter #2 [ <optional> mixed ...$extra_args ] } + - Return [ array ] } Method [ <internal:openswoole> public method zDeleteRangeByScore ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $min ] - Parameter #2 [ <required> $max ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $start ] + Parameter #2 [ <required> string $end ] } + - Return [ int ] } Method [ <internal:openswoole> public method zRemRangeByScore ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $min ] - Parameter #2 [ <required> $max ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $start ] + Parameter #2 [ <required> string $end ] } + - Return [ int ] } Method [ <internal:openswoole> public method zCount ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $min ] - Parameter #2 [ <required> $max ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $start ] + Parameter #2 [ <required> string $end ] } + - Return [ int ] } Method [ <internal:openswoole> public method zRange ] { - Parameters [4] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $start ] - Parameter #2 [ <required> $end ] - Parameter #3 [ <optional> $scores = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $start ] + Parameter #2 [ <required> int $end ] + Parameter #3 [ <optional> mixed $scores = null ] } + - Return [ array ] } Method [ <internal:openswoole> public method zRevRange ] { - Parameters [4] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $start ] - Parameter #2 [ <required> $end ] - Parameter #3 [ <optional> $scores = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $start ] + Parameter #2 [ <required> int $end ] + Parameter #3 [ <optional> mixed $scores = null ] } + - Return [ array ] } Method [ <internal:openswoole> public method zRangeByScore ] { - Parameters [4] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $start ] - Parameter #2 [ <required> $end ] - Parameter #3 [ <optional> $options = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $start ] + Parameter #2 [ <required> string $end ] + Parameter #3 [ <optional> array $options = [] ] } + - Return [ array ] } Method [ <internal:openswoole> public method zRevRangeByScore ] { - Parameters [4] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $start ] - Parameter #2 [ <required> $end ] - Parameter #3 [ <optional> $options = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $start ] + Parameter #2 [ <required> string $end ] + Parameter #3 [ <optional> array $options = [] ] } + - Return [ array ] } Method [ <internal:openswoole> public method zRangeByLex ] { - Parameters [5] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $min ] - Parameter #2 [ <required> $max ] - Parameter #3 [ <optional> $offset = <default> ] - Parameter #4 [ <optional> $limit = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $min ] + Parameter #2 [ <required> string $max ] + Parameter #3 [ <optional> int $offset = -1 ] + Parameter #4 [ <optional> int $count = -1 ] } + - Return [ array ] } Method [ <internal:openswoole> public method zRevRangeByLex ] { - Parameters [5] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $min ] - Parameter #2 [ <required> $max ] - Parameter #3 [ <optional> $offset = <default> ] - Parameter #4 [ <optional> $limit = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $min ] + Parameter #2 [ <required> string $max ] + Parameter #3 [ <optional> int $offset = -1 ] + Parameter #4 [ <optional> int $count = -1 ] } + - Return [ array ] } Method [ <internal:openswoole> public method zInter ] { - - Parameters [4] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $keys ] - Parameter #2 [ <optional> $weights = <default> ] - Parameter #3 [ <optional> $aggregate = <default> ] + - Parameters [3] { + Parameter #0 [ <required> array $keys ] + Parameter #1 [ <optional> array $weights = null ] + Parameter #2 [ <optional> array $options = null ] } + - Return [ array ] } Method [ <internal:openswoole> public method zinterstore ] { - Parameters [4] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $keys ] - Parameter #2 [ <optional> $weights = <default> ] - Parameter #3 [ <optional> $aggregate = <default> ] + Parameter #0 [ <required> string $dst ] + Parameter #1 [ <required> array $keys ] + Parameter #2 [ <optional> array $weights = null ] + Parameter #3 [ <optional> string $aggregate = null ] } + - Return [ int ] } Method [ <internal:openswoole> public method zUnion ] { - - Parameters [4] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $keys ] - Parameter #2 [ <optional> $weights = <default> ] - Parameter #3 [ <optional> $aggregate = <default> ] + - Parameters [3] { + Parameter #0 [ <required> array $keys ] + Parameter #1 [ <optional> array $weights = null ] + Parameter #2 [ <optional> array $options = null ] } + - Return [ array ] } Method [ <internal:openswoole> public method zunionstore ] { - Parameters [4] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $keys ] - Parameter #2 [ <optional> $weights = <default> ] - Parameter #3 [ <optional> $aggregate = <default> ] + Parameter #0 [ <required> string $dst ] + Parameter #1 [ <required> array $keys ] + Parameter #2 [ <optional> array $weights = null ] + Parameter #3 [ <optional> string $aggregate = null ] } + - Return [ int ] } Method [ <internal:openswoole> public method incrBy ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $value ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method hIncrBy ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $member ] - Parameter #2 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $member ] + Parameter #2 [ <required> int $value ] } + - Return [ int ] } Method [ <internal:openswoole> public method incr ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method decrBy ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $value ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method decr ] { - Parameters [1] { - Parameter #0 [ <required> $key ] + Parameter #0 [ <required> string $key ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method getBit ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $offset ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $idx ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method lInsert ] { - Parameters [4] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $position ] - Parameter #2 [ <required> $pivot ] - Parameter #3 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $pos ] + Parameter #2 [ <required> mixed $pivot ] + Parameter #3 [ <required> mixed $value ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method lGet ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $index ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $index ] } + - Return [ string ] } Method [ <internal:openswoole> public method lIndex ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $integer ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $index ] } + - Return [ string ] } Method [ <internal:openswoole> public method setTimeout ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $timeout ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $timeout ] } + - Return [ bool ] } Method [ <internal:openswoole> public method expire ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $integer ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $timeout ] } + - Return [ bool ] } Method [ <internal:openswoole> public method pexpire ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $timestamp ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $timeout ] } + - Return [ bool ] } Method [ <internal:openswoole> public method expireAt ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $timestamp ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $timeout ] } + - Return [ bool ] } Method [ <internal:openswoole> public method pexpireAt ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $timestamp ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $timeout ] } + - Return [ bool ] } Method [ <internal:openswoole> public method move ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $dbindex ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $index ] } + - Return [ bool ] } Method [ <internal:openswoole> public method select ] { - Parameters [1] { - Parameter #0 [ <required> $dbindex ] + Parameter #0 [ <required> int $db ] } + - Return [ bool ] } Method [ <internal:openswoole> public method getRange ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $start ] - Parameter #2 [ <required> $end ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $start ] + Parameter #2 [ <required> int $end ] } + - Return [ Swoole\Coroutine\Redis|string ] } Method [ <internal:openswoole> public method listTrim ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $start ] - Parameter #2 [ <required> $stop ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $start ] + Parameter #2 [ <required> int $end ] } + - Return [ bool ] } Method [ <internal:openswoole> public method ltrim ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $start ] - Parameter #2 [ <required> $stop ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $start ] + Parameter #2 [ <required> int $end ] } + - Return [ bool ] } Method [ <internal:openswoole> public method lGetRange ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $start ] - Parameter #2 [ <required> $end ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $start ] + Parameter #2 [ <required> int $end ] } + - Return [ array ] } Method [ <internal:openswoole> public method lRange ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $start ] - Parameter #2 [ <required> $end ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $start ] + Parameter #2 [ <required> int $end ] } + - Return [ array ] } Method [ <internal:openswoole> public method lRem ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] - Parameter #2 [ <required> $count ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $value ] + Parameter #2 [ <optional> int $count = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method lRemove ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] - Parameter #2 [ <required> $count ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $value ] + Parameter #2 [ <optional> int $count = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method zDeleteRangeByRank ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $start ] - Parameter #2 [ <required> $end ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $start ] + Parameter #2 [ <required> int $end ] } + - Return [ int ] } Method [ <internal:openswoole> public method zRemRangeByRank ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $min ] - Parameter #2 [ <required> $max ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> int $start ] + Parameter #2 [ <required> int $end ] } + - Return [ int ] } Method [ <internal:openswoole> public method incrByFloat ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> float $value ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method hIncrByFloat ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $member ] - Parameter #2 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $member ] + Parameter #2 [ <required> float $value ] } + - Return [ float ] } Method [ <internal:openswoole> public method bitCount ] { - - Parameters [1] { - Parameter #0 [ <required> $key ] + - Parameters [3] { + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> int $start = 0 ] + Parameter #2 [ <optional> int $end = -1 ] } + - Return [ Swoole\Coroutine\Redis|int ] } Method [ <internal:openswoole> public method bitOp ] { - Parameters [4] { - Parameter #0 [ <required> $operation ] - Parameter #1 [ <required> $ret_key ] - Parameter #2 [ <required> $key ] - Parameter #3 [ <optional> $other_keys = <default> ] + Parameter #0 [ <required> string $operation ] + Parameter #1 [ <required> string $deskey ] + Parameter #2 [ <required> string $srckey ] + Parameter #3 [ <optional> string ...$other_keys ] } + - Return [ int ] } Method [ <internal:openswoole> public method sAdd ] { - - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + - Parameters [3] { + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> mixed $value ] + Parameter #2 [ <optional> mixed ...$other_values ] } + - Return [ int ] } Method [ <internal:openswoole> public method sMove ] { - Parameters [3] { - Parameter #0 [ <required> $src ] - Parameter #1 [ <required> $dst ] - Parameter #2 [ <required> $value ] + Parameter #0 [ <required> string $src ] + Parameter #1 [ <required> string $dst ] + Parameter #2 [ <required> mixed $value ] } + - Return [ bool ] } Method [ <internal:openswoole> public method sDiff ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <optional> $other_keys = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> string ...$other_keys ] } + - Return [ array ] } Method [ <internal:openswoole> public method sDiffStore ] { - Parameters [3] { - Parameter #0 [ <required> $dst ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <optional> $other_keys = <default> ] + Parameter #0 [ <required> string $dst ] + Parameter #1 [ <required> string $key ] + Parameter #2 [ <optional> string ...$other_keys ] } + - Return [ int ] } Method [ <internal:openswoole> public method sUnion ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <optional> $other_keys = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> string ...$other_keys ] } + - Return [ array ] } Method [ <internal:openswoole> public method sUnionStore ] { - Parameters [3] { - Parameter #0 [ <required> $dst ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <optional> $other_keys = <default> ] + Parameter #0 [ <required> string $dst ] + Parameter #1 [ <required> string $key ] + Parameter #2 [ <optional> string ...$other_keys ] } + - Return [ int ] } Method [ <internal:openswoole> public method sInter ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <optional> $other_keys = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> string ...$other_keys ] } + - Return [ array ] } Method [ <internal:openswoole> public method sInterStore ] { - Parameters [3] { - Parameter #0 [ <required> $dst ] - Parameter #1 [ <required> $key ] - Parameter #2 [ <optional> $other_keys = <default> ] + Parameter #0 [ <required> string $dst ] + Parameter #1 [ <required> string $key ] + Parameter #2 [ <optional> string ...$other_keys ] } + - Return [ int ] } Method [ <internal:openswoole> public method sRemove ] { - - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + - Parameters [3] { + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $value ] + Parameter #2 [ <optional> string ...$other_values ] } + - Return [ int ] } Method [ <internal:openswoole> public method srem ] { - - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + - Parameters [3] { + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $value ] + Parameter #2 [ <optional> string ...$other_values ] } + - Return [ int ] } Method [ <internal:openswoole> public method zDelete ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $member ] - Parameter #2 [ <optional> $other_members = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $member ] + Parameter #2 [ <optional> string ...$other_members ] } + - Return [ int ] } Method [ <internal:openswoole> public method zRemove ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $member ] - Parameter #2 [ <optional> $other_members = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $member ] + Parameter #2 [ <optional> string ...$other_members ] } + - Return [ int ] } Method [ <internal:openswoole> public method zRem ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $member ] - Parameter #2 [ <optional> $other_members = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $member ] + Parameter #2 [ <optional> string ...$other_members ] } + - Return [ int ] } Method [ <internal:openswoole> public method pSubscribe ] { - Parameters [1] { - Parameter #0 [ <required> $patterns ] + Parameter #0 [ <required> array $patterns ] } + - Return [ void ] } Method [ <internal:openswoole> public method subscribe ] { - - Parameters [1] { - Parameter #0 [ <required> $channels ] + - Parameters [2] { + Parameter #0 [ <required> string $channel ] + Parameter #1 [ <optional> string ...$other_channels ] } + - Return [ array ] } Method [ <internal:openswoole> public method unsubscribe ] { - - Parameters [1] { - Parameter #0 [ <required> $channels ] + - Parameters [2] { + Parameter #0 [ <required> string $channel ] + Parameter #1 [ <optional> string ...$other_channels ] } + - Return [ array ] } Method [ <internal:openswoole> public method pUnSubscribe ] { - Parameters [1] { - Parameter #0 [ <required> $patterns ] + Parameter #0 [ <required> array $patterns ] } + - Return [ array ] } Method [ <internal:openswoole> public method multi ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> int $value = Redis::MULTI ] } + - Return [ Swoole\Coroutine\Redis|bool ] } Method [ <internal:openswoole> public method exec ] { - Parameters [0] { } + - Return [ array ] } Method [ <internal:openswoole> public method eval ] { - Parameters [3] { - Parameter #0 [ <required> $script ] - Parameter #1 [ <optional> $args = <default> ] - Parameter #2 [ <optional> $num_keys = <default> ] + Parameter #0 [ <required> string $script ] + Parameter #1 [ <optional> array $keys = null ] + Parameter #2 [ <optional> int $num_keys = 0 ] } + - Return [ mixed ] } Method [ <internal:openswoole> public method evalSha ] { - Parameters [3] { - Parameter #0 [ <required> $script_sha ] - Parameter #1 [ <optional> $args = <default> ] - Parameter #2 [ <optional> $num_keys = <default> ] + Parameter #0 [ <required> string $sha1 ] + Parameter #1 [ <optional> array $keys = null ] + Parameter #2 [ <optional> int $num_keys = 0 ] } + - Return [ mixed ] } Method [ <internal:openswoole> public method script ] { - Parameters [2] { - Parameter #0 [ <required> $cmd ] - Parameter #1 [ <optional> $args = <default> ] + Parameter #0 [ <required> string $command ] + Parameter #1 [ <optional> mixed ...$args ] } + - Return [ mixed ] } } } @@ -6062,9 +6472,9 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, ctor> public method __construct ] { - Parameters [3] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <optional> $port = <default> ] - Parameter #2 [ <optional> $open_ssl = <default> ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <optional> int $port = 80 ] + Parameter #2 [ <optional> bool $openSSL = false ] } } @@ -6077,78 +6487,89 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> public method set ] { - Parameters [1] { - Parameter #0 [ <required> array $settings ] + Parameter #0 [ <required> array $options ] } + - Return [ bool ] } Method [ <internal:openswoole> public method connect ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method stats ] { - Parameters [1] { - Parameter #0 [ <optional> $key = <default> ] + Parameter #0 [ <optional> string $key = "" ] } + - Return [ array|int|bool ] } Method [ <internal:openswoole> public method isStreamExist ] { - Parameters [1] { - Parameter #0 [ <required> $stream_id ] + Parameter #0 [ <required> int $streamId ] } + - Return [ bool ] } Method [ <internal:openswoole> public method send ] { - Parameters [1] { - Parameter #0 [ <required> $request ] + Parameter #0 [ <required> Swoole\Http2\Request $request ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method write ] { - Parameters [3] { - Parameter #0 [ <required> $stream_id ] - Parameter #1 [ <required> $data ] - Parameter #2 [ <optional> $end_stream = <default> ] + Parameter #0 [ <required> int $streamId ] + Parameter #1 [ <required> mixed $data ] + Parameter #2 [ <optional> bool $end = false ] } + - Return [ bool ] } Method [ <internal:openswoole> public method recv ] { - Parameters [1] { - Parameter #0 [ <optional> $timeout = <default> ] + Parameter #0 [ <optional> float $timeout = 0 ] } + - Return [ Swoole\Http2\Response|bool ] } Method [ <internal:openswoole> public method read ] { - Parameters [1] { - Parameter #0 [ <optional> $timeout = <default> ] + Parameter #0 [ <optional> float $timeout = 0 ] } + - Return [ Swoole\Http2\Response|bool ] } Method [ <internal:openswoole> public method goaway ] { - Parameters [2] { - Parameter #0 [ <optional> $error_code = <default> ] - Parameter #1 [ <optional> $debug_data = <default> ] + Parameter #0 [ <optional> int $errorCode = SWOOLE_HTTP2_ERROR_NO_ERROR ] + Parameter #1 [ <optional> string $debugData = "" ] } + - Return [ bool ] } Method [ <internal:openswoole> public method ping ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method close ] { - Parameters [0] { } + - Return [ bool ] } } } @@ -6338,10 +6759,10 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, ctor> public method __construct ] { - Parameters [4] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <optional> $port = <default> ] - Parameter #2 [ <optional> $mode = <default> ] - Parameter #3 [ <optional> $sock_type = <default> ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <optional> int $port = 0 ] + Parameter #2 [ <optional> int $mode = SWOOLE_PROCESS ] + Parameter #3 [ <optional> int $sockType = SWOOLE_SOCK_TCP ] } } @@ -6354,34 +6775,38 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> public method listen ] { - Parameters [3] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $sock_type ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> int $sockType ] } + - Return [ Swoole\Server\Port|false ] } Method [ <internal:openswoole> public method addlistener ] { - Parameters [3] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $sock_type ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> int $sockType ] } + - Return [ Swoole\Server\Port|false ] } Method [ <internal:openswoole> public method on ] { - Parameters [2] { - Parameter #0 [ <required> $event_name ] + Parameter #0 [ <required> string $event ] Parameter #1 [ <required> callable $callback ] } + - Return [ bool ] } Method [ <internal:openswoole> public method getCallback ] { - Parameters [1] { - Parameter #0 [ <required> $event_name ] + Parameter #0 [ <required> string $event ] } + - Return [ mixed ] } Method [ <internal:openswoole> public method set ] { @@ -6389,295 +6814,338 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> array $settings ] } + - Return [ bool ] } Method [ <internal:openswoole> public method start ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method send ] { - Parameters [3] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $send_data ] - Parameter #2 [ <optional> $server_socket = <default> ] + Parameter #0 [ <required> string|int $fd ] + Parameter #1 [ <required> mixed $data ] + Parameter #2 [ <optional> int $serverSocket = -1 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method sendto ] { - Parameters [4] { - Parameter #0 [ <required> $ip ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $send_data ] - Parameter #3 [ <optional> $server_socket = <default> ] + Parameter #0 [ <required> string $ip ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> string $data ] + Parameter #3 [ <optional> int $serverSocket = -1 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method sendwait ] { - Parameters [2] { - Parameter #0 [ <required> $conn_fd ] - Parameter #1 [ <required> $send_data ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <required> string $data ] } + - Return [ bool ] } Method [ <internal:openswoole> public method exists ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole> public method exist ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole> public method protect ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $is_protected = <default> ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> bool $isProtected = true ] } + - Return [ bool ] } Method [ <internal:openswoole> public method sendfile ] { - Parameters [4] { - Parameter #0 [ <required> $conn_fd ] - Parameter #1 [ <required> $filename ] - Parameter #2 [ <optional> $offset = <default> ] - Parameter #3 [ <optional> $length = <default> ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <required> string $fileName ] + Parameter #2 [ <optional> int $offset = 0 ] + Parameter #3 [ <optional> int $length = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method close ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $reset = <default> ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> bool $reset = false ] } + - Return [ bool ] } Method [ <internal:openswoole> public method confirm ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole> public method pause ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole> public method resume ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole> public method task ] { - Parameters [3] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $worker_id = <default> ] - Parameter #2 [ <optional> ?callable $finish_callback = <default> ] + Parameter #0 [ <required> mixed $data ] + Parameter #1 [ <optional> int $workerId = -1 ] + Parameter #2 [ <optional> ?callable $finishCallback = null ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method taskwait ] { - Parameters [3] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $timeout = <default> ] - Parameter #2 [ <optional> $worker_id = <default> ] + Parameter #0 [ <required> mixed $data ] + Parameter #1 [ <optional> float $timeout = 0.5 ] + Parameter #2 [ <optional> int $workerId = -1 ] } + - Return [ string|bool ] } Method [ <internal:openswoole> public method taskWaitMulti ] { - Parameters [2] { Parameter #0 [ <required> array $tasks ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #1 [ <optional> float $timeout = 0.5 ] } + - Return [ array|bool ] } Method [ <internal:openswoole> public method taskCo ] { - Parameters [2] { Parameter #0 [ <required> array $tasks ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #1 [ <optional> float $timeout = 0.5 ] } + - Return [ array|bool ] } Method [ <internal:openswoole> public method finish ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> mixed $data ] } + - Return [ bool ] } Method [ <internal:openswoole> public method reload ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method shutdown ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method stop ] { - - Parameters [1] { - Parameter #0 [ <optional> $worker_id = <default> ] + - Parameters [2] { + Parameter #0 [ <required> int $workerId ] + Parameter #1 [ <optional> bool $waitEvent = false ] } + - Return [ bool ] } Method [ <internal:openswoole> public method getLastError ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole> public method heartbeat ] { - Parameters [1] { - Parameter #0 [ <required> $reactor_id ] + Parameter #0 [ <optional> bool $closeConn = false ] } + - Return [ array|false ] } Method [ <internal:openswoole> public method getClientInfo ] { - - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $reactor_id = <default> ] + - Parameters [3] { + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> int $reactorId = -1 ] + Parameter #2 [ <optional> bool $noCheckConn = false ] } + - Return [ array|bool ] } Method [ <internal:openswoole> public method getClientList ] { - Parameters [2] { - Parameter #0 [ <required> $start_fd ] - Parameter #1 [ <optional> $find_count = <default> ] + Parameter #0 [ <optional> int $startFd = 0 ] + Parameter #1 [ <optional> int $pageSize = 10 ] } + - Return [ array|bool ] } Method [ <internal:openswoole> public method getWorkerId ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole> public method getWorkerPid ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> int $workerId = -1 ] } + - Return [ int|false ] } Method [ <internal:openswoole> public method getWorkerStatus ] { - Parameters [1] { - Parameter #0 [ <optional> $worker_id = <default> ] + Parameter #0 [ <optional> int $workerId = -1 ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method getManagerPid ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole> public method getMasterPid ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole> public method connection_info ] { - - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $reactor_id = <default> ] + - Parameters [3] { + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> int $reactorId = -1 ] + Parameter #2 [ <optional> bool $noCheckConn = false ] } + - Return [ array|bool ] } Method [ <internal:openswoole> public method connection_list ] { - Parameters [2] { - Parameter #0 [ <required> $start_fd ] - Parameter #1 [ <optional> $find_count = <default> ] + Parameter #0 [ <optional> int $startFd = 0 ] + Parameter #1 [ <optional> int $pageSize = 10 ] } + - Return [ array|bool ] } Method [ <internal:openswoole> public method sendMessage ] { - Parameters [2] { - Parameter #0 [ <required> $message ] - Parameter #1 [ <required> $dst_worker_id ] + Parameter #0 [ <required> mixed $message ] + Parameter #1 [ <required> int $workerId ] } + - Return [ bool ] } Method [ <internal:openswoole> public method addProcess ] { - Parameters [1] { - Parameter #0 [ <required> swoole_process $process ] + Parameter #0 [ <required> Swoole\Process $process ] } + - Return [ int|bool ] } Method [ <internal:openswoole> public method stats ] { - Parameters [0] { } + - Return [ array|false ] } Method [ <internal:openswoole> public method getSocket ] { - Parameters [1] { - Parameter #0 [ <optional> $port = <default> ] + Parameter #0 [ <optional> int $port = -1 ] } + - Return [ mixed ] } Method [ <internal:openswoole> public method bind ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $uid ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <required> int $uid ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Timer> public method after ] { - Parameters [2] { - Parameter #0 [ <required> $ms ] + Parameter #0 [ <required> int $ms ] Parameter #1 [ <required> callable $callback ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Timer> public method tick ] { - Parameters [2] { - Parameter #0 [ <required> $ms ] + Parameter #0 [ <required> int $ms ] Parameter #1 [ <required> callable $callback ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Timer> public method clearTimer ] { - - Parameters [1] { - Parameter #0 [ <required> $timer_id ] + - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Event> public method defer ] { @@ -6685,6 +7153,7 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> callable $callback ] } + - Return [ bool ] } } } @@ -6701,8 +7170,9 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> static public method pack ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> mixed $data ] } + - Return [ string|bool ] } } @@ -6718,8 +7188,9 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> public method finish ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> mixed $data ] } + - Return [ bool ] } } } @@ -6901,29 +7372,29 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, prototype ArrayAccess> public method offsetExists ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> mixed $key ] } } Method [ <internal:openswoole, prototype ArrayAccess> public method offsetGet ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> mixed $key ] } } Method [ <internal:openswoole, prototype ArrayAccess> public method offsetSet ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> mixed $key ] + Parameter #1 [ <required> mixed $value ] } } Method [ <internal:openswoole, prototype ArrayAccess> public method offsetUnset ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> mixed $key ] } } } @@ -6978,27 +7449,31 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> array $settings ] } + - Return [ bool|void ] } Method [ <internal:openswoole> public method on ] { - Parameters [2] { - Parameter #0 [ <required> $event_name ] + Parameter #0 [ <required> string $event ] Parameter #1 [ <required> callable $callback ] } + - Return [ bool ] } Method [ <internal:openswoole> public method getCallback ] { - Parameters [1] { - Parameter #0 [ <required> $event_name ] + Parameter #0 [ <required> string $event ] } + - Return [ ?callable ] } Method [ <internal:openswoole> public method getSocket ] { - Parameters [0] { } + - Return [ mixed ] } } } @@ -7015,8 +7490,9 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> static public method create ] { - Parameters [1] { - Parameter #0 [ <optional> $options = <default> ] + Parameter #0 [ <required> ?array $options ] } + - Return [ Swoole\Http\Request|bool ] } } @@ -7037,37 +7513,43 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [0] { } + - Return [ string|bool ] } Method [ <internal:openswoole> public method getContent ] { - Parameters [0] { } + - Return [ string|bool ] } Method [ <internal:openswoole> public method getData ] { - Parameters [0] { } + - Return [ string|bool ] } Method [ <internal:openswoole> public method parse ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> string $data ] } + - Return [ int|false ] } Method [ <internal:openswoole> public method isCompleted ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method getMethod ] { - Parameters [0] { } + - Return [ string|bool ] } Method [ <internal:openswoole> public method __destruct ] { @@ -7090,9 +7572,10 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> static public method create ] { - Parameters [2] { - Parameter #0 [ <required> $server ] - Parameter #1 [ <optional> $fd = <default> ] + Parameter #0 [ <optional> mixed $server = -1 ] + Parameter #1 [ <optional> int $fd = -1 ] } + - Return [ Swoole\Http\Response|bool ] } } @@ -7109,175 +7592,199 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method isWritable ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method cookie ] { - Parameters [9] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <optional> $value = <default> ] - Parameter #2 [ <optional> $expires = <default> ] - Parameter #3 [ <optional> $path = <default> ] - Parameter #4 [ <optional> $domain = <default> ] - Parameter #5 [ <optional> $secure = <default> ] - Parameter #6 [ <optional> $httponly = <default> ] - Parameter #7 [ <optional> $samesite = <default> ] - Parameter #8 [ <optional> $priority = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> ?string $value = null ] + Parameter #2 [ <optional> int $expire = 0 ] + Parameter #3 [ <optional> string $path = "" ] + Parameter #4 [ <optional> string $domain = "" ] + Parameter #5 [ <optional> bool $secure = false ] + Parameter #6 [ <optional> bool $httpOnly = false ] + Parameter #7 [ <optional> string $sameSite = "" ] + Parameter #8 [ <optional> string $priority = "" ] } + - Return [ false|void ] } Method [ <internal:openswoole> public method setCookie ] { - Parameters [9] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <optional> $value = <default> ] - Parameter #2 [ <optional> $expires = <default> ] - Parameter #3 [ <optional> $path = <default> ] - Parameter #4 [ <optional> $domain = <default> ] - Parameter #5 [ <optional> $secure = <default> ] - Parameter #6 [ <optional> $httponly = <default> ] - Parameter #7 [ <optional> $samesite = <default> ] - Parameter #8 [ <optional> $priority = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> ?string $value = null ] + Parameter #2 [ <optional> int $expire = 0 ] + Parameter #3 [ <optional> string $path = "" ] + Parameter #4 [ <optional> string $domain = "" ] + Parameter #5 [ <optional> bool $secure = false ] + Parameter #6 [ <optional> bool $httpOnly = false ] + Parameter #7 [ <optional> string $sameSite = "" ] + Parameter #8 [ <optional> string $priority = "" ] } + - Return [ false|void ] } Method [ <internal:openswoole> public method rawcookie ] { - Parameters [9] { - Parameter #0 [ <required> $name ] - Parameter #1 [ <optional> $value = <default> ] - Parameter #2 [ <optional> $expires = <default> ] - Parameter #3 [ <optional> $path = <default> ] - Parameter #4 [ <optional> $domain = <default> ] - Parameter #5 [ <optional> $secure = <default> ] - Parameter #6 [ <optional> $httponly = <default> ] - Parameter #7 [ <optional> $samesite = <default> ] - Parameter #8 [ <optional> $priority = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <optional> ?string $value = null ] + Parameter #2 [ <optional> int $expire = 0 ] + Parameter #3 [ <optional> string $path = "" ] + Parameter #4 [ <optional> string $domain = "" ] + Parameter #5 [ <optional> bool $secure = false ] + Parameter #6 [ <optional> bool $httpOnly = false ] + Parameter #7 [ <optional> string $sameSite = "" ] + Parameter #8 [ <optional> string $priority = "" ] } + - Return [ false|void ] } Method [ <internal:openswoole> public method status ] { - Parameters [2] { - Parameter #0 [ <required> $http_code ] - Parameter #1 [ <optional> $reason = <default> ] + Parameter #0 [ <required> int $statusCode ] + Parameter #1 [ <optional> string $reason = "" ] } + - Return [ bool ] } Method [ <internal:openswoole> public method setStatusCode ] { - Parameters [2] { - Parameter #0 [ <required> $http_code ] - Parameter #1 [ <optional> $reason = <default> ] + Parameter #0 [ <required> int $statusCode ] + Parameter #1 [ <optional> string $reason = "" ] } + - Return [ bool ] } Method [ <internal:openswoole> public method header ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] - Parameter #2 [ <optional> $format = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $value ] + Parameter #2 [ <optional> bool $format = true ] } + - Return [ false|void ] } Method [ <internal:openswoole> public method setHeader ] { - Parameters [3] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] - Parameter #2 [ <optional> $format = <default> ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $value ] + Parameter #2 [ <optional> bool $format = true ] } + - Return [ false|void ] } Method [ <internal:openswoole> public method write ] { - Parameters [1] { - Parameter #0 [ <required> $content ] + Parameter #0 [ <required> string $data ] } + - Return [ bool ] } Method [ <internal:openswoole> public method end ] { - Parameters [1] { - Parameter #0 [ <optional> $content = <default> ] + Parameter #0 [ <optional> ?string $data = null ] } + - Return [ bool ] } Method [ <internal:openswoole> public method sendfile ] { - Parameters [3] { - Parameter #0 [ <required> $filename ] - Parameter #1 [ <optional> $offset = <default> ] - Parameter #2 [ <optional> $length = <default> ] + Parameter #0 [ <required> string $fileName ] + Parameter #1 [ <optional> int $offset = 0 ] + Parameter #2 [ <optional> int $length = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole> public method redirect ] { - Parameters [2] { - Parameter #0 [ <required> $location ] - Parameter #1 [ <optional> $http_code = <default> ] + Parameter #0 [ <required> string $url ] + Parameter #1 [ <optional> int $status_code = 302 ] } + - Return [ bool|void ] } Method [ <internal:openswoole> public method detach ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method trailer ] { - Parameters [2] { - Parameter #0 [ <required> $key ] - Parameter #1 [ <required> $value ] + Parameter #0 [ <required> string $key ] + Parameter #1 [ <required> string $value ] } + - Return [ bool ] } Method [ <internal:openswoole> public method ping ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method goaway ] { - - Parameters [0] { + - Parameters [2] { + Parameter #0 [ <optional> int $errorCode = SWOOLE_HTTP2_ERROR_NO_ERROR ] + Parameter #1 [ <optional> string $debugData = "" ] } + - Return [ bool ] } Method [ <internal:openswoole> public method upgrade ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method push ] { - Parameters [3] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $opcode = <default> ] - Parameter #2 [ <optional> $flags = <default> ] + Parameter #0 [ <required> Swoole\WebSocket\Frame|string $data ] + Parameter #1 [ <optional> int $opcode = SWOOLE_WEBSOCKET_OPCODE_TEXT ] + Parameter #2 [ <optional> int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] } + - Return [ bool ] } Method [ <internal:openswoole> public method recv ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> float $timeout = 0 ] } + - Return [ Swoole\WebSocket\Frame|string|bool ] } Method [ <internal:openswoole> public method close ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole> public method __destruct ] { @@ -7319,10 +7826,10 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, inherits Swoole\Server, ctor> public method __construct ] { - Parameters [4] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <optional> $port = <default> ] - Parameter #2 [ <optional> $mode = <default> ] - Parameter #3 [ <optional> $sock_type = <default> ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <optional> int $port = 0 ] + Parameter #2 [ <optional> int $mode = SWOOLE_PROCESS ] + Parameter #3 [ <optional> int $sockType = SWOOLE_SOCK_TCP ] } } @@ -7335,34 +7842,38 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, inherits Swoole\Server> public method listen ] { - Parameters [3] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $sock_type ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> int $sockType ] } + - Return [ Swoole\Server\Port|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method addlistener ] { - Parameters [3] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $sock_type ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> int $sockType ] } + - Return [ Swoole\Server\Port|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method on ] { - Parameters [2] { - Parameter #0 [ <required> $event_name ] + Parameter #0 [ <required> string $event ] Parameter #1 [ <required> callable $callback ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getCallback ] { - Parameters [1] { - Parameter #0 [ <required> $event_name ] + Parameter #0 [ <required> string $event ] } + - Return [ mixed ] } Method [ <internal:openswoole, inherits Swoole\Server> public method set ] { @@ -7370,295 +7881,338 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> array $settings ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method start ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method send ] { - Parameters [3] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $send_data ] - Parameter #2 [ <optional> $server_socket = <default> ] + Parameter #0 [ <required> string|int $fd ] + Parameter #1 [ <required> mixed $data ] + Parameter #2 [ <optional> int $serverSocket = -1 ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method sendto ] { - Parameters [4] { - Parameter #0 [ <required> $ip ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $send_data ] - Parameter #3 [ <optional> $server_socket = <default> ] + Parameter #0 [ <required> string $ip ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> string $data ] + Parameter #3 [ <optional> int $serverSocket = -1 ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method sendwait ] { - Parameters [2] { - Parameter #0 [ <required> $conn_fd ] - Parameter #1 [ <required> $send_data ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <required> string $data ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method exists ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method exist ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method protect ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $is_protected = <default> ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> bool $isProtected = true ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method sendfile ] { - Parameters [4] { - Parameter #0 [ <required> $conn_fd ] - Parameter #1 [ <required> $filename ] - Parameter #2 [ <optional> $offset = <default> ] - Parameter #3 [ <optional> $length = <default> ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <required> string $fileName ] + Parameter #2 [ <optional> int $offset = 0 ] + Parameter #3 [ <optional> int $length = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method close ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $reset = <default> ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> bool $reset = false ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method confirm ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method pause ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method resume ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method task ] { - Parameters [3] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $worker_id = <default> ] - Parameter #2 [ <optional> ?callable $finish_callback = <default> ] + Parameter #0 [ <required> mixed $data ] + Parameter #1 [ <optional> int $workerId = -1 ] + Parameter #2 [ <optional> ?callable $finishCallback = null ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method taskwait ] { - Parameters [3] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $timeout = <default> ] - Parameter #2 [ <optional> $worker_id = <default> ] + Parameter #0 [ <required> mixed $data ] + Parameter #1 [ <optional> float $timeout = 0.5 ] + Parameter #2 [ <optional> int $workerId = -1 ] } + - Return [ string|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method taskWaitMulti ] { - Parameters [2] { Parameter #0 [ <required> array $tasks ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #1 [ <optional> float $timeout = 0.5 ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method taskCo ] { - Parameters [2] { Parameter #0 [ <required> array $tasks ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #1 [ <optional> float $timeout = 0.5 ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method finish ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> mixed $data ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method reload ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method shutdown ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method stop ] { - - Parameters [1] { - Parameter #0 [ <optional> $worker_id = <default> ] + - Parameters [2] { + Parameter #0 [ <required> int $workerId ] + Parameter #1 [ <optional> bool $waitEvent = false ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getLastError ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole, inherits Swoole\Server> public method heartbeat ] { - Parameters [1] { - Parameter #0 [ <required> $reactor_id ] + Parameter #0 [ <optional> bool $closeConn = false ] } + - Return [ array|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getClientInfo ] { - - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $reactor_id = <default> ] + - Parameters [3] { + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> int $reactorId = -1 ] + Parameter #2 [ <optional> bool $noCheckConn = false ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getClientList ] { - Parameters [2] { - Parameter #0 [ <required> $start_fd ] - Parameter #1 [ <optional> $find_count = <default> ] + Parameter #0 [ <optional> int $startFd = 0 ] + Parameter #1 [ <optional> int $pageSize = 10 ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getWorkerId ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getWorkerPid ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> int $workerId = -1 ] } + - Return [ int|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getWorkerStatus ] { - Parameters [1] { - Parameter #0 [ <optional> $worker_id = <default> ] + Parameter #0 [ <optional> int $workerId = -1 ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getManagerPid ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getMasterPid ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole, inherits Swoole\Server> public method connection_info ] { - - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $reactor_id = <default> ] + - Parameters [3] { + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> int $reactorId = -1 ] + Parameter #2 [ <optional> bool $noCheckConn = false ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method connection_list ] { - Parameters [2] { - Parameter #0 [ <required> $start_fd ] - Parameter #1 [ <optional> $find_count = <default> ] + Parameter #0 [ <optional> int $startFd = 0 ] + Parameter #1 [ <optional> int $pageSize = 10 ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method sendMessage ] { - Parameters [2] { - Parameter #0 [ <required> $message ] - Parameter #1 [ <required> $dst_worker_id ] + Parameter #0 [ <required> mixed $message ] + Parameter #1 [ <required> int $workerId ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method addProcess ] { - Parameters [1] { - Parameter #0 [ <required> swoole_process $process ] + Parameter #0 [ <required> Swoole\Process $process ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method stats ] { - Parameters [0] { } + - Return [ array|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getSocket ] { - Parameters [1] { - Parameter #0 [ <optional> $port = <default> ] + Parameter #0 [ <optional> int $port = -1 ] } + - Return [ mixed ] } Method [ <internal:openswoole, inherits Swoole\Server> public method bind ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $uid ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <required> int $uid ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Timer> public method after ] { - Parameters [2] { - Parameter #0 [ <required> $ms ] + Parameter #0 [ <required> int $ms ] Parameter #1 [ <required> callable $callback ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Timer> public method tick ] { - Parameters [2] { - Parameter #0 [ <required> $ms ] + Parameter #0 [ <required> int $ms ] Parameter #1 [ <required> callable $callback ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Timer> public method clearTimer ] { - - Parameters [1] { - Parameter #0 [ <required> $timer_id ] + - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Event> public method defer ] { @@ -7666,6 +8220,7 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> callable $callback ] } + - Return [ bool ] } } } @@ -7692,7 +8247,7 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { } - Methods [7] { - Method [ <internal:openswoole, ctor> public method __construct ] { + Method [ <internal, deprecated:openswoole, ctor> public method __construct ] { - Parameters [4] { Parameter #0 [ <required> $host ] @@ -7702,20 +8257,20 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { } } - Method [ <internal:openswoole> public method __destruct ] { + Method [ <internal, deprecated:openswoole> public method __destruct ] { - Parameters [0] { } } - Method [ <internal:openswoole> public method set ] { + Method [ <internal, deprecated:openswoole> public method set ] { - Parameters [1] { Parameter #0 [ <required> array $settings ] } } - Method [ <internal:openswoole> public method handle ] { + Method [ <internal, deprecated:openswoole> public method handle ] { - Parameters [2] { Parameter #0 [ <required> $pattern ] @@ -7723,19 +8278,19 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { } } - Method [ <internal:openswoole> private method onAccept ] { + Method [ <internal, deprecated:openswoole> private method onAccept ] { - Parameters [0] { } } - Method [ <internal:openswoole> public method start ] { + Method [ <internal, deprecated:openswoole> public method start ] { - Parameters [0] { } } - Method [ <internal:openswoole> public method shutdown ] { + Method [ <internal, deprecated:openswoole> public method shutdown ] { - Parameters [0] { } @@ -7755,17 +8310,19 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> static public method pack ] { - Parameters [3] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $opcode = <default> ] - Parameter #2 [ <optional> $flags = <default> ] + Parameter #0 [ <required> Swoole\WebSocket\Frame|string $data ] + Parameter #1 [ <optional> int $opcode = SWOOLE_WEBSOCKET_OPCODE_TEXT ] + Parameter #2 [ <optional> int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] } + - Return [ string ] } Method [ <internal:openswoole> static public method unpack ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> string $data ] } + - Return [ Swoole\WebSocket\Frame|false ] } } @@ -7789,36 +8346,39 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> public method push ] { - Parameters [4] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $data ] - Parameter #2 [ <optional> $opcode = <default> ] - Parameter #3 [ <optional> $flags = <default> ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <required> Swoole\WebSocket\Frame|string $data ] + Parameter #2 [ <optional> int $opcode = SWOOLE_WEBSOCKET_OPCODE_TEXT ] + Parameter #3 [ <optional> int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] } + - Return [ bool ] } Method [ <internal:openswoole> public method disconnect ] { - Parameters [3] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $code = <default> ] - Parameter #2 [ <optional> $reason = <default> ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> int $code = SWOOLE_WEBSOCKET_CLOSE_NORMAL ] + Parameter #2 [ <optional> string $reason = "" ] } + - Return [ bool ] } Method [ <internal:openswoole> public method isEstablished ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server, ctor> public method __construct ] { - Parameters [4] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <optional> $port = <default> ] - Parameter #2 [ <optional> $mode = <default> ] - Parameter #3 [ <optional> $sock_type = <default> ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <optional> int $port = 0 ] + Parameter #2 [ <optional> int $mode = SWOOLE_PROCESS ] + Parameter #3 [ <optional> int $sockType = SWOOLE_SOCK_TCP ] } } @@ -7831,34 +8391,38 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, inherits Swoole\Server> public method listen ] { - Parameters [3] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $sock_type ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> int $sockType ] } + - Return [ Swoole\Server\Port|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method addlistener ] { - Parameters [3] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $sock_type ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> int $sockType ] } + - Return [ Swoole\Server\Port|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method on ] { - Parameters [2] { - Parameter #0 [ <required> $event_name ] + Parameter #0 [ <required> string $event ] Parameter #1 [ <required> callable $callback ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getCallback ] { - Parameters [1] { - Parameter #0 [ <required> $event_name ] + Parameter #0 [ <required> string $event ] } + - Return [ mixed ] } Method [ <internal:openswoole, inherits Swoole\Server> public method set ] { @@ -7866,295 +8430,338 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> array $settings ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method start ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method send ] { - Parameters [3] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $send_data ] - Parameter #2 [ <optional> $server_socket = <default> ] + Parameter #0 [ <required> string|int $fd ] + Parameter #1 [ <required> mixed $data ] + Parameter #2 [ <optional> int $serverSocket = -1 ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method sendto ] { - Parameters [4] { - Parameter #0 [ <required> $ip ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $send_data ] - Parameter #3 [ <optional> $server_socket = <default> ] + Parameter #0 [ <required> string $ip ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> string $data ] + Parameter #3 [ <optional> int $serverSocket = -1 ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method sendwait ] { - Parameters [2] { - Parameter #0 [ <required> $conn_fd ] - Parameter #1 [ <required> $send_data ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <required> string $data ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method exists ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method exist ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method protect ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $is_protected = <default> ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> bool $isProtected = true ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method sendfile ] { - Parameters [4] { - Parameter #0 [ <required> $conn_fd ] - Parameter #1 [ <required> $filename ] - Parameter #2 [ <optional> $offset = <default> ] - Parameter #3 [ <optional> $length = <default> ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <required> string $fileName ] + Parameter #2 [ <optional> int $offset = 0 ] + Parameter #3 [ <optional> int $length = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method close ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $reset = <default> ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> bool $reset = false ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method confirm ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method pause ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method resume ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method task ] { - Parameters [3] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $worker_id = <default> ] - Parameter #2 [ <optional> ?callable $finish_callback = <default> ] + Parameter #0 [ <required> mixed $data ] + Parameter #1 [ <optional> int $workerId = -1 ] + Parameter #2 [ <optional> ?callable $finishCallback = null ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method taskwait ] { - Parameters [3] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $timeout = <default> ] - Parameter #2 [ <optional> $worker_id = <default> ] + Parameter #0 [ <required> mixed $data ] + Parameter #1 [ <optional> float $timeout = 0.5 ] + Parameter #2 [ <optional> int $workerId = -1 ] } + - Return [ string|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method taskWaitMulti ] { - Parameters [2] { Parameter #0 [ <required> array $tasks ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #1 [ <optional> float $timeout = 0.5 ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method taskCo ] { - Parameters [2] { Parameter #0 [ <required> array $tasks ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #1 [ <optional> float $timeout = 0.5 ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method finish ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> mixed $data ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method reload ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method shutdown ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method stop ] { - - Parameters [1] { - Parameter #0 [ <optional> $worker_id = <default> ] + - Parameters [2] { + Parameter #0 [ <required> int $workerId ] + Parameter #1 [ <optional> bool $waitEvent = false ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getLastError ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole, inherits Swoole\Server> public method heartbeat ] { - Parameters [1] { - Parameter #0 [ <required> $reactor_id ] + Parameter #0 [ <optional> bool $closeConn = false ] } + - Return [ array|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getClientInfo ] { - - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $reactor_id = <default> ] + - Parameters [3] { + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> int $reactorId = -1 ] + Parameter #2 [ <optional> bool $noCheckConn = false ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getClientList ] { - Parameters [2] { - Parameter #0 [ <required> $start_fd ] - Parameter #1 [ <optional> $find_count = <default> ] + Parameter #0 [ <optional> int $startFd = 0 ] + Parameter #1 [ <optional> int $pageSize = 10 ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getWorkerId ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getWorkerPid ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> int $workerId = -1 ] } + - Return [ int|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getWorkerStatus ] { - Parameters [1] { - Parameter #0 [ <optional> $worker_id = <default> ] + Parameter #0 [ <optional> int $workerId = -1 ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getManagerPid ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getMasterPid ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole, inherits Swoole\Server> public method connection_info ] { - - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $reactor_id = <default> ] + - Parameters [3] { + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> int $reactorId = -1 ] + Parameter #2 [ <optional> bool $noCheckConn = false ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method connection_list ] { - Parameters [2] { - Parameter #0 [ <required> $start_fd ] - Parameter #1 [ <optional> $find_count = <default> ] + Parameter #0 [ <optional> int $startFd = 0 ] + Parameter #1 [ <optional> int $pageSize = 10 ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method sendMessage ] { - Parameters [2] { - Parameter #0 [ <required> $message ] - Parameter #1 [ <required> $dst_worker_id ] + Parameter #0 [ <required> mixed $message ] + Parameter #1 [ <required> int $workerId ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method addProcess ] { - Parameters [1] { - Parameter #0 [ <required> swoole_process $process ] + Parameter #0 [ <required> Swoole\Process $process ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method stats ] { - Parameters [0] { } + - Return [ array|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getSocket ] { - Parameters [1] { - Parameter #0 [ <optional> $port = <default> ] + Parameter #0 [ <optional> int $port = -1 ] } + - Return [ mixed ] } Method [ <internal:openswoole, inherits Swoole\Server> public method bind ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $uid ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <required> int $uid ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Timer> public method after ] { - Parameters [2] { - Parameter #0 [ <required> $ms ] + Parameter #0 [ <required> int $ms ] Parameter #1 [ <required> callable $callback ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Timer> public method tick ] { - Parameters [2] { - Parameter #0 [ <required> $ms ] + Parameter #0 [ <required> int $ms ] Parameter #1 [ <required> callable $callback ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Timer> public method clearTimer ] { - - Parameters [1] { - Parameter #0 [ <required> $timer_id ] + - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Event> public method defer ] { @@ -8162,6 +8769,7 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> callable $callback ] } + - Return [ bool ] } } } @@ -8178,17 +8786,19 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> static public method pack ] { - Parameters [3] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $opcode = <default> ] - Parameter #2 [ <optional> $flags = <default> ] + Parameter #0 [ <required> Swoole\WebSocket\Frame|string $data ] + Parameter #1 [ <optional> int $opcode = SWOOLE_WEBSOCKET_OPCODE_TEXT ] + Parameter #2 [ <optional> int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] } + - Return [ string ] } Method [ <internal:openswoole> static public method unpack ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> string $data ] } + - Return [ Swoole\WebSocket\Frame|false ] } } @@ -8205,6 +8815,7 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [0] { } + - Return [ string ] } } } @@ -8221,17 +8832,19 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, inherits Swoole\WebSocket\Frame> static public method pack ] { - Parameters [3] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $opcode = <default> ] - Parameter #2 [ <optional> $flags = <default> ] + Parameter #0 [ <required> Swoole\WebSocket\Frame|string $data ] + Parameter #1 [ <optional> int $opcode = SWOOLE_WEBSOCKET_OPCODE_TEXT ] + Parameter #2 [ <optional> int $flags = SWOOLE_WEBSOCKET_FLAG_FIN ] } + - Return [ string ] } Method [ <internal:openswoole, inherits Swoole\WebSocket\Frame> static public method unpack ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> string $data ] } + - Return [ Swoole\WebSocket\Frame|false ] } } @@ -8250,6 +8863,7 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [0] { } + - Return [ string ] } } } @@ -8273,9 +8887,10 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> static public method format ] { - Parameters [2] { - Parameter #0 [ <required> $type ] - Parameter #1 [ <optional> $value = <default> ] + Parameter #0 [ <required> int $type ] + Parameter #1 [ <optional> mixed $value = null ] } + - Return [ string|false ] } } @@ -8299,25 +8914,27 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole> public method setHandler ] { - Parameters [2] { - Parameter #0 [ <required> $command ] + Parameter #0 [ <required> string $command ] Parameter #1 [ <required> callable $callback ] } + - Return [ void ] } Method [ <internal:openswoole> public method getHandler ] { - Parameters [1] { - Parameter #0 [ <required> $command ] + Parameter #0 [ <required> string $command ] } + - Return [ callable|false ] } Method [ <internal:openswoole, inherits Swoole\Server, ctor> public method __construct ] { - Parameters [4] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <optional> $port = <default> ] - Parameter #2 [ <optional> $mode = <default> ] - Parameter #3 [ <optional> $sock_type = <default> ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <optional> int $port = 0 ] + Parameter #2 [ <optional> int $mode = SWOOLE_PROCESS ] + Parameter #3 [ <optional> int $sockType = SWOOLE_SOCK_TCP ] } } @@ -8330,34 +8947,38 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { Method [ <internal:openswoole, inherits Swoole\Server> public method listen ] { - Parameters [3] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $sock_type ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> int $sockType ] } + - Return [ Swoole\Server\Port|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method addlistener ] { - Parameters [3] { - Parameter #0 [ <required> $host ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $sock_type ] + Parameter #0 [ <required> string $host ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> int $sockType ] } + - Return [ Swoole\Server\Port|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method on ] { - Parameters [2] { - Parameter #0 [ <required> $event_name ] + Parameter #0 [ <required> string $event ] Parameter #1 [ <required> callable $callback ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getCallback ] { - Parameters [1] { - Parameter #0 [ <required> $event_name ] + Parameter #0 [ <required> string $event ] } + - Return [ mixed ] } Method [ <internal:openswoole, inherits Swoole\Server> public method set ] { @@ -8365,295 +8986,338 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> array $settings ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method start ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method send ] { - Parameters [3] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $send_data ] - Parameter #2 [ <optional> $server_socket = <default> ] + Parameter #0 [ <required> string|int $fd ] + Parameter #1 [ <required> mixed $data ] + Parameter #2 [ <optional> int $serverSocket = -1 ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method sendto ] { - Parameters [4] { - Parameter #0 [ <required> $ip ] - Parameter #1 [ <required> $port ] - Parameter #2 [ <required> $send_data ] - Parameter #3 [ <optional> $server_socket = <default> ] + Parameter #0 [ <required> string $ip ] + Parameter #1 [ <required> int $port ] + Parameter #2 [ <required> string $data ] + Parameter #3 [ <optional> int $serverSocket = -1 ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method sendwait ] { - Parameters [2] { - Parameter #0 [ <required> $conn_fd ] - Parameter #1 [ <required> $send_data ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <required> string $data ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method exists ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method exist ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method protect ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $is_protected = <default> ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> bool $isProtected = true ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method sendfile ] { - Parameters [4] { - Parameter #0 [ <required> $conn_fd ] - Parameter #1 [ <required> $filename ] - Parameter #2 [ <optional> $offset = <default> ] - Parameter #3 [ <optional> $length = <default> ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <required> string $fileName ] + Parameter #2 [ <optional> int $offset = 0 ] + Parameter #3 [ <optional> int $length = 0 ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method close ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $reset = <default> ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> bool $reset = false ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method confirm ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method pause ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method resume ] { - Parameters [1] { - Parameter #0 [ <required> $fd ] + Parameter #0 [ <required> int $fd ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method task ] { - Parameters [3] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $worker_id = <default> ] - Parameter #2 [ <optional> ?callable $finish_callback = <default> ] + Parameter #0 [ <required> mixed $data ] + Parameter #1 [ <optional> int $workerId = -1 ] + Parameter #2 [ <optional> ?callable $finishCallback = null ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method taskwait ] { - Parameters [3] { - Parameter #0 [ <required> $data ] - Parameter #1 [ <optional> $timeout = <default> ] - Parameter #2 [ <optional> $worker_id = <default> ] + Parameter #0 [ <required> mixed $data ] + Parameter #1 [ <optional> float $timeout = 0.5 ] + Parameter #2 [ <optional> int $workerId = -1 ] } + - Return [ string|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method taskWaitMulti ] { - Parameters [2] { Parameter #0 [ <required> array $tasks ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #1 [ <optional> float $timeout = 0.5 ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method taskCo ] { - Parameters [2] { Parameter #0 [ <required> array $tasks ] - Parameter #1 [ <optional> $timeout = <default> ] + Parameter #1 [ <optional> float $timeout = 0.5 ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method finish ] { - Parameters [1] { - Parameter #0 [ <required> $data ] + Parameter #0 [ <required> mixed $data ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method reload ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method shutdown ] { - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method stop ] { - - Parameters [1] { - Parameter #0 [ <optional> $worker_id = <default> ] + - Parameters [2] { + Parameter #0 [ <required> int $workerId ] + Parameter #1 [ <optional> bool $waitEvent = false ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getLastError ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole, inherits Swoole\Server> public method heartbeat ] { - Parameters [1] { - Parameter #0 [ <required> $reactor_id ] + Parameter #0 [ <optional> bool $closeConn = false ] } + - Return [ array|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getClientInfo ] { - - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $reactor_id = <default> ] + - Parameters [3] { + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> int $reactorId = -1 ] + Parameter #2 [ <optional> bool $noCheckConn = false ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getClientList ] { - Parameters [2] { - Parameter #0 [ <required> $start_fd ] - Parameter #1 [ <optional> $find_count = <default> ] + Parameter #0 [ <optional> int $startFd = 0 ] + Parameter #1 [ <optional> int $pageSize = 10 ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getWorkerId ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getWorkerPid ] { - - Parameters [0] { + - Parameters [1] { + Parameter #0 [ <optional> int $workerId = -1 ] } + - Return [ int|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getWorkerStatus ] { - Parameters [1] { - Parameter #0 [ <optional> $worker_id = <default> ] + Parameter #0 [ <optional> int $workerId = -1 ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getManagerPid ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getMasterPid ] { - Parameters [0] { } + - Return [ int ] } Method [ <internal:openswoole, inherits Swoole\Server> public method connection_info ] { - - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <optional> $reactor_id = <default> ] + - Parameters [3] { + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <optional> int $reactorId = -1 ] + Parameter #2 [ <optional> bool $noCheckConn = false ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method connection_list ] { - Parameters [2] { - Parameter #0 [ <required> $start_fd ] - Parameter #1 [ <optional> $find_count = <default> ] + Parameter #0 [ <optional> int $startFd = 0 ] + Parameter #1 [ <optional> int $pageSize = 10 ] } + - Return [ array|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method sendMessage ] { - Parameters [2] { - Parameter #0 [ <required> $message ] - Parameter #1 [ <required> $dst_worker_id ] + Parameter #0 [ <required> mixed $message ] + Parameter #1 [ <required> int $workerId ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method addProcess ] { - Parameters [1] { - Parameter #0 [ <required> swoole_process $process ] + Parameter #0 [ <required> Swoole\Process $process ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Server> public method stats ] { - Parameters [0] { } + - Return [ array|false ] } Method [ <internal:openswoole, inherits Swoole\Server> public method getSocket ] { - Parameters [1] { - Parameter #0 [ <optional> $port = <default> ] + Parameter #0 [ <optional> int $port = -1 ] } + - Return [ mixed ] } Method [ <internal:openswoole, inherits Swoole\Server> public method bind ] { - Parameters [2] { - Parameter #0 [ <required> $fd ] - Parameter #1 [ <required> $uid ] + Parameter #0 [ <required> int $fd ] + Parameter #1 [ <required> int $uid ] } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Timer> public method after ] { - Parameters [2] { - Parameter #0 [ <required> $ms ] + Parameter #0 [ <required> int $ms ] Parameter #1 [ <required> callable $callback ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Timer> public method tick ] { - Parameters [2] { - Parameter #0 [ <required> $ms ] + Parameter #0 [ <required> int $ms ] Parameter #1 [ <required> callable $callback ] } + - Return [ int|bool ] } Method [ <internal:openswoole, inherits Swoole\Timer> public method clearTimer ] { - - Parameters [1] { - Parameter #0 [ <required> $timer_id ] + - Parameters [0] { } + - Return [ bool ] } Method [ <internal:openswoole, inherits Swoole\Event> public method defer ] { @@ -8661,6 +9325,165 @@ Extension [ <persistent> extension #88 openswoole version 4.7.2 ] { - Parameters [1] { Parameter #0 [ <required> callable $callback ] } + - Return [ bool ] + } + } + } + + Class [ <internal:openswoole> class Swoole\Coroutine\PostgreSQL ] { + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [5] { + Property [ public $error = NULL ] + Property [ public $errCode = 0 ] + Property [ public $resultStatus = 0 ] + Property [ public $resultDiag = NULL ] + Property [ public $notices = NULL ] + } + + - Methods [18] { + Method [ <internal:openswoole, ctor> public method __construct ] { + + - Parameters [0] { + } + } + + Method [ <internal:openswoole> public method connect ] { + + - Parameters [1] { + Parameter #0 [ <required> $conninfo ] + } + } + + Method [ <internal:openswoole> public method query ] { + + - Parameters [1] { + Parameter #0 [ <optional> $query = <default> ] + } + } + + Method [ <internal:openswoole> public method prepare ] { + + - Parameters [2] { + Parameter #0 [ <required> $stmtname ] + Parameter #1 [ <required> $query ] + } + } + + Method [ <internal:openswoole> public method execute ] { + + - Parameters [2] { + Parameter #0 [ <required> $stmtname ] + Parameter #1 [ <required> $pv_param_arr ] + } + } + + Method [ <internal:openswoole> public method fetchAll ] { + + - Parameters [2] { + Parameter #0 [ <optional> $result = <default> ] + Parameter #1 [ <optional> $result_type = <default> ] + } + } + + Method [ <internal:openswoole> public method affectedRows ] { + + - Parameters [1] { + Parameter #0 [ <optional> $result = <default> ] + } + } + + Method [ <internal:openswoole> public method numRows ] { + + - Parameters [1] { + Parameter #0 [ <optional> $result = <default> ] + } + } + + Method [ <internal:openswoole> public method fieldCount ] { + + - Parameters [1] { + Parameter #0 [ <optional> $result = <default> ] + } + } + + Method [ <internal:openswoole> public method metaData ] { + + - Parameters [1] { + Parameter #0 [ <required> $table_name ] + } + } + + Method [ <internal:openswoole> public method escape ] { + + - Parameters [1] { + Parameter #0 [ <required> $string ] + } + } + + Method [ <internal:openswoole> public method escapeLiteral ] { + + - Parameters [1] { + Parameter #0 [ <required> $string ] + } + } + + Method [ <internal:openswoole> public method escapeIdentifier ] { + + - Parameters [1] { + Parameter #0 [ <required> $string ] + } + } + + Method [ <internal:openswoole> public method fetchObject ] { + + - Parameters [5] { + Parameter #0 [ <required> $result ] + Parameter #1 [ <optional> $row = <default> ] + Parameter #2 [ <optional> $class_name = <default> ] + Parameter #3 [ <optional> $l = <default> ] + Parameter #4 [ <optional> $ctor_params = <default> ] + } + } + + Method [ <internal:openswoole> public method fetchAssoc ] { + + - Parameters [2] { + Parameter #0 [ <required> $result ] + Parameter #1 [ <optional> $row = <default> ] + } + } + + Method [ <internal:openswoole> public method fetchArray ] { + + - Parameters [3] { + Parameter #0 [ <required> $result ] + Parameter #1 [ <optional> $row = <default> ] + Parameter #2 [ <optional> $result_type = <default> ] + } + } + + Method [ <internal:openswoole> public method fetchRow ] { + + - Parameters [3] { + Parameter #0 [ <required> $result ] + Parameter #1 [ <optional> $row = <default> ] + Parameter #2 [ <optional> $result_type = <default> ] + } + } + + Method [ <internal:openswoole> public method __destruct ] { + + - Parameters [0] { + } } } } diff --git a/openswoole-pg9.patch b/openswoole-pg9.patch new file mode 100644 index 0000000..e0e402b --- /dev/null +++ b/openswoole-pg9.patch @@ -0,0 +1,36 @@ +From 21d86e3d6d62b70ffc9ecc22e651f15162c462f3 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Mon, 29 Nov 2021 07:29:22 +0100 +Subject: [PATCH] fix build with postgresql 9 + +--- + ext-src/swoole_postgres_coro.cc | 16 ++++++++++++++++ + 1 file changed, 16 insertions(+) + +diff --git a/ext-src/swoole_postgres_coro.cc b/ext-src/swoole_postgres_coro.cc +index 06362e6f0..11e467225 100644 +--- a/ext-src/swoole_postgres_coro.cc ++++ b/ext-src/swoole_postgres_coro.cc +@@ -539,6 +539,22 @@ static int meta_data_result_parse(PGObject *object) { + return SW_OK; + } + ++#ifndef PG_DIAG_SCHEMA_NAME ++# define PG_DIAG_SCHEMA_NAME 's' ++#endif ++#ifndef PG_DIAG_TABLE_NAME ++# define PG_DIAG_TABLE_NAME 't' ++#endif ++#ifndef PG_DIAG_COLUMN_NAME ++# define PG_DIAG_COLUMN_NAME 'c' ++#endif ++#ifndef PG_DIAG_DATATYPE_NAME ++# define PG_DIAG_DATATYPE_NAME 'd' ++#endif ++#ifndef PG_DIAG_CONSTRAINT_NAME ++# define PG_DIAG_CONSTRAINT_NAME 'n' ++#endif ++ + static void set_error_diag(const PGObject *object, const PGresult *pgsql_result) { + const unsigned int error_codes[] = {PG_DIAG_SEVERITY, + PG_DIAG_SQLSTATE, diff --git a/php-pecl-openswoole.spec b/php-pecl-openswoole.spec index 27e51a8..b6ef144 100644 --- a/php-pecl-openswoole.spec +++ b/php-pecl-openswoole.spec @@ -26,8 +26,9 @@ %else %bcond_with brotli %endif +%bcond_without pgsql -%global upstream_version 4.7.2 +%global upstream_version 4.8.0 #global upstream_prever RC2 @@ -41,6 +42,8 @@ License: ASL 2.0 and BSD URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz +Patch0: %{pecl_name}-pg9.patch + BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?dtsprefix}gcc-c++ @@ -60,6 +63,13 @@ BuildRequires: c-ares-devel %if %{with brotli} BuildRequires: brotli-devel %endif +%if %{with pgsql} +%if 0%{?fedora} >= 29 && 0%{?rhel} >= 8 +BuildRequires: libpq-devel > 9 +%else +BuildRequires: postgresql-devel > 9 +%endif +%endif Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} @@ -146,6 +156,8 @@ sed \ cd NTS +%patch0 -p1 + cp -p thirdparty/hiredis/COPYING hiredis-COPYING cp -p thirdparty/nghttp2/COPYING nghttp2-COPYING @@ -188,6 +200,9 @@ peclbuild() { --enable-openssl \ --enable-http2 \ --enable-mysqlnd \ +%if %{with pgsql} + --with-postgres \ +%endif --enable-swoole-json \ --enable-swoole-curl \ %if %{with cares} @@ -315,6 +330,12 @@ cd ../ZTS %changelog +* Mon Nov 29 2021 Remi Collet <remi@remirepo.net> - 4.8.0-1 +- update to 4.8.0 +- enable postgresql support +- add fix for old postgresql 9 in EL-7 from + https://github.com/openswoole/swoole-src/pull/84 + * Mon Oct 25 2021 Remi Collet <remi@remirepo.net> - 4.7.2-1 - update to 4.7.2 - open https://github.com/openswoole/swoole-src/pull/17 |