Commit 0c6fc66848a for php.net

commit 0c6fc66848a9810fdbef3749cb4b3ed1d79685fd
Author: Shivam Mathur <shivam_jpr@hotmail.com>
Date:   Tue Apr 7 12:34:21 2026 +0530

    curl: add support for brotli and zstd on Windows

    Fixes GH-21599
    Fixes winlibs/cURL#26
    Closes GH-21662

diff --git a/NEWS b/NEWS
index 21a709ab421..aa91603d872 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@ PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? ??? ????, PHP 8.2.31

+- Curl:
+  . Add support for brotli and zstd on Windows. (Shivam Mathur)

 18 Dec 2025, PHP 8.2.30

diff --git a/ext/curl/config.w32 b/ext/curl/config.w32
index f722c5faca5..eda7604bc11 100644
--- a/ext/curl/config.w32
+++ b/ext/curl/config.w32
@@ -24,7 +24,10 @@ if (PHP_CURL != "no") {
 		(ver_num <= parseInt("0x073b00") || ver_num > parseInt("0x073b00") &&
 			CHECK_LIB("normaliz.lib", "curl", PHP_CURL) &&
 			CHECK_LIB("libssh2.lib", "curl", PHP_CURL) &&
-			CHECK_LIB("nghttp2.lib", "curl", PHP_CURL))
+			CHECK_LIB("nghttp2.lib", "curl", PHP_CURL) &&
+			CHECK_LIB("brotlidec.lib", "curl", PHP_CURL) &&
+			CHECK_LIB("brotlicommon.lib", "curl", PHP_CURL) &&
+			CHECK_LIB("libzstd.lib", "curl", PHP_CURL))
 		) {
 		EXTENSION("curl", "interface.c multi.c share.c curl_file.c");
 		AC_DEFINE('HAVE_CURL', 1, 'Have cURL library');
diff --git a/ext/curl/tests/check_win_config.phpt b/ext/curl/tests/check_win_config.phpt
index fc29e372819..56ebe36312e 100644
--- a/ext/curl/tests/check_win_config.phpt
+++ b/ext/curl/tests/check_win_config.phpt
@@ -47,11 +47,11 @@
 PSL => No
 HTTPS_PROXY => Yes
 MULTI_SSL => %s
-BROTLI => %s
+BROTLI => Yes
 ALTSVC => Yes
 HTTP3 => No
 UNICODE => No
-ZSTD => No
+ZSTD => Yes
 HSTS => Yes
 GSASL => No
 Protocols => dict, file, ftp, ftps, gopher, %r(gophers, )?%rhttp, https, imap, imaps, ldap, ldaps, %r(mqtt, )?%rpop3, pop3s, rtsp, scp, sftp, smb, smbs, smtp, smtps, telnet, tftp%r(, ws)?(, wss)?%r