From b72d22ad65dbcc0a5cf75b4d6a483b73c9f32157 Mon Sep 17 00:00:00 2001
From: MARiA so cute <33935209+NathanFreeman@users.noreply.github.com>
Date: Fri, 29 Sep 2023 13:30:38 +0800
Subject: [PATCH] release swoole 5.1.0 (#5157)
---
CMakeLists.txt | 2 +-
config.m4 | 16 +++
include/swoole_version.h | 4 +-
package.xml | 225 ++++++++++++++++++++++++++++++++-------
4 files changed, 207 insertions(+), 40 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ed3f4a889ea..2d8d76cd588 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,7 @@
PROJECT(libswoole)
ENABLE_LANGUAGE(ASM)
-set(SWOOLE_VERSION 5.1.0-dev)
+set(SWOOLE_VERSION 5.1.0)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -g")
diff --git a/config.m4 b/config.m4
index d281567ffd8..a254494f1c4 100644
--- a/config.m4
+++ b/config.m4
@@ -1321,4 +1321,20 @@ EOF
if test "$PHP_NGHTTP2_DIR" = "no"; then
PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/nghttp2)
fi
+ if test "$PHP_SWOOLE_PGSQL" != "no"; then
+ PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php80/pdo_pgsql)
+ PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php81/pdo_pgsql)
+ fi
+ if test "$PHP_SWOOLE_ODBC" != "no"; then
+ PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php80/pdo_odbc)
+ PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php81/pdo_odbc)
+ fi
+ if test "$PHP_SWOOLE_ORACLE" != "no"; then
+ PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php80/pdo_oci)
+ PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php81/pdo_oci)
+ fi
+ if test "$PHP_SWOOLE_SQLITE" != "no"; then
+ PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php80/pdo_sqlite)
+ PHP_ADD_BUILD_DIR($ext_builddir/thirdparty/php81/pdo_sqlite)
+ fi
fi
diff --git a/include/swoole_version.h b/include/swoole_version.h
index 10b5651db0a..55b04c3d5c3 100644
--- a/include/swoole_version.h
+++ b/include/swoole_version.h
@@ -21,8 +21,8 @@
#define SWOOLE_MAJOR_VERSION 5
#define SWOOLE_MINOR_VERSION 1
#define SWOOLE_RELEASE_VERSION 0
-#define SWOOLE_EXTRA_VERSION "dev"
-#define SWOOLE_VERSION "5.1.0-dev"
+#define SWOOLE_EXTRA_VERSION ""
+#define SWOOLE_VERSION "5.1.0"
#define SWOOLE_VERSION_ID 50100
#define SWOOLE_API_VERSION_ID 0x202208a
diff --git a/package.xml b/package.xml
index d472421f91c..68663a09bde 100644
--- a/package.xml
+++ b/package.xml
@@ -51,10 +51,10 @@
doubaokun@php.net
yes
- 2023-04-26
-
+ 2023-09-29
+
- 5.0.3
+ 5.1.0
5.0
@@ -63,14 +63,26 @@
Apache2.0
- - Added --with-nghttp2_dir option, Use the system nghttp2 library
- - Added unit character supports for byte length or size related options
- - Fixed memory leak Server task/pipemessage/finish event callback
- - Added Process\Pool::sendMessage()
- - Added support for max-age to Http\Response:cookie() method
- - No longer thrown error log when http header conflicts
- - No longer thrown error log when the server connection is closed
- - Fixed memory leak caused by Server send_yield
+ - Support pdo_pgsql coroutine hook
+ - Support pdo_odbc coroutine hook
+ - Support pdo_oci coroutine hook
+ - Support pdo_sqlite coroutine hook
+ - Add configuration for PDO connection pools for pdo_pgsql, pdo_odbc, pdo_oci, pdo_sqlite
+ - Improved performance of Http\Server, can increase up to 60% in extreme cases
+ - Fixed the memory leak caused by each request of the WebSocket coroutine client
+ - Fixed the issue where graceful shutdown of the HTTP coroutine server was not causing the client to exit
+ - Fixed the issue where adding the --enable-thread-context option during compilation was causing Process::signal() to not work
+ - Fixed the issue where the connection count was being calculated incorrectly when a process exited abnormally in SWOOLE_BASE mode
+ - Fixed the incorrect signature of the stream_select() function
+ - Fixed the case sensitivity issue with the MIME information in files
+ - Fixed the spelling mistake in Http2\Request::$usePipelineRead, which was causing a warning to be thrown in PHP 8.2 environment
+ - Fixed the memory leak issue in SWOOLE_BASE mode
+ - Fixed the memory leak issue caused by setting the expiration time of a cookie in Http\Response::cookie()
+ - Fixed the connection leak issue in SWOOLE_BASE mode
+ - Fixed the function signature issue of php_url_encode in Swoole under PHP 8.3
+ - Fixed the issue with unit testing options
+ - Optimized and refactored the code
+ - Fix compatibility with PHP 8.3
@@ -215,6 +227,7 @@
+
@@ -301,6 +314,7 @@
+
@@ -373,10 +387,13 @@
+
+
+
@@ -496,9 +513,13 @@
+
+
+
+
@@ -577,6 +598,9 @@
+
+
+
@@ -586,6 +610,7 @@
+
@@ -653,6 +678,7 @@
+
@@ -730,7 +756,6 @@
-
@@ -1134,6 +1159,7 @@
+
@@ -1237,6 +1263,7 @@
+
@@ -1290,6 +1317,7 @@
+
@@ -1395,6 +1423,8 @@
+
+
@@ -1407,6 +1437,9 @@
+
+
+
@@ -1446,6 +1479,8 @@
+
+
@@ -1606,6 +1641,115 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1739,6 +1883,7 @@
+
@@ -1960,7 +2105,6 @@
-
@@ -2108,6 +2252,7 @@
+
@@ -2242,48 +2387,24 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -2372,6 +2493,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+