[php-src] master: Merge branch 'PHP-8.5' into PHP-8.6

From: Date: Thu, 22 Oct 2026 16:53:58 +0000
Subject: [php-src] master: Merge branch 'PHP-8.5' into PHP-8.6
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-142589@lists.php.net to get a copy of this message
Author: Shivam Mathur (shivammathur) Date: 2026-10-22T22:19:51+05:30 Commit: https://github.com/php/php-src/commit/9e769f0a41b9b14a51e4d6759d95516c1f44c96f Raw diff: https://github.com/php/php-src/commit/9e769f0a41b9b14a51e4d6759d95516c1f44c96f.diff Merge branch 'PHP-8.5' into PHP-8.6 * PHP-8.5: Fix GH-24533: Accept z.lib from zlib 1.3.2 CMake builds on Windows (#24539) Changed paths: M NEWS M ext/zip/config.w32 M ext/zlib/config.w32 M win32/build/confutils.js Diff: diff --git a/NEWS b/NEWS index 4f69e30d6f12..ec219f117b2b 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,10 @@ PHP NEWS . Fixed bug GH-24508 (HTTP wrapper leaks the dechunk filter when header parsing fails after Transfer-Encoding). (bercedev) +- Zlib: + . Fixed bug GH-24533 (zlib.lib could not be found because zlib 1.3.2 + CMake build does not emit it). (Lazizbek Ergashev) + 21 Oct 2026, PHP 8.6.0RC4 - Core: diff --git a/ext/zip/config.w32 b/ext/zip/config.w32 index 8dd22c7761cf..44e3628270c8 100644 --- a/ext/zip/config.w32 +++ b/ext/zip/config.w32 @@ -6,7 +6,7 @@ if (PHP_ZIP != "no") { if (CHECK_HEADER("zip.h", "CFLAGS_ZIP", PHP_PHP_BUILD + "\\include;" + PHP_EXTRA_INCLUDES) && CHECK_HEADER("zipconf.h", "CFLAGS_ZIP", PHP_PHP_BUILD + "\\lib\\libzip\\include;" + PHP_EXTRA_LIBS + "\\libzip\\include;" + PHP_ZIP) && (PHP_ZIP_SHARED && CHECK_LIB("libzip.lib", "zip", PHP_ZIP) || - CHECK_LIB("libzip_a.lib", "zip", PHP_ZIP) && CHECK_LIB("libbz2_a.lib", "zip", PHP_ZIP) && CHECK_LIB("zlib_a.lib", "zip", PHP_ZIP) && CHECK_LIB("liblzma_a.lib", "zip", PHP_ZIP)) + CHECK_LIB("libzip_a.lib", "zip", PHP_ZIP) && CHECK_LIB("libbz2_a.lib", "zip", PHP_ZIP) && CHECK_LIB("zlib_a.lib;zs.lib", "zip", PHP_ZIP) && CHECK_LIB("liblzma_a.lib", "zip", PHP_ZIP)) ) { EXTENSION('zip', 'php_zip.c zip_source.c zip_stream.c'); ADD_EXTENSION_DEP('zip', 'pcre'); diff --git a/ext/zlib/config.w32 b/ext/zlib/config.w32 index 520ab11cd84d..8048d520619c 100644 --- a/ext/zlib/config.w32 +++ b/ext/zlib/config.w32 @@ -3,7 +3,7 @@ ARG_ENABLE("zlib", "ZLIB support", "yes"); if (PHP_ZLIB == "yes") { - if (CHECK_LIB("zlib_a.lib;zlib.lib", "zlib", PHP_ZLIB) && + if (CHECK_LIB("zlib_a.lib;zlib.lib;zs.lib;z.lib", "zlib", PHP_ZLIB) && CHECK_HEADER("zlib.h", "CFLAGS", "..\\zlib;" + php_usual_include_suspects)) { EXTENSION("zlib", "zlib.c zlib_fopen_wrapper.c zlib_filter.c", PHP_ZLIB_SHARED, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1"); diff --git a/win32/build/confutils.js b/win32/build/confutils.js index 7d9297e8c2d6..e3dbe97e3670 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -3732,7 +3732,7 @@ function ADD_MAKEFILE_FRAGMENT(src_file) function SETUP_ZLIB_LIB(target, path_to_check) { - return (PHP_ZLIB != "no" && !PHP_ZLIB_SHARED) || CHECK_LIB("zlib_a.lib;zlib.lib", target, path_to_check); + return (PHP_ZLIB != "no" && !PHP_ZLIB_SHARED) || CHECK_LIB("zlib_a.lib;zlib.lib;zs.lib;z.lib", target, path_to_check); } function SETUP_OPENSSL(target, path_to_check, common_name, use_env, add_dir_part)

« previous php.cvs (#142589) next »