summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--REFLECTION768
-rw-r--r--php-pecl-swoole2.spec19
2 files changed, 754 insertions, 33 deletions
diff --git a/REFLECTION b/REFLECTION
index 0eca469..232860d 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
+Extension [ <persistent> extension #145 swoole version 2.1.0 ] {
- INI {
Entry [ swoole.aio_thread_num <ALL> ]
@@ -10,6 +10,9 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
Entry [ swoole.use_namespace <SYSTEM> ]
Current = 'On'
}
+ Entry [ swoole.use_shortname <SYSTEM> ]
+ Current = 'On'
+ }
Entry [ swoole.fast_serialize <ALL> ]
Current = 'Off'
}
@@ -18,7 +21,7 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
}
- - Constants [70] {
+ - Constants [119] {
Constant [ integer SWOOLE_BASE ] { 4 }
Constant [ integer SWOOLE_THREAD ] { 2 }
Constant [ integer SWOOLE_PROCESS ] { 3 }
@@ -63,7 +66,56 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
Constant [ integer SWOOLE_DTLSv1_CLIENT_METHOD ] { 17 }
Constant [ integer SWOOLE_EVENT_READ ] { 512 }
Constant [ integer SWOOLE_EVENT_WRITE ] { 1024 }
- Constant [ string SWOOLE_VERSION ] { 2.0.12 }
+ Constant [ string SWOOLE_VERSION ] { 2.1.0 }
+ Constant [ integer SWOOLE_ERROR_MALLOC_FAIL ] { 501 }
+ Constant [ integer SWOOLE_ERROR_SYSTEM_CALL_FAIL ] { 502 }
+ Constant [ integer SWOOLE_ERROR_PHP_FATAL_ERROR ] { 503 }
+ Constant [ integer SWOOLE_ERROR_NAME_TOO_LONG ] { 504 }
+ Constant [ integer SWOOLE_ERROR_INVALID_PARAMS ] { 505 }
+ Constant [ integer SWOOLE_ERROR_FILE_NOT_EXIST ] { 700 }
+ Constant [ integer SWOOLE_ERROR_FILE_TOO_LARGE ] { 701 }
+ Constant [ integer SWOOLE_ERROR_FILE_EMPTY ] { 702 }
+ Constant [ integer SWOOLE_ERROR_DNSLOOKUP_DUPLICATE_REQUEST ] { 703 }
+ Constant [ integer SWOOLE_ERROR_DNSLOOKUP_RESOLVE_FAILED ] { 704 }
+ Constant [ integer SWOOLE_ERROR_SESSION_CLOSED_BY_SERVER ] { 1001 }
+ Constant [ integer SWOOLE_ERROR_SESSION_CLOSED_BY_CLIENT ] { 1002 }
+ Constant [ integer SWOOLE_ERROR_SESSION_CLOSING ] { 1003 }
+ Constant [ integer SWOOLE_ERROR_SESSION_CLOSED ] { 1004 }
+ Constant [ integer SWOOLE_ERROR_SESSION_NOT_EXIST ] { 1005 }
+ Constant [ integer SWOOLE_ERROR_SESSION_INVALID_ID ] { 1006 }
+ Constant [ integer SWOOLE_ERROR_SESSION_DISCARD_TIMEOUT_DATA ] { 1007 }
+ Constant [ integer SWOOLE_ERROR_OUTPUT_BUFFER_OVERFLOW ] { 1008 }
+ Constant [ integer SWOOLE_ERROR_SSL_NOT_READY ] { 1009 }
+ Constant [ integer SWOOLE_ERROR_SSL_CANNOT_USE_SENFILE ] { 1010 }
+ Constant [ integer SWOOLE_ERROR_SSL_EMPTY_PEER_CERTIFICATE ] { 1011 }
+ Constant [ integer SWOOLE_ERROR_SSL_VEFIRY_FAILED ] { 1012 }
+ Constant [ integer SWOOLE_ERROR_SSL_BAD_CLIENT ] { 1013 }
+ Constant [ integer SWOOLE_ERROR_SSL_BAD_PROTOCOL ] { 1014 }
+ Constant [ integer SWOOLE_ERROR_PACKAGE_LENGTH_TOO_LARGE ] { 1201 }
+ Constant [ integer SWOOLE_ERROR_DATA_LENGTH_TOO_LARGE ] { 1202 }
+ Constant [ integer SWOOLE_ERROR_TASK_PACKAGE_TOO_BIG ] { 2001 }
+ Constant [ integer SWOOLE_ERROR_TASK_DISPATCH_FAIL ] { 2002 }
+ Constant [ integer SWOOLE_ERROR_HTTP2_STREAM_ID_TOO_BIG ] { 3001 }
+ Constant [ integer SWOOLE_ERROR_HTTP2_STREAM_NO_HEADER ] { 3002 }
+ Constant [ integer SWOOLE_ERROR_SOCKS5_UNSUPPORT_VERSION ] { 7001 }
+ Constant [ integer SWOOLE_ERROR_SOCKS5_UNSUPPORT_METHOD ] { 7002 }
+ Constant [ integer SWOOLE_ERROR_SOCKS5_AUTH_FAILED ] { 7003 }
+ Constant [ integer SWOOLE_ERROR_SOCKS5_SERVER_ERROR ] { 7004 }
+ Constant [ integer SWOOLE_ERROR_HTTP_PROXY_HANDSHAKE_ERROR ] { 8001 }
+ Constant [ integer SWOOLE_ERROR_HTTP_INVALID_PROTOCOL ] { 8002 }
+ Constant [ integer SWOOLE_ERROR_WEBSOCKET_BAD_CLIENT ] { 8501 }
+ Constant [ integer SWOOLE_ERROR_WEBSOCKET_BAD_OPCODE ] { 8502 }
+ Constant [ integer SWOOLE_ERROR_WEBSOCKET_UNCONNECTED ] { 8503 }
+ Constant [ integer SWOOLE_ERROR_WEBSOCKET_HANDSHAKE_FAILED ] { 8504 }
+ Constant [ integer SWOOLE_ERROR_SERVER_MUST_CREATED_BEFORE_CLIENT ] { 9001 }
+ Constant [ integer SWOOLE_ERROR_SERVER_TOO_MANY_SOCKET ] { 9002 }
+ Constant [ integer SWOOLE_ERROR_SERVER_WORKER_TERMINATED ] { 9003 }
+ Constant [ integer SWOOLE_ERROR_SERVER_INVALID_LISTEN_PORT ] { 9004 }
+ Constant [ integer SWOOLE_ERROR_SERVER_TOO_MANY_LISTEN_PORT ] { 9005 }
+ Constant [ integer SWOOLE_ERROR_SERVER_PIPE_BUFFER_FULL ] { 9006 }
+ Constant [ integer SWOOLE_ERROR_SERVER_NO_IDLE_WORKER ] { 9007 }
+ Constant [ integer SWOOLE_ERROR_SERVER_ONLY_START_ONE ] { 9008 }
+ Constant [ integer SWOOLE_ERROR_SERVER_WORKER_EXIT_TIMEOUT ] { 9009 }
Constant [ integer SWOOLE_REDIS_MODE_MULTI ] { 0 }
Constant [ integer SWOOLE_REDIS_MODE_PIPELINE ] { 1 }
Constant [ integer SWOOLE_REDIS_TYPE_NOT_FOUND ] { 0 }
@@ -240,6 +292,18 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
Parameter #0 [ <required> $domain_name ]
}
}
+ Function [ <internal:swoole> function swoole_coroutine_create ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $func ]
+ }
+ }
+ Function [ <internal:swoole> function go ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $func ]
+ }
+ }
Function [ <internal:swoole> function swoole_client_select ] {
- Parameters [4] {
@@ -276,8 +340,9 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
Function [ <internal:swoole> function swoole_strerror ] {
- - Parameters [1] {
+ - Parameters [2] {
Parameter #0 [ <required> $errno ]
+ Parameter #1 [ <optional> $error_type ]
}
}
Function [ <internal:swoole> function swoole_errno ] {
@@ -285,9 +350,16 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
- Parameters [0] {
}
}
+ Function [ <internal:swoole> function swoole_hashcode ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $data ]
+ Parameter #1 [ <optional> $type ]
+ }
+ }
}
- - Classes [36] {
+ - Classes [41] {
Class [ <internal:swoole> class Swoole\Server ] {
- Constants [0] {
@@ -873,7 +945,7 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
- Properties [0] {
}
- - Methods [10] {
+ - Methods [11] {
Method [ <internal:swoole, prototype Iterator> public method rewind ] {
- Parameters [0] {
@@ -910,6 +982,12 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
}
+ Method [ <internal:swoole, dtor> public method __destruct ] {
+
+ - Parameters [0] {
+ }
+ }
+
Method [ <internal:swoole, prototype ArrayAccess> public method offsetExists ] {
- Parameters [1] {
@@ -1072,11 +1150,14 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
Class [ <internal:swoole> class Swoole\Client ] {
- - Constants [4] {
+ - Constants [7] {
Constant [ public integer MSG_OOB ] { 1 }
Constant [ public integer MSG_PEEK ] { 2 }
Constant [ public integer MSG_DONTWAIT ] { 64 }
Constant [ public integer MSG_WAITALL ] { 256 }
+ Constant [ public integer SHUT_RDWR ] { 2 }
+ Constant [ public integer SHUT_RD ] { 0 }
+ Constant [ public integer SHUT_WR ] { 1 }
}
- Static properties [0] {
@@ -1102,7 +1183,7 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
Property [ <default> public $onSSLReady ]
}
- - Methods [22] {
+ - Methods [23] {
Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [2] {
@@ -1199,6 +1280,13 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
}
+ Method [ <internal:swoole> public method shutdown ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $how ]
+ }
+ }
+
Method [ <internal:swoole> public method enableSSL ] {
- Parameters [1] {
@@ -1421,12 +1509,25 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
- Methods [153] {
Method [ <internal:swoole, ctor> public method __construct ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> $config ]
+ }
}
Method [ <internal:swoole, dtor> public method __destruct ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method connect ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $host ]
+ Parameter #1 [ <required> $port ]
+ Parameter #2 [ <optional> $serialize ]
+ }
}
Method [ <internal:swoole> public method setDefer ] {
@@ -1457,6 +1558,10 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
Method [ <internal:swoole> public method get ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method mGet ] {
@@ -1493,21 +1598,41 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
Method [ <internal:swoole> public method exists ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method type ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method strLen ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method lPop ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method blPop ] {
}
Method [ <internal:swoole> public method rPop ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method brPop ] {
@@ -1532,21 +1657,42 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
Method [ <internal:swoole> public method sMembers ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method sGetMembers ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method sRandMember ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <optional> $integer ]
+ }
}
Method [ <internal:swoole> public method persist ] {
}
Method [ <internal:swoole> public method ttl ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method pttl ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method zCard ] {
@@ -1568,12 +1714,20 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
Method [ <internal:swoole> public method debug ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method restore ] {
}
Method [ <internal:swoole> public method dump ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method renameKey ] {
@@ -1589,60 +1743,113 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
Method [ <internal:swoole> public method randomKey ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method ping ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method auth ] {
}
Method [ <internal:swoole> public method unwatch ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method watch ] {
}
Method [ <internal:swoole> public method save ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method bgSave ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method lastSave ] {
}
Method [ <internal:swoole> public method flushDB ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method flushAll ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method dbSize ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method bgrewriteaof ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method time ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method role ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method setRange ] {
}
Method [ <internal:swoole> public method setNx ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method getSet ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method append ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method lPushx ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method lPush ] {
@@ -1652,21 +1859,51 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
Method [ <internal:swoole> public method rPushx ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method sContains ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method sismember ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method zScore ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method zRank ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method zRevRank ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method hGet ] {
@@ -1682,6 +1919,12 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
Method [ <internal:swoole> public method zIncrBy ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ Parameter #2 [ <required> $member ]
+ }
}
Method [ <internal:swoole> public method zAdd ] {
@@ -1697,6 +1940,13 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
Method [ <internal:swoole> public method zRange ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $start ]
+ Parameter #2 [ <required> $end ]
+ Parameter #3 [ <optional> $withscores ]
+ }
}
Method [ <internal:swoole> public method zRevRange ] {
@@ -1727,48 +1977,106 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
Method [ <internal:swoole> public method incrBy ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $integer ]
+ }
}
Method [ <internal:swoole> public method hIncrBy ] {
}
Method [ <internal:swoole> public method incr ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method decrBy ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $integer ]
+ }
}
Method [ <internal:swoole> public method decr ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method getBit ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $integer ]
+ }
}
Method [ <internal:swoole> public method lInsert ] {
}
Method [ <internal:swoole> public method lGet ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $integer ]
+ }
}
Method [ <internal:swoole> public method lIndex ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $integer ]
+ }
}
Method [ <internal:swoole> public method setTimeout ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $integer ]
+ }
}
Method [ <internal:swoole> public method expire ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $integer ]
+ }
}
Method [ <internal:swoole> public method pexpire ] {
}
Method [ <internal:swoole> public method expireAt ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $integer ]
+ }
}
Method [ <internal:swoole> public method pexpireAt ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $integer ]
+ }
}
Method [ <internal:swoole> public method move ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $integer ]
+ }
}
Method [ <internal:swoole> public method select ] {
@@ -1802,6 +2110,11 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
Method [ <internal:swoole> public method incrByFloat ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $float_number ]
+ }
}
Method [ <internal:swoole> public method hIncrByFloat ] {
@@ -1838,9 +2151,19 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
Method [ <internal:swoole> public method sRemove ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method srem ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method zDelete ] {
@@ -1904,7 +2227,7 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
Property [ <default> public $errno ]
}
- - Methods [16] {
+ - Methods [15] {
Method [ <internal:swoole, ctor> public method __construct ] {
- Parameters [0] {
@@ -1971,13 +2294,6 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
}
- Method [ <internal:swoole> public method execute ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $query ]
- }
- }
-
Method [ <internal:swoole> public method setDefer ] {
- Parameters [1] {
@@ -2005,6 +2321,46 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
}
+ Class [ <internal:swoole> class Swoole\Coroutine\MySQL\Statement ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [4] {
+ Property [ <default> public $affected_rows ]
+ Property [ <default> public $insert_id ]
+ Property [ <default> public $error ]
+ Property [ <default> public $errno ]
+ }
+
+ - Methods [4] {
+ Method [ <internal:swoole> public method execute ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $params ]
+ }
+ }
+
+ Method [ <internal:swoole, dtor> public method __destruct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method __sleep ] {
+ }
+
+ Method [ <internal:swoole> public method __wakeup ] {
+ }
+ }
+ }
+
Class [ <internal:swoole> class Swoole\Coroutine\MySQL\Exception extends Exception implements Throwable ] {
- Constants [0] {
@@ -2088,53 +2444,136 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
Property [ <default> public $body ]
}
- - Methods [18] {
+ - Methods [20] {
Method [ <internal:swoole, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $host ]
+ Parameter #1 [ <optional> $port ]
+ Parameter #2 [ <optional> $ssl ]
+ }
}
Method [ <internal:swoole, dtor> public method __destruct ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method set ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $settings ]
+ }
}
Method [ <internal:swoole> public method setMethod ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $method ]
+ }
}
Method [ <internal:swoole> public method setHeaders ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $headers ]
+ }
}
Method [ <internal:swoole> public method setCookies ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $cookies ]
+ }
}
Method [ <internal:swoole> public method setData ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $data ]
+ }
}
Method [ <internal:swoole> public method execute ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $path ]
+ }
}
Method [ <internal:swoole> public method get ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $path ]
+ }
}
Method [ <internal:swoole> public method post ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $path ]
+ Parameter #1 [ <required> $data ]
+ }
+ }
+
+ Method [ <internal:swoole> public method upgrade ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $path ]
+ }
}
Method [ <internal:swoole> public method addFile ] {
+
+ - Parameters [6] {
+ Parameter #0 [ <required> $path ]
+ Parameter #1 [ <required> $name ]
+ Parameter #2 [ <optional> $type ]
+ Parameter #3 [ <optional> $filename ]
+ Parameter #4 [ <optional> $offset ]
+ Parameter #5 [ <optional> $length ]
+ }
}
Method [ <internal:swoole> public method isConnected ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method close ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method setDefer ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $defer ]
+ }
}
Method [ <internal:swoole> public method getDefer ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method recv ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method push ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $data ]
+ Parameter #1 [ <optional> $opcode ]
+ Parameter #2 [ <optional> $finish ]
+ }
}
Method [ <internal:swoole> public method __sleep ] {
@@ -2153,7 +2592,7 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
- Static properties [0] {
}
- - Static methods [11] {
+ - Static methods [13] {
Method [ <internal:swoole> static public method create ] {
- Parameters [1] {
@@ -2161,6 +2600,13 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
}
+ Method [ <internal:swoole> static public method set ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $options ]
+ }
+ }
+
Method [ <internal:swoole> static public method cli_wait ] {
- Parameters [0] {
@@ -2219,6 +2665,17 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
}
+ Method [ <internal:swoole> static public method getaddrinfo ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> $hostname ]
+ Parameter #1 [ <optional> $family ]
+ Parameter #2 [ <optional> $socktype ]
+ Parameter #3 [ <optional> $protocol ]
+ Parameter #4 [ <optional> $service ]
+ }
+ }
+
Method [ <internal:swoole> static public method call_user_func ] {
- Parameters [1] {
@@ -2414,8 +2871,12 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
Class [ <internal:swoole> class Swoole\Process ] {
- - Constants [1] {
+ - Constants [5] {
Constant [ public integer IPC_NOWAIT ] { 256 }
+ Constant [ public integer PIPE_MASTER ] { 1 }
+ Constant [ public integer PIPE_WORKER ] { 2 }
+ Constant [ public integer PIPE_READ ] { 3 }
+ Constant [ public integer PIPE_WRITE ] { 4 }
}
- Static properties [0] {
@@ -3534,13 +3995,19 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
Property [ <default> public $tmpfiles ]
}
- - Methods [4] {
+ - Methods [5] {
Method [ <internal:swoole> public method rawcontent ] {
- Parameters [0] {
}
}
+ Method [ <internal:swoole> public method getData ] {
+
+ - Parameters [0] {
+ }
+ }
+
Method [ <internal:swoole> public method __sleep ] {
}
@@ -3709,7 +4176,7 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
Property [ <default> public $setting ]
}
- - Methods [43] {
+ - Methods [44] {
Method [ <internal:swoole, overwrites Swoole\Http\Server, prototype Swoole\Server> public method on ] {
- Parameters [2] {
@@ -3735,6 +4202,13 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
}
+ Method [ <internal:swoole> public method isEstablished ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $fd ]
+ }
+ }
+
Method [ <internal:swoole, inherits Swoole\Http\Server, prototype Swoole\Server> public method start ] {
- Parameters [0] {
@@ -4297,13 +4771,146 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
}
+ Class [ <internal:swoole> class Swoole\Coroutine\Channel ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [1] {
+ Method [ <internal:swoole> static public method select ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> array or NULL &$read_list ]
+ Parameter #1 [ <required> array or NULL &$write_list ]
+ Parameter #2 [ <required> $timeout ]
+ }
+ }
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [9] {
+ Method [ <internal:swoole, ctor> public method __construct ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $size ]
+ }
+ }
+
+ Method [ <internal:swoole, dtor> public method __destruct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method push ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $data ]
+ }
+ }
+
+ Method [ <internal:swoole> public method pop ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method isEmpty ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method isFull ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method close ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method stats ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method length ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:swoole> class Swoole\RingQueue ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [5] {
+ Method [ <internal:swoole, ctor> public method __construct ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $len ]
+ }
+ }
+
+ Method [ <internal:swoole, dtor> public method __destruct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method push ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $data ]
+ }
+ }
+
+ Method [ <internal:swoole> public method pop ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method full ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
Class [ <internal:swoole> class Swoole\Http2\Client extends Swoole\Client ] {
- - Constants [4] {
+ - Constants [7] {
Constant [ public integer MSG_OOB ] { 1 }
Constant [ public integer MSG_PEEK ] { 2 }
Constant [ public integer MSG_DONTWAIT ] { 64 }
Constant [ public integer MSG_WAITALL ] { 256 }
+ Constant [ public integer SHUT_RDWR ] { 2 }
+ Constant [ public integer SHUT_RD ] { 0 }
+ Constant [ public integer SHUT_WR ] { 1 }
}
- Static properties [0] {
@@ -4331,7 +4938,7 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
Property [ <default> public $cookies ]
}
- - Methods [33] {
+ - Methods [34] {
Method [ <internal:swoole, overwrites Swoole\Client, ctor> public method __construct ] {
}
@@ -4453,6 +5060,13 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
}
+ Method [ <internal:swoole, inherits Swoole\Client> public method shutdown ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $how ]
+ }
+ }
+
Method [ <internal:swoole, inherits Swoole\Client> public method enableSSL ] {
- Parameters [1] {
@@ -4524,7 +5138,8 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
- Static methods [0] {
}
- - Properties [3] {
+ - Properties [4] {
+ Property [ <default> public $errCode ]
Property [ <default> public $statusCode ]
Property [ <default> public $body ]
Property [ <default> public $streamId ]
@@ -4534,6 +5149,111 @@ Extension [ <persistent> extension #143 swoole version 2.0.12 ] {
}
}
+ Class [ <internal:swoole> class Swoole\Coroutine\Http2\Client ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [9] {
+ Property [ <default> public $type ]
+ Property [ <default> public $errCode ]
+ Property [ <default> public $statusCode ]
+ Property [ <default> public $host ]
+ Property [ <default> public $port ]
+ Property [ <default> public $sock ]
+ Property [ <default> public $reuse ]
+ Property [ <default> public $reuseCount ]
+ Property [ <default> public $setting ]
+ }
+
+ - Methods [8] {
+ Method [ <internal:swoole, ctor> public method __construct ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $host ]
+ Parameter #1 [ <optional> $port ]
+ Parameter #2 [ <optional> $ssl ]
+ }
+ }
+
+ Method [ <internal:swoole, dtor> public method __destruct ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method set ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> array $settings ]
+ }
+ }
+
+ Method [ <internal:swoole> public method connect ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method send ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $request ]
+ }
+ }
+
+ Method [ <internal:swoole> public method recv ] {
+
+ - Parameters [0] {
+ }
+ }
+
+ Method [ <internal:swoole> public method write ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $stream_id ]
+ Parameter #1 [ <required> $data ]
+ Parameter #2 [ <optional> $end_stream ]
+ }
+ }
+
+ Method [ <internal:swoole> public method close ] {
+
+ - Parameters [0] {
+ }
+ }
+ }
+ }
+
+ Class [ <internal:swoole> class Swoole\Coroutine\Http2\Request ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [5] {
+ Property [ <default> public $method ]
+ Property [ <default> public $headers ]
+ Property [ <default> public $data ]
+ Property [ <default> public $pipeline ]
+ Property [ <default> public $files ]
+ }
+
+ - Methods [0] {
+ }
+ }
+
Class [ <internal:swoole> class Swoole\Serialize ] {
- Constants [0] {
diff --git a/php-pecl-swoole2.spec b/php-pecl-swoole2.spec
index 730add3..84e4a6f 100644
--- a/php-pecl-swoole2.spec
+++ b/php-pecl-swoole2.spec
@@ -6,6 +6,10 @@
#
# Please, preserve the changelog entries
#
+
+# we don't want -z defs linker flag
+%undefine _strict_symbol_defs_build
+
%if 0%{?scl:1}
%global sub_prefix %{scl_prefix}
%scl_package php-pecl-swoole
@@ -30,10 +34,9 @@
Summary: PHP's asynchronous concurrent distributed networking framework
Name: %{?sub_prefix}php-pecl-%{pecl_name}2
-Version: 2.0.12
+Version: 2.1.0
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: BSD
-Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
@@ -71,12 +74,6 @@ Conflicts: %{?scl_prefix}php-pecl-%{pecl_name} < 2
%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
# Other third party repo stuff
-Obsoletes: php53-pecl-%{pecl_name}2 <= %{version}
-Obsoletes: php53u-pecl-%{pecl_name}2 <= %{version}
-Obsoletes: php54-pecl-%{pecl_name}2 <= %{version}
-Obsoletes: php54w-pecl-%{pecl_name}2 <= %{version}
-Obsoletes: php55u-pecl-%{pecl_name}2 <= %{version}
-Obsoletes: php55w-pecl-%{pecl_name}2 <= %{version}
Obsoletes: php56u-pecl-%{pecl_name}2 <= %{version}
Obsoletes: php56w-pecl-%{pecl_name}2 <= %{version}
Obsoletes: php70u-pecl-%{pecl_name}2 <= %{version}
@@ -124,7 +121,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%package devel
Summary: %{name} developer files (header)
-Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{?scl_prefix}php-devel%{?_isa}
%if "%{?scl_prefix}" != "%{?sub_prefix}"
@@ -169,6 +165,7 @@ extension=%{pecl_name}.so
;swoole.aio_thread_num = 2
;swoole.display_errors = On
;swoole.use_namespace = On
+:swoole.use_shortname = On
;swoole.fast_serialize = Off
;swoole.unixsock_buffer_size = 8388608
EOF
@@ -303,6 +300,10 @@ cd ../ZTS
%changelog
+* Fri Feb 9 2018 Remi Collet <remi@remirepo.net> - 2.1.0-1
+- Update to 2.1.0
+- add swoole.use_shortname option in provided configuration
+
* Fri Dec 29 2017 Remi Collet <remi@remirepo.net> - 2.0.12-1
- Update to 2.0.12 (stable)
- drop PHP 5 support