summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PHPINFO4
-rw-r--r--REFLECTION268
-rw-r--r--php-pecl-swoole6.spec17
3 files changed, 199 insertions, 90 deletions
diff --git a/PHPINFO b/PHPINFO
index 895af40..03ba69d 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -4,7 +4,7 @@ swoole
Swoole => enabled
Author => Swoole Team <team@swoole.com>
Version => 6.0.0
-Built => Jul 2 2024 00:00:00
+Built => Oct 22 2024 00:00:00
coroutine => enabled with boost asm context
trace_log => enabled
epoll => enabled
@@ -14,7 +14,7 @@ cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
-openssl => OpenSSL 3.1.1 30 May 2023
+openssl => OpenSSL 3.1.4 24 Oct 2023
dtls => enabled
http2 => enabled
json => enabled
diff --git a/REFLECTION b/REFLECTION
index d934341..713aaed 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
+Extension [ <persistent> extension #125 swoole version 6.0.0 ] {
- Dependencies {
Dependency [ json (Required) ]
@@ -29,7 +29,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
}
}
- - Constants [390] {
+ - Constants [397] {
Constant [ string SWOOLE_VERSION ] { 6.0.0 }
Constant [ int SWOOLE_VERSION_ID ] { 60000 }
Constant [ int SWOOLE_MAJOR_VERSION ] { 6 }
@@ -103,6 +103,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
Constant [ int SWOOLE_ERROR_WRONG_OPERATION ] { 509 }
Constant [ int SWOOLE_ERROR_PHP_RUNTIME_NOTICE ] { 510 }
Constant [ int SWOOLE_ERROR_FOR_TEST ] { 511 }
+ Constant [ int SWOOLE_ERROR_NO_PAYLOAD ] { 550 }
Constant [ int SWOOLE_ERROR_UNDEFINED_BEHAVIOR ] { 600 }
Constant [ int SWOOLE_ERROR_NOT_THREAD_SAFETY ] { 601 }
Constant [ int SWOOLE_ERROR_FILE_NOT_EXIST ] { 700 }
@@ -115,6 +116,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
Constant [ int SWOOLE_ERROR_DNSLOOKUP_NO_SERVER ] { 714 }
Constant [ int SWOOLE_ERROR_BAD_IPV6_ADDRESS ] { 720 }
Constant [ int SWOOLE_ERROR_UNREGISTERED_SIGNAL ] { 721 }
+ Constant [ int SWOOLE_ERROR_BAD_HOST_ADDR ] { 722 }
Constant [ int SWOOLE_ERROR_EVENT_SOCKET_REMOVED ] { 800 }
Constant [ int SWOOLE_ERROR_SESSION_CLOSED_BY_SERVER ] { 1001 }
Constant [ int SWOOLE_ERROR_SESSION_CLOSED_BY_CLIENT ] { 1002 }
@@ -163,6 +165,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
Constant [ int SWOOLE_ERROR_HTTP_PROXY_BAD_RESPONSE ] { 7104 }
Constant [ int SWOOLE_ERROR_HTTP_CONFLICT_HEADER ] { 7105 }
Constant [ int SWOOLE_ERROR_HTTP_CONTEXT_UNAVAILABLE ] { 7106 }
+ Constant [ int SWOOLE_ERROR_HTTP_COOKIE_UNAVAILABLE ] { 7107 }
Constant [ int SWOOLE_ERROR_WEBSOCKET_BAD_CLIENT ] { 8501 }
Constant [ int SWOOLE_ERROR_WEBSOCKET_BAD_OPCODE ] { 8502 }
Constant [ int SWOOLE_ERROR_WEBSOCKET_UNCONNECTED ] { 8503 }
@@ -184,6 +187,8 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
Constant [ int SWOOLE_ERROR_SERVER_INVALID_COMMAND ] { 9012 }
Constant [ int SWOOLE_ERROR_SERVER_IS_NOT_REGULAR_FILE ] { 9013 }
Constant [ int SWOOLE_ERROR_SERVER_SEND_TO_WOKER_TIMEOUT ] { 9014 }
+ Constant [ int SWOOLE_ERROR_SERVER_INVALID_CALLBACK ] { 9015 }
+ Constant [ int SWOOLE_ERROR_SERVER_UNRELATED_THREAD ] { 9016 }
Constant [ int SWOOLE_ERROR_SERVER_WORKER_EXIT_TIMEOUT ] { 9101 }
Constant [ int SWOOLE_ERROR_SERVER_WORKER_ABNORMAL_PIPE_DATA ] { 9102 }
Constant [ int SWOOLE_ERROR_SERVER_WORKER_UNPROCESSED_DATA ] { 9103 }
@@ -258,6 +263,8 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
Constant [ int SWOOLE_IPC_UNIXSOCK ] { 1 }
Constant [ int SWOOLE_IPC_SOCKET ] { 3 }
Constant [ int SWOOLE_IOV_MAX ] { 1024 }
+ Constant [ int SWOOLE_IOURING_DEFAULT ] { 0 }
+ Constant [ int SWOOLE_IOURING_SQPOLL ] { 2 }
Constant [ int SWOOLE_MUTEX ] { 3 }
Constant [ int SWOOLE_RWLOCK ] { 1 }
Constant [ int SWOOLE_SPINLOCK ] { 5 }
@@ -658,19 +665,20 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
}
- Return [ mixed ]
}
- Function [ <internal:swoole> function swoole_test_fn ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> string $case ]
- }
- - Return [ void ]
- }
Function [ <internal:swoole> function swoole_internal_call_user_shutdown_begin ] {
- Parameters [0] {
}
- Return [ bool ]
}
+ Function [ <internal:swoole> function swoole_implicit_fn ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> string $fn ]
+ Parameter #1 [ <optional> mixed $args = null ]
+ }
+ - Return [ void ]
+ }
Function [ <internal:swoole> function swoole_get_objects ] {
- Parameters [0] {
@@ -1033,7 +1041,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
}
}
- - Classes [49] {
+ - Classes [50] {
Class [ <internal:swoole> class Swoole\Exception extends Exception implements Throwable, Stringable ] {
- Constants [0] {
@@ -1569,7 +1577,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
- Static properties [0] {
}
- - Static methods [6] {
+ - Static methods [7] {
Method [ <internal:swoole> static public method wait ] {
- Parameters [1] {
@@ -1622,6 +1630,13 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
}
- Return [ bool ]
}
+
+ Method [ <internal:swoole> static public method getAffinity ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
}
- Properties [6] {
@@ -2413,7 +2428,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
- Static properties [0] {
}
- - Static methods [40] {
+ - Static methods [37] {
Method [ <internal:swoole> static public method create ] {
- Parameters [2] {
@@ -2720,33 +2735,6 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
}
- Return [ int|false ]
}
-
- Method [ <internal, deprecated:swoole> static public method fread ] {
-
- - Parameters [2] {
- Parameter #0 [ <required> $handle ]
- Parameter #1 [ <optional> int $length = 0 ]
- }
- - Return [ string|false ]
- }
-
- Method [ <internal, deprecated:swoole> static public method fgets ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $handle ]
- }
- - Return [ string|false ]
- }
-
- Method [ <internal, deprecated:swoole> static public method fwrite ] {
-
- - Parameters [3] {
- Parameter #0 [ <required> $handle ]
- Parameter #1 [ <required> string $data ]
- Parameter #2 [ <optional> int $length = 0 ]
- }
- - Return [ int|false ]
- }
}
- Properties [0] {
@@ -3306,7 +3294,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
- Static properties [0] {
}
- - Static methods [15] {
+ - Static methods [12] {
Method [ <internal:swoole> static public method gethostbyname ] {
- Parameters [3] {
@@ -3419,33 +3407,6 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
}
- Return [ int|false ]
}
-
- Method [ <internal, deprecated:swoole> static public method fread ] {
-
- - Parameters [2] {
- Parameter #0 [ <required> $handle ]
- Parameter #1 [ <optional> int $length = 0 ]
- }
- - Return [ string|false ]
- }
-
- Method [ <internal, deprecated:swoole> static public method fwrite ] {
-
- - Parameters [3] {
- Parameter #0 [ <required> $handle ]
- Parameter #1 [ <required> string $data ]
- Parameter #2 [ <optional> int $length = 0 ]
- }
- - Return [ int|false ]
- }
-
- Method [ <internal, deprecated:swoole> static public method fgets ] {
-
- - Parameters [1] {
- Parameter #0 [ <required> $handle ]
- }
- - Return [ string|false ]
- }
}
- Properties [0] {
@@ -4918,7 +4879,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
- Static methods [0] {
}
- - Properties [10] {
+ - Properties [11] {
Property [ public $errCode = 0 ]
Property [ public $errMsg = '' ]
Property [ public $sock = -1 ]
@@ -4929,6 +4890,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
Property [ public $host = NULL ]
Property [ public $port = 0 ]
Property [ public $ssl = false ]
+ Property [ public $serverLastStreamId = 0 ]
}
- Methods [13] {
@@ -5587,7 +5549,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
- Parameters [1] {
Parameter #0 [ <required> Swoole\Process $process ]
}
- - Return [ int ]
+ - Return [ int|false ]
}
Method [ <internal:swoole> public method stats ] {
@@ -5717,8 +5679,9 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
- Static methods [0] {
}
- - Properties [3] {
+ - Properties [4] {
Property [ public $source_worker_id = 0 ]
+ Property [ public $worker_id = 0 ]
Property [ public $dispatch_time = 0.0 ]
Property [ public $data = NULL ]
}
@@ -6059,7 +6022,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
Property [ public $trailer = NULL ]
}
- - Methods [21] {
+ - Methods [22] {
Method [ <internal:swoole> public method initHeader ] {
- Parameters [0] {
@@ -6076,8 +6039,8 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
Method [ <internal:swoole> public method cookie ] {
- - Parameters [9] {
- Parameter #0 [ <required> string $name ]
+ - Parameters [10] {
+ Parameter #0 [ <required> Swoole\Http\Cookie|string $name_or_object ]
Parameter #1 [ <optional> string $value = '' ]
Parameter #2 [ <optional> int $expires = 0 ]
Parameter #3 [ <optional> string $path = '/' ]
@@ -6086,14 +6049,15 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
Parameter #6 [ <optional> bool $httponly = false ]
Parameter #7 [ <optional> string $samesite = '' ]
Parameter #8 [ <optional> string $priority = '' ]
+ Parameter #9 [ <optional> bool $partitioned = false ]
}
- Return [ bool ]
}
Method [ <internal:swoole> public method setCookie ] {
- - Parameters [9] {
- Parameter #0 [ <required> string $name ]
+ - Parameters [10] {
+ Parameter #0 [ <required> Swoole\Http\Cookie|string $name_or_object ]
Parameter #1 [ <optional> string $value = '' ]
Parameter #2 [ <optional> int $expires = 0 ]
Parameter #3 [ <optional> string $path = '/' ]
@@ -6102,14 +6066,15 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
Parameter #6 [ <optional> bool $httponly = false ]
Parameter #7 [ <optional> string $samesite = '' ]
Parameter #8 [ <optional> string $priority = '' ]
+ Parameter #9 [ <optional> bool $partitioned = false ]
}
- Return [ bool ]
}
Method [ <internal:swoole> public method rawcookie ] {
- - Parameters [9] {
- Parameter #0 [ <required> string $name ]
+ - Parameters [10] {
+ Parameter #0 [ <required> Swoole\Http\Cookie|string $name_or_object ]
Parameter #1 [ <optional> string $value = '' ]
Parameter #2 [ <optional> int $expires = 0 ]
Parameter #3 [ <optional> string $path = '/' ]
@@ -6118,6 +6083,24 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
Parameter #6 [ <optional> bool $httponly = false ]
Parameter #7 [ <optional> string $samesite = '' ]
Parameter #8 [ <optional> string $priority = '' ]
+ Parameter #9 [ <optional> bool $partitioned = false ]
+ }
+ - Return [ bool ]
+ }
+
+ Method [ <internal:swoole> public method setRawCookie ] {
+
+ - Parameters [10] {
+ Parameter #0 [ <required> Swoole\Http\Cookie|string $name_or_object ]
+ Parameter #1 [ <optional> string $value = '' ]
+ Parameter #2 [ <optional> int $expires = 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 = '' ]
+ Parameter #9 [ <optional> bool $partitioned = false ]
}
- Return [ bool ]
}
@@ -6261,6 +6244,131 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
}
}
+ Class [ <internal:swoole> class Swoole\Http\Cookie ] {
+
+ - Constants [0] {
+ }
+
+ - Static properties [0] {
+ }
+
+ - Static methods [0] {
+ }
+
+ - Properties [0] {
+ }
+
+ - Methods [14] {
+ Method [ <internal:swoole, ctor> public method __construct ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> bool $encode = true ]
+ }
+ }
+
+ Method [ <internal:swoole> public method withName ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> string $name ]
+ }
+ - Return [ Swoole\Http\Cookie ]
+ }
+
+ Method [ <internal:swoole> public method withValue ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> string $value = '' ]
+ }
+ - Return [ Swoole\Http\Cookie ]
+ }
+
+ Method [ <internal:swoole> public method withExpires ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> int $expires = 0 ]
+ }
+ - Return [ Swoole\Http\Cookie ]
+ }
+
+ Method [ <internal:swoole> public method withPath ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> string $path = '/' ]
+ }
+ - Return [ Swoole\Http\Cookie ]
+ }
+
+ Method [ <internal:swoole> public method withDomain ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> string $domain = '' ]
+ }
+ - Return [ Swoole\Http\Cookie ]
+ }
+
+ Method [ <internal:swoole> public method withSecure ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> bool $secure = false ]
+ }
+ - Return [ Swoole\Http\Cookie ]
+ }
+
+ Method [ <internal:swoole> public method withHttpOnly ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> bool $httpOnly = false ]
+ }
+ - Return [ Swoole\Http\Cookie ]
+ }
+
+ Method [ <internal:swoole> public method withSameSite ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> string $sameSite = '' ]
+ }
+ - Return [ Swoole\Http\Cookie ]
+ }
+
+ Method [ <internal:swoole> public method withPriority ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> string $priority = '' ]
+ }
+ - Return [ Swoole\Http\Cookie ]
+ }
+
+ Method [ <internal:swoole> public method withPartitioned ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <optional> bool $partitioned = false ]
+ }
+ - Return [ Swoole\Http\Cookie ]
+ }
+
+ Method [ <internal:swoole> public method toString ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string|false ]
+ }
+
+ Method [ <internal:swoole> public method toArray ] {
+
+ - Parameters [0] {
+ }
+ - Return [ array ]
+ }
+
+ Method [ <internal:swoole> public method reset ] {
+
+ - Parameters [0] {
+ }
+ - Return [ void ]
+ }
+ }
+ }
+
Class [ <internal:swoole> class Swoole\Http\Server extends Swoole\Server ] {
- Constants [0] {
@@ -6654,7 +6762,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
- Parameters [1] {
Parameter #0 [ <required> Swoole\Process $process ]
}
- - Return [ int ]
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method stats ] {
@@ -7195,7 +7303,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
- Parameters [1] {
Parameter #0 [ <required> Swoole\Process $process ]
}
- - Return [ int ]
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method stats ] {
@@ -7743,7 +7851,7 @@ Extension [ <persistent> extension #94 swoole version 6.0.0 ] {
- Parameters [1] {
Parameter #0 [ <required> Swoole\Process $process ]
}
- - Return [ int ]
+ - Return [ int|false ]
}
Method [ <internal:swoole, inherits Swoole\Server> public method stats ] {
diff --git a/php-pecl-swoole6.spec b/php-pecl-swoole6.spec
index 02b39f7..9a55593 100644
--- a/php-pecl-swoole6.spec
+++ b/php-pecl-swoole6.spec
@@ -53,7 +53,7 @@
Summary: PHP's asynchronous concurrent distributed networking framework
Name: %{?scl_prefix}php-pecl-%{pecl_name}6
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
# Extension is Apache-2.0
# BSD-3-Clause: Hiredis
# MIT: nlohmann/json, nghttp2
@@ -183,8 +183,8 @@ sed \
-e '/Makefile/s/role="doc"/role="src"/' \
-e '/samples/s/role="doc"/role="src"/' \
-e '/name="library/s/role="doc"/role="src"/' \
- %{?_licensedir: -e '/LICENSE/s/role="doc"/role="src"/' } \
- %{?_licensedir: -e '/COPYING/s/role="doc"/role="src"/' } \
+ -e '/LICENSE/s/role="doc"/role="src"/' \
+ -e '/COPYING/s/role="doc"/role="src"/' \
-i package.xml
@@ -335,10 +335,8 @@ cd ../ZTS
%files
-%{?_licensedir:%license %{sources}/LICENSE}
-%{?_licensedir:%license %{sources}/*-COPYING}
-%{!?_licensedir:%{pecl_docdir}/%{pecl_name}/LICENSE}
-%{!?_licensedir:%{pecl_docdir}/%{pecl_name}/thirdparty/*/COPYING}
+%license %{sources}/LICENSE
+%license %{sources}/*-COPYING
%doc %{pecl_docdir}/%{pecl_name}/*md
%{pecl_xmldir}/%{name}.xml
@@ -366,8 +364,11 @@ cd ../ZTS
%changelog
+* Tue Oct 22 2024 Remi Collet <remi@remirepo.net> - 6.0.0-2
+- update to 6.0.0beta
+
* Tue Jul 2 2024 Remi Collet <remi@remirepo.net> - 6.0.0-1
-- update to 6.0.0
+- update to 6.0.0alpha
- rename to php-pecl-swoole6
- raise dependency on PHP 8.1