From 6de2f05f8e1629b9a77a6ec2390ba02d86a9324f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9F=A9=E5=A4=A9=E5=B3=B0-Rango?= Date: Tue, 30 Nov 2021 10:30:41 +0800 Subject: [PATCH] Version 4.8.3 (#4515) * Update version * Update package.xml --- CMakeLists.txt | 2 +- ext-src/php_swoole_library.h | 8 +-- include/swoole_version.h | 6 +- package.xml | 60 +++++++++++++++++-- .../sockets/basic/bug46360.phpt | 3 +- .../sockets/basic/bug49341.phpt | 3 +- .../sockets/basic/bug63000.phpt | 3 +- .../sockets/basic/bug76839.phpt | 3 +- .../sockets/basic/ipv4loop.phpt | 3 +- .../sockets/basic/ipv6loop.phpt | 3 +- .../sockets/basic/mcast_ipv4_recv.phpt | 3 +- .../sockets/basic/mcast_ipv4_send.phpt | 3 +- .../sockets/basic/mcast_ipv4_send_error.phpt | 3 +- .../sockets/basic/mcast_ipv6_recv.phpt | 3 +- .../basic/mcast_ipv6_recv_limited.phpt | 3 +- .../sockets/basic/mcast_ipv6_send.phpt | 3 +- .../sockets/basic/socket_accept_failure.phpt | 4 +- .../sockets/basic/socket_bind.phpt | 3 +- .../sockets/basic/socket_clear_error.phpt | 3 +- .../sockets/basic/socket_connect_params.phpt | 3 +- .../basic/socket_create_listen-nobind.phpt | 4 +- .../sockets/basic/socket_create_listen.phpt | 3 +- .../basic/socket_create_listen_used.phpt | 4 +- .../sockets/basic/socket_create_pair.phpt | 3 +- .../sockets/basic/socket_getopt.phpt | 4 +- .../sockets/basic/socket_getpeername.phpt | 3 +- .../basic/socket_getpeername_ipv4loop.phpt | 3 +- .../basic/socket_getpeername_ipv6loop.phpt | 3 +- .../sockets/basic/socket_getsockname.phpt | 3 +- .../basic/socket_listen-wrongparams.phpt | 3 +- .../sockets/basic/socket_read_params.phpt | 3 +- .../basic/socket_select-wrongparams-2.phpt | 3 +- .../sockets/basic/socket_select.phpt | 3 +- .../sockets/basic/socket_select_error.phpt | 3 +- .../socket_sentto_recvfrom_ipv4_udp.phpt | 3 +- .../socket_sentto_recvfrom_ipv6_udp.phpt | 3 +- .../basic/socket_sentto_recvfrom_unix.phpt | 3 +- .../basic/socket_set_block-retval.phpt | 3 +- .../basic/socket_set_nonblock-retval.phpt | 3 +- .../sockets/basic/socket_set_nonblock.phpt | 3 +- .../basic/socket_set_option_bindtodevice.phpt | 3 +- ...socket_set_option_error_socket_option.phpt | 3 +- .../basic/socket_set_option_in6_pktinfo.phpt | 3 +- .../basic/socket_set_option_rcvtimeo.phpt | 3 +- .../basic/socket_set_option_seolinger.phpt | 3 +- .../basic/socket_set_option_sndtimeo.phpt | 3 +- .../sockets/basic/socket_setopt_basic.phpt | 3 +- .../sockets/basic/socket_shutdown.phpt | 3 +- .../sockets/basic/socket_strerror.phpt | 3 +- .../sockets/basic/unixloop.phpt | 3 +- 50 files changed, 154 insertions(+), 64 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index abe50062500..074afaddd54 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ PROJECT(libswoole) ENABLE_LANGUAGE(ASM) -set(SWOOLE_VERSION 4.8.2) +set(SWOOLE_VERSION 4.8.3) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -g") diff --git a/ext-src/php_swoole_library.h b/ext-src/php_swoole_library.h index 3eb5ea386d5..f2ad043e5b1 100644 --- a/ext-src/php_swoole_library.h +++ b/ext-src/php_swoole_library.h @@ -14,7 +14,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: 471e0a545312f42c2cfc3004e66d1ff3656bc9bf */ +/* $Id: acfe73e33caae4c5d12da7456a261b64b191f588 */ static const char* swoole_library_source_constants = "\n" @@ -295,8 +295,6 @@ static const char* swoole_library_source_core_constant = "\n" " public const OPTION_STACK_SIZE = 'stack_size';\n" "\n" - " public const OPTION_NAME_RESOLVER = 'name_resolver';\n" - "\n" " public const OPTION_DNS_CACHE_EXPIRE = 'dns_cache_expire';\n" "\n" " public const OPTION_DNS_CACHE_CAPACITY = 'dns_cache_capacity';\n" @@ -305,8 +303,6 @@ static const char* swoole_library_source_core_constant = "\n" " public const OPTION_RECONNECT = 'reconnect';\n" "\n" - " public const OPTION_MAX_RETRIES = 'max_retries';\n" - "\n" " public const OPTION_DEFER = 'defer';\n" "\n" " public const OPTION_LOWERCASE_HEADER = 'lowercase_header';\n" @@ -375,8 +371,6 @@ static const char* swoole_library_source_core_constant = "\n" " public const OPTION_MAX_QUEUED_BYTES = 'max_queued_bytes';\n" "\n" - " public const OPTION_WORKER_MAX_CONCURRENCY = 'worker_max_concurrency';\n" - "\n" " public const OPTION_SEND_TIMEOUT = 'send_timeout';\n" "\n" " public const OPTION_DISPATCH_MODE = 'dispatch_mode';\n" diff --git a/include/swoole_version.h b/include/swoole_version.h index fd637f7371c..635a21280f2 100644 --- a/include/swoole_version.h +++ b/include/swoole_version.h @@ -20,10 +20,10 @@ #define SWOOLE_MAJOR_VERSION 4 #define SWOOLE_MINOR_VERSION 8 -#define SWOOLE_RELEASE_VERSION 2 +#define SWOOLE_RELEASE_VERSION 3 #define SWOOLE_EXTRA_VERSION "" -#define SWOOLE_VERSION "4.8.2" -#define SWOOLE_VERSION_ID 40802 +#define SWOOLE_VERSION "4.8.3" +#define SWOOLE_VERSION_ID 40803 #define SWOOLE_API_VERSION_ID 0x202109a #define SWOOLE_BUG_REPORT \ diff --git a/package.xml b/package.xml index f11814fa684..6efbf083fd4 100644 --- a/package.xml +++ b/package.xml @@ -51,10 +51,10 @@ doubaokun@php.net yes - 2021-11-17 - + 2021-11-29 + - 4.8.2 + 4.8.3 4.0 @@ -531,6 +531,8 @@ + + @@ -733,7 +735,6 @@ - @@ -779,6 +780,7 @@ + @@ -1089,6 +1091,7 @@ + @@ -1141,6 +1144,7 @@ + @@ -1643,6 +1647,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/swoole_runtime/sockets/basic/bug46360.phpt b/tests/swoole_runtime/sockets/basic/bug46360.phpt index c4260fbc50e..cbc0e2f93f5 100644 --- a/tests/swoole_runtime/sockets/basic/bug46360.phpt +++ b/tests/swoole_runtime/sockets/basic/bug46360.phpt @@ -1,6 +1,7 @@ --TEST-- -Bug 46360 - TCP_NODELAY constant (sock_get_option, sock_set_option) +swoole_runtime/sockets/basic: Bug 46360 - TCP_NODELAY constant (sock_get_option, sock_set_option) --SKIPIF-- + --CREDITS-- Florian Anderiasch diff --git a/tests/swoole_runtime/sockets/basic/bug49341.phpt b/tests/swoole_runtime/sockets/basic/bug49341.phpt index 6dd497a15ef..4e12d5c2b0c 100644 --- a/tests/swoole_runtime/sockets/basic/bug49341.phpt +++ b/tests/swoole_runtime/sockets/basic/bug49341.phpt @@ -1,6 +1,7 @@ --TEST-- -Bug #49341: add SO_REUSEPORT support for socket_set_option() +swoole_runtime/sockets/basic: add SO_REUSEPORT support for socket_set_option() --SKIPIF-- + --FILE-- - #phparty7 - @phpsp - novatec/2015 - sao paulo - br --SKIPIF-- + --EXPECT-- - diff --git a/tests/swoole_runtime/sockets/basic/socket_create_listen.phpt b/tests/swoole_runtime/sockets/basic/socket_create_listen.phpt index 2c20619061e..ea772c5a269 100644 --- a/tests/swoole_runtime/sockets/basic/socket_create_listen.phpt +++ b/tests/swoole_runtime/sockets/basic/socket_create_listen.phpt @@ -1,6 +1,7 @@ --TEST-- -Test if socket binds on 31338 +swoole_runtime/sockets/basic: Test if socket binds on 31338 --SKIPIF-- + --EXPECT-- - diff --git a/tests/swoole_runtime/sockets/basic/socket_create_pair.phpt b/tests/swoole_runtime/sockets/basic/socket_create_pair.phpt index 8591a8330a7..88cf90558c9 100644 --- a/tests/swoole_runtime/sockets/basic/socket_create_pair.phpt +++ b/tests/swoole_runtime/sockets/basic/socket_create_pair.phpt @@ -1,6 +1,7 @@ --TEST-- -Test for socket_create_pair() +swoole_runtime/sockets/basic: Test for socket_create_pair() --SKIPIF-- + - #phparty7 - @phpsp - novatec/2015 - sao paulo - br --SKIPIF-- + - --EXPECT-- Setting IP_MULTICAST_TTL bool(true) diff --git a/tests/swoole_runtime/sockets/basic/socket_getpeername.phpt b/tests/swoole_runtime/sockets/basic/socket_getpeername.phpt index e292a964ae0..45c8f2531a8 100644 --- a/tests/swoole_runtime/sockets/basic/socket_getpeername.phpt +++ b/tests/swoole_runtime/sockets/basic/socket_getpeername.phpt @@ -1,9 +1,10 @@ --TEST-- -ext/sockets - socket_getpeername - basic test +swoole_runtime/sockets/basic: ext/sockets - socket_getpeername - basic test --CREDITS-- Florian Anderiasch fa@php.net --SKIPIF-- + User Group: PHPSP #PHPTestFestBrasil --SKIPIF-- + - #phparty7 - @phpsp - novatec/2015 - sao paulo - br --SKIPIF-- +