From 3f6a5c8a76764dcea9872fee5beed8fa7d1d5bcd Mon Sep 17 00:00:00 2001 From: Volker Dusch Date: Tue, 16 Dec 2025 16:59:07 +0100 Subject: [PATCH 1/2] Update versions for PHP 8.5.1 --- Zend/zend.h | 2 +- configure.ac | 2 +- main/php_version.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Zend/zend.h b/Zend/zend.h index e2e500022a85e..08ee5f89d4619 100644 --- a/Zend/zend.h +++ b/Zend/zend.h @@ -20,7 +20,7 @@ #ifndef ZEND_H #define ZEND_H -#define ZEND_VERSION "4.5.1-dev" +#define ZEND_VERSION "4.5.1" #define ZEND_ENGINE_3 diff --git a/configure.ac b/configure.ac index f81d8cf609054..49f0fd191a205 100644 --- a/configure.ac +++ b/configure.ac @@ -17,7 +17,7 @@ dnl Basic autoconf initialization, generation of config.nice. dnl ---------------------------------------------------------------------------- AC_PREREQ([2.68]) -AC_INIT([PHP],[8.5.1-dev],[https://github.com/php/php-src/issues],[php],[https://www.php.net]) +AC_INIT([PHP],[8.5.1],[https://github.com/php/php-src/issues],[php],[https://www.php.net]) AC_CONFIG_SRCDIR([main/php_version.h]) AC_CONFIG_AUX_DIR([build]) AC_PRESERVE_HELP_ORDER diff --git a/main/php_version.h b/main/php_version.h index 87cf375f2e0f9..774a31a7d8f53 100644 --- a/main/php_version.h +++ b/main/php_version.h @@ -3,6 +3,6 @@ #define PHP_MAJOR_VERSION 8 #define PHP_MINOR_VERSION 5 #define PHP_RELEASE_VERSION 1 -#define PHP_EXTRA_VERSION "-dev" -#define PHP_VERSION "8.5.1-dev" +#define PHP_EXTRA_VERSION "" +#define PHP_VERSION "8.5.1" #define PHP_VERSION_ID 80501 From 86c96b4befc5569be556a00d9df3cd834ded06d0 Mon Sep 17 00:00:00 2001 From: Edmond <1571649+edmonddantes@users.noreply.github.com> Date: Wed, 14 Jan 2026 19:58:23 +0000 Subject: [PATCH 2/2] Fix WSA protocol info cleanup in request shutdown - Add zend_hash_clean() in PHP_RSHUTDOWN_FUNCTION to cleanup wsa_info - Ensures all WSA HANDLE resources are properly closed at end of request - Prevents resource leak when socket_wsaprotocol_info_release() is not called --- ext/sockets/sockets.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index 6fb75e2db1db3..77cab33b800e3 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets.c @@ -546,6 +546,10 @@ static PHP_RSHUTDOWN_FUNCTION(sockets) SOCKETS_G(strerror_buf) = NULL; } +#ifdef PHP_WIN32 + zend_hash_clean(&SOCKETS_G(wsa_info)); +#endif + return SUCCESS; } /* }}} */