summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO14
-rw-r--r--REFLECTION614
-rw-r--r--php-pecl-swoole4.spec11
3 files changed, 583 insertions, 56 deletions
diff --git a/PHPINFO b/PHPINFO
index e31d42e..7c6d455 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,19 +2,19 @@
swoole
swoole support => enabled
-Version => 4.2.1
+Version => 4.2.2
Author => Swoole Group[email: team@swoole.com]
coroutine => enabled
-trace-log => enabled
+trace_log => enabled
epoll => enabled
eventfd => enabled
signalfd => enabled
-cpu affinity => enabled
+cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
-openssl => enabled
-http2 => enabled
+openssl => OpenSSL 1.1.0i-fips 14 Aug 2018
+http2 => 1.31.1
pcre => enabled
zlib => enabled
brotli => enabled
@@ -22,8 +22,8 @@ mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled
-redis client => enabled
-postgresql client => enabled
+async_redis => enabled
+coroutine_postgresql => enabled
Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
diff --git a/REFLECTION b/REFLECTION
index 4abb5d0..451287d 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
+Extension [ <persistent> extension #147 swoole version 4.2.2 ] {
- INI {
Entry [ swoole.enable_coroutine <ALL> ]
@@ -24,7 +24,7 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
}
- - Constants [192] {
+ - Constants [203] {
Constant [ integer SWOOLE_BASE ] { 4 }
Constant [ integer SWOOLE_THREAD ] { 2 }
Constant [ integer SWOOLE_PROCESS ] { 3 }
@@ -69,7 +69,7 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
Constant [ integer SWOOLE_DTLSv1_CLIENT_METHOD ] { 17 }
Constant [ integer SWOOLE_EVENT_READ ] { 512 }
Constant [ integer SWOOLE_EVENT_WRITE ] { 1024 }
- Constant [ string SWOOLE_VERSION ] { 4.2.1 }
+ Constant [ string SWOOLE_VERSION ] { 4.2.2 }
Constant [ integer SWOOLE_ERROR_MALLOC_FAIL ] { 501 }
Constant [ integer SWOOLE_ERROR_SYSTEM_CALL_FAIL ] { 502 }
Constant [ integer SWOOLE_ERROR_PHP_FATAL_ERROR ] { 503 }
@@ -159,10 +159,21 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
Constant [ integer SW_PGSQL_ASSOC ] { 1 }
Constant [ integer SW_PGSQL_NUM ] { 2 }
Constant [ integer SW_PGSQL_BOTH ] { 3 }
+ Constant [ integer SWOOLE_DEFAULT_MAX_CORO_NUM ] { 3000 }
+ Constant [ integer SWOOLE_MAX_CORO_NUM_LIMIT ] { 524288 }
Constant [ integer SWOOLE_EXIT_IN_COROUTINE ] { 2 }
Constant [ integer SWOOLE_EXIT_IN_SERVER ] { 4 }
Constant [ integer SWOOLE_AIO_BASE ] { 0 }
Constant [ integer SWOOLE_AIO_LINUX ] { 0 }
+ Constant [ integer SWOOLE_HOOK_FILE ] { 2 }
+ Constant [ integer SWOOLE_HOOK_SLEEP ] { 4 }
+ Constant [ integer SWOOLE_HOOK_TCP ] { 8 }
+ Constant [ integer SWOOLE_HOOK_UDP ] { 16 }
+ Constant [ integer SWOOLE_HOOK_UNIX ] { 32 }
+ Constant [ integer SWOOLE_HOOK_UDG ] { 64 }
+ Constant [ integer SWOOLE_HOOK_SSL ] { 128 }
+ Constant [ integer SWOOLE_HOOK_TLS ] { 256 }
+ Constant [ integer SWOOLE_HOOK_ALL ] { 2147483647 }
Constant [ integer SWOOLE_FILELOCK ] { 2 }
Constant [ integer SWOOLE_MUTEX ] { 3 }
Constant [ integer SWOOLE_SEM ] { 4 }
@@ -452,6 +463,12 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
Parameter #1 [ <optional> $type ]
}
}
+ Function [ <internal:swoole> function swoole_get_mime_type ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $filename ]
+ }
+ }
Function [ <internal:swoole> function swoole_call_user_shutdown_begin ] {
- Parameters [0] {
@@ -1819,21 +1836,55 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method close ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method set ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ Parameter #2 [ <optional> $timeout ]
+ Parameter #3 [ <optional> $opt ]
+ }
}
Method [ <internal:swoole> public method setBit ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $offset ]
+ Parameter #2 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method setEx ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $expire ]
+ Parameter #2 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method psetEx ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $expire ]
+ Parameter #2 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method lSet ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $index ]
+ Parameter #2 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method get ] {
@@ -1844,42 +1895,96 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method mGet ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $keys ]
+ }
}
Method [ <internal:swoole> public method del ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <optional> $other_keys ]
+ }
}
Method [ <internal:swoole> public method hDel ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $member ]
+ Parameter #2 [ <optional> $other_members ]
+ }
}
Method [ <internal:swoole> public method hSet ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $member ]
+ Parameter #2 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method hMSet ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $pairs ]
+ }
}
Method [ <internal:swoole> public method hSetNx ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $member ]
+ Parameter #2 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method delete ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <optional> $other_keys ]
+ }
}
Method [ <internal:swoole> public method mSet ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $pairs ]
+ }
}
Method [ <internal:swoole> public method mSetNx ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $pairs ]
+ }
}
Method [ <internal:swoole> public method getKeys ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $pattern ]
+ }
}
Method [ <internal:swoole> public method keys ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $pattern ]
+ }
}
Method [ <internal:swoole> public method exists ] {
- - Parameters [1] {
+ - Parameters [2] {
Parameter #0 [ <required> $key ]
+ Parameter #1 [ <optional> $other_keys ]
}
}
@@ -1905,6 +2010,12 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method blPop ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $timeout_or_key ]
+ Parameter #2 [ <optional> $extra_args ]
+ }
}
Method [ <internal:swoole> public method rPop ] {
@@ -1915,24 +2026,56 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method brPop ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $timeout_or_key ]
+ Parameter #2 [ <optional> $extra_args ]
+ }
}
Method [ <internal:swoole> public method bRPopLPush ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $src ]
+ Parameter #1 [ <required> $dst ]
+ Parameter #2 [ <required> $timeout ]
+ }
}
Method [ <internal:swoole> public method lSize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method lLen ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method sSize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method scard ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method sPop ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method sMembers ] {
@@ -1953,11 +2096,15 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
- Parameters [2] {
Parameter #0 [ <required> $key ]
- Parameter #1 [ <optional> $integer ]
+ Parameter #1 [ <optional> $count ]
}
}
Method [ <internal:swoole> public method persist ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method ttl ] {
@@ -1975,21 +2122,45 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method zCard ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method zSize ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method hLen ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method hKeys ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method hVals ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method hGetAll ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method debug ] {
@@ -2000,6 +2171,12 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method restore ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $ttl ]
+ Parameter #1 [ <required> $key ]
+ Parameter #2 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method dump ] {
@@ -2010,15 +2187,35 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method renameKey ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $newkey ]
+ }
}
Method [ <internal:swoole> public method rename ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $newkey ]
+ }
}
Method [ <internal:swoole> public method renameNx ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $newkey ]
+ }
}
Method [ <internal:swoole> public method rpoplpush ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $src ]
+ Parameter #1 [ <required> $dst ]
+ }
}
Method [ <internal:swoole> public method randomKey ] {
@@ -2034,6 +2231,10 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method auth ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $password ]
+ }
}
Method [ <internal:swoole> public method unwatch ] {
@@ -2043,6 +2244,11 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method watch ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <optional> $other_keys ]
+ }
}
Method [ <internal:swoole> public method save ] {
@@ -2058,6 +2264,9 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method lastSave ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method flushDB ] {
@@ -2097,6 +2306,12 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method setRange ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $offset ]
+ Parameter #2 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method setNx ] {
@@ -2132,9 +2347,19 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method lPush ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method rPush ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method rPushx ] {
@@ -2165,7 +2390,7 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
- Parameters [2] {
Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $value ]
+ Parameter #1 [ <required> $member ]
}
}
@@ -2173,7 +2398,7 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
- Parameters [2] {
Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $value ]
+ Parameter #1 [ <required> $member ]
}
}
@@ -2181,20 +2406,40 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
- Parameters [2] {
Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $value ]
+ Parameter #1 [ <required> $member ]
}
}
Method [ <internal:swoole> public method hGet ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $member ]
+ }
}
Method [ <internal:swoole> public method hMGet ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $keys ]
+ }
}
Method [ <internal:swoole> public method hExists ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $member ]
+ }
}
Method [ <internal:swoole> public method publish ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $channel ]
+ Parameter #1 [ <required> $message ]
+ }
}
Method [ <internal:swoole> public method zIncrBy ] {
@@ -2207,15 +2452,39 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method zAdd ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $score ]
+ Parameter #2 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method zDeleteRangeByScore ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $min ]
+ Parameter #2 [ <required> $max ]
+ }
}
Method [ <internal:swoole> public method zRemRangeByScore ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $min ]
+ Parameter #2 [ <required> $max ]
+ }
}
Method [ <internal:swoole> public method zCount ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $min ]
+ Parameter #2 [ <required> $max ]
+ }
}
Method [ <internal:swoole> public method zRange ] {
@@ -2224,46 +2493,117 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
Parameter #0 [ <required> $key ]
Parameter #1 [ <required> $start ]
Parameter #2 [ <required> $end ]
- Parameter #3 [ <optional> $withscores ]
+ Parameter #3 [ <optional> $scores ]
}
}
Method [ <internal:swoole> public method zRevRange ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $start ]
+ Parameter #2 [ <required> $end ]
+ Parameter #3 [ <optional> $scores ]
+ }
}
Method [ <internal:swoole> public method zRangeByScore ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $start ]
+ Parameter #2 [ <required> $end ]
+ Parameter #3 [ <optional> $options ]
+ }
}
Method [ <internal:swoole> public method zRevRangeByScore ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $start ]
+ Parameter #2 [ <required> $end ]
+ Parameter #3 [ <optional> $options ]
+ }
}
Method [ <internal:swoole> public method zRangeByLex ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $min ]
+ Parameter #2 [ <required> $max ]
+ Parameter #3 [ <optional> $offset ]
+ Parameter #4 [ <optional> $limit ]
+ }
}
Method [ <internal:swoole> public method zRevRangeByLex ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $min ]
+ Parameter #2 [ <required> $max ]
+ Parameter #3 [ <optional> $offset ]
+ Parameter #4 [ <optional> $limit ]
+ }
}
Method [ <internal:swoole> public method zInter ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $keys ]
+ Parameter #2 [ <optional> $weights ]
+ Parameter #3 [ <optional> $aggregate ]
+ }
}
Method [ <internal:swoole> public method zinterstore ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $keys ]
+ Parameter #2 [ <optional> $weights ]
+ Parameter #3 [ <optional> $aggregate ]
+ }
}
Method [ <internal:swoole> public method zUnion ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $keys ]
+ Parameter #2 [ <optional> $weights ]
+ Parameter #3 [ <optional> $aggregate ]
+ }
}
Method [ <internal:swoole> public method zunionstore ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $keys ]
+ Parameter #2 [ <optional> $weights ]
+ Parameter #3 [ <optional> $aggregate ]
+ }
}
Method [ <internal:swoole> public method incrBy ] {
- Parameters [2] {
Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $integer ]
+ Parameter #1 [ <required> $value ]
}
}
Method [ <internal:swoole> public method hIncrBy ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $member ]
+ Parameter #2 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method incr ] {
@@ -2277,7 +2617,7 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
- Parameters [2] {
Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $integer ]
+ Parameter #1 [ <required> $value ]
}
}
@@ -2292,18 +2632,25 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
- Parameters [2] {
Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $integer ]
+ Parameter #1 [ <required> $offset ]
}
}
Method [ <internal:swoole> public method lInsert ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $position ]
+ Parameter #2 [ <required> $pivot ]
+ Parameter #3 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method lGet ] {
- Parameters [2] {
Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $integer ]
+ Parameter #1 [ <required> $index ]
}
}
@@ -2319,7 +2666,7 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
- Parameters [2] {
Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $integer ]
+ Parameter #1 [ <required> $timeout ]
}
}
@@ -2332,13 +2679,18 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method pexpire ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $timestamp ]
+ }
}
Method [ <internal:swoole> public method expireAt ] {
- Parameters [2] {
Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $integer ]
+ Parameter #1 [ <required> $timestamp ]
}
}
@@ -2346,7 +2698,7 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
- Parameters [2] {
Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $integer ]
+ Parameter #1 [ <required> $timestamp ]
}
}
@@ -2354,79 +2706,198 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
- Parameters [2] {
Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $integer ]
+ Parameter #1 [ <required> $dbindex ]
}
}
Method [ <internal:swoole> public method select ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $dbindex ]
+ }
}
Method [ <internal:swoole> public method getRange ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $start ]
+ Parameter #2 [ <required> $end ]
+ }
}
Method [ <internal:swoole> public method listTrim ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $start ]
+ Parameter #2 [ <required> $stop ]
+ }
}
Method [ <internal:swoole> public method ltrim ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $start ]
+ Parameter #2 [ <required> $stop ]
+ }
}
Method [ <internal:swoole> public method lGetRange ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $start ]
+ Parameter #2 [ <required> $end ]
+ }
}
Method [ <internal:swoole> public method lRange ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $start ]
+ Parameter #2 [ <required> $end ]
+ }
}
Method [ <internal:swoole> public method lRem ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ Parameter #2 [ <required> $count ]
+ }
}
Method [ <internal:swoole> public method lRemove ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ Parameter #2 [ <required> $count ]
+ }
}
Method [ <internal:swoole> public method zDeleteRangeByRank ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $start ]
+ Parameter #2 [ <required> $end ]
+ }
}
Method [ <internal:swoole> public method zRemRangeByRank ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $min ]
+ Parameter #2 [ <required> $max ]
+ }
}
Method [ <internal:swoole> public method incrByFloat ] {
- Parameters [2] {
Parameter #0 [ <required> $key ]
- Parameter #1 [ <required> $float_number ]
+ Parameter #1 [ <required> $value ]
}
}
Method [ <internal:swoole> public method hIncrByFloat ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $member ]
+ Parameter #2 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method bitCount ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $key ]
+ }
}
Method [ <internal:swoole> public method bitOp ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $operation ]
+ Parameter #1 [ <required> $ret_key ]
+ Parameter #2 [ <required> $key ]
+ Parameter #3 [ <optional> $other_keys ]
+ }
}
Method [ <internal:swoole> public method sAdd ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method sMove ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $src ]
+ Parameter #1 [ <required> $dst ]
+ Parameter #2 [ <required> $value ]
+ }
}
Method [ <internal:swoole> public method sDiff ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <optional> $other_keys ]
+ }
}
Method [ <internal:swoole> public method sDiffStore ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $dst ]
+ Parameter #1 [ <required> $key ]
+ Parameter #2 [ <optional> $other_keys ]
+ }
}
Method [ <internal:swoole> public method sUnion ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <optional> $other_keys ]
+ }
}
Method [ <internal:swoole> public method sUnionStore ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $dst ]
+ Parameter #1 [ <required> $key ]
+ Parameter #2 [ <optional> $other_keys ]
+ }
}
Method [ <internal:swoole> public method sInter ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <optional> $other_keys ]
+ }
}
Method [ <internal:swoole> public method sInterStore ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $dst ]
+ Parameter #1 [ <required> $key ]
+ Parameter #2 [ <optional> $other_keys ]
+ }
}
Method [ <internal:swoole> public method sRemove ] {
@@ -2446,33 +2917,82 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
Method [ <internal:swoole> public method zDelete ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $member ]
+ Parameter #2 [ <optional> $other_members ]
+ }
}
Method [ <internal:swoole> public method zRemove ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $member ]
+ Parameter #2 [ <optional> $other_members ]
+ }
}
Method [ <internal:swoole> public method zRem ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $key ]
+ Parameter #1 [ <required> $member ]
+ Parameter #2 [ <optional> $other_members ]
+ }
}
Method [ <internal:swoole> public method pSubscribe ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $patterns ]
+ }
}
Method [ <internal:swoole> public method subscribe ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $channels ]
+ }
}
Method [ <internal:swoole> public method multi ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method exec ] {
+
+ - Parameters [0] {
+ }
}
Method [ <internal:swoole> public method eval ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $script ]
+ Parameter #1 [ <optional> $args ]
+ Parameter #2 [ <optional> $num_keys ]
+ }
}
Method [ <internal:swoole> public method evalSha ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $script_sha ]
+ Parameter #1 [ <optional> $args ]
+ Parameter #2 [ <optional> $num_keys ]
+ }
}
Method [ <internal:swoole> public method script ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $cmd ]
+ Parameter #1 [ <optional> $args ]
+ }
}
}
}
@@ -4206,20 +4726,6 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
- Methods [40] {
- Method [ <internal:swoole, overwrites Swoole\Server, prototype Swoole\Server> public method on ] {
-
- - Parameters [2] {
- Parameter #0 [ <required> $event_name ]
- Parameter #1 [ <required> $callback ]
- }
- }
-
- Method [ <internal:swoole, overwrites Swoole\Server, prototype Swoole\Server> public method start ] {
-
- - Parameters [0] {
- }
- }
-
Method [ <internal:swoole, inherits Swoole\Server, ctor> public method __construct ] {
- Parameters [4] {
@@ -4254,6 +4760,14 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
}
+ Method [ <internal:swoole, inherits Swoole\Server> public method on ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $event_name ]
+ Parameter #1 [ <required> $callback ]
+ }
+ }
+
Method [ <internal:swoole, inherits Swoole\Server> public method set ] {
- Parameters [1] {
@@ -4261,6 +4775,12 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
}
+ Method [ <internal:swoole, inherits Swoole\Server> public method start ] {
+
+ - Parameters [0] {
+ }
+ }
+
Method [ <internal:swoole, inherits Swoole\Server> public method send ] {
- Parameters [3] {
@@ -4845,14 +5365,6 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
- Methods [43] {
- Method [ <internal:swoole, overwrites Swoole\Http\Server, prototype Swoole\Server> public method on ] {
-
- - Parameters [2] {
- Parameter #0 [ <required> $event_name ]
- Parameter #1 [ <required> $callback ]
- }
- }
-
Method [ <internal:swoole> public method push ] {
- Parameters [4] {
@@ -4886,12 +5398,6 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
}
- Method [ <internal:swoole, inherits Swoole\Http\Server, prototype Swoole\Server> public method start ] {
-
- - Parameters [0] {
- }
- }
-
Method [ <internal:swoole, inherits Swoole\Server, ctor> public method __construct ] {
- Parameters [4] {
@@ -4926,6 +5432,14 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
}
+ Method [ <internal:swoole, inherits Swoole\Server> public method on ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $event_name ]
+ Parameter #1 [ <required> $callback ]
+ }
+ }
+
Method [ <internal:swoole, inherits Swoole\Server> public method set ] {
- Parameters [1] {
@@ -4933,6 +5447,12 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
}
}
+ Method [ <internal:swoole, inherits Swoole\Server> public method start ] {
+
+ - Parameters [0] {
+ }
+ }
+
Method [ <internal:swoole, inherits Swoole\Server> public method send ] {
- Parameters [3] {
@@ -5558,7 +6078,7 @@ Extension [ <persistent> extension #148 swoole version 4.2.1 ] {
Method [ <internal:swoole> public method pop ] {
- Parameters [1] {
- Parameter #0 [ <required> $timeout ]
+ Parameter #0 [ <optional> $timeout ]
}
}
diff --git a/php-pecl-swoole4.spec b/php-pecl-swoole4.spec
index ecf0375..bc7c99f 100644
--- a/php-pecl-swoole4.spec
+++ b/php-pecl-swoole4.spec
@@ -36,7 +36,7 @@
Summary: PHP's asynchronous concurrent distributed networking framework
Name: %{?sub_prefix}php-pecl-%{pecl_name}4
-Version: 4.2.1
+Version: 4.2.2
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: BSD
URL: http://pecl.php.net/package/%{pecl_name}
@@ -168,8 +168,11 @@ mv %{pecl_name}-%{version} NTS
cd NTS
+# See https://github.com/swoole/swoole-src/issues/2038
+sed -e 's/4.2.2-alpha/%{version}/' -i include/swoole.h
+
# Sanity check, really often broken
-extver=$(sed -n '/#define PHP_SWOOLE_VERSION/{s/.* "//;s/".*$//;p}' php_swoole.h)
+extver=$(sed -n '/#define SWOOLE_VERSION/{s/.* "//;s/".*$//;p}' include/swoole.h)
if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then
: Error: Upstream extension version is ${extver}, expecting %{version}%{?prever:-%{prever}}.
exit 1
@@ -340,6 +343,10 @@ cd ../ZTS
%changelog
+* Mon Oct 15 2018 Remi Collet <remi@remirepo.net> - 4.2.2-1
+- update to 4.2.2
+- open https://github.com/swoole/swoole-src/issues/2038 bad version
+
* Wed Sep 19 2018 Remi Collet <remi@remirepo.net> - 4.2.1-1
- update to 4.2.1