Skip to content

Commit 0c6fc66

Browse files
shivammathuriluuu1994
authored andcommitted
curl: add support for brotli and zstd on Windows
Fixes GH-21599 Fixes winlibs/cURL#26 Closes GH-21662
1 parent f6ddc37 commit 0c6fc66

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.2.31
44

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

68
18 Dec 2025, PHP 8.2.30
79

ext/curl/config.w32

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ if (PHP_CURL != "no") {
2424
(ver_num <= parseInt("0x073b00") || ver_num > parseInt("0x073b00") &&
2525
CHECK_LIB("normaliz.lib", "curl", PHP_CURL) &&
2626
CHECK_LIB("libssh2.lib", "curl", PHP_CURL) &&
27-
CHECK_LIB("nghttp2.lib", "curl", PHP_CURL))
27+
CHECK_LIB("nghttp2.lib", "curl", PHP_CURL) &&
28+
CHECK_LIB("brotlidec.lib", "curl", PHP_CURL) &&
29+
CHECK_LIB("brotlicommon.lib", "curl", PHP_CURL) &&
30+
CHECK_LIB("libzstd.lib", "curl", PHP_CURL))
2831
) {
2932
EXTENSION("curl", "interface.c multi.c share.c curl_file.c");
3033
AC_DEFINE('HAVE_CURL', 1, 'Have cURL library');

ext/curl/tests/check_win_config.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ UNIX_SOCKETS => %r(Yes|No)%r
4747
PSL => No
4848
HTTPS_PROXY => Yes
4949
MULTI_SSL => %s
50-
BROTLI => %s
50+
BROTLI => Yes
5151
ALTSVC => Yes
5252
HTTP3 => No
5353
UNICODE => No
54-
ZSTD => No
54+
ZSTD => Yes
5555
HSTS => Yes
5656
GSASL => No
5757
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

0 commit comments

Comments
 (0)