Skip to content

Commit d04b03b

Browse files
committed
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4: curl: add support for brotli and zstd on Windows
2 parents 216edef + d935e3a commit d04b03b

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ PHP NEWS
1111
. Fixed bug GH-21478 (Forward property operations to real instance for
1212
initialized lazy proxies). (iliaal)
1313

14+
- Curl:
15+
. Add support for brotli and zstd on Windows. (Shivam Mathur)
16+
1417
- Iconv:
1518
. Fixed bug GH-17399 (iconv memory leak on bailout). (iliaal)
1619

ext/curl/config.w32

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ if (PHP_CURL != "no") {
1212
SETUP_ZLIB_LIB("curl", PHP_CURL) &&
1313
(CHECK_LIB("normaliz.lib", "curl", PHP_CURL) &&
1414
CHECK_LIB("libssh2.lib", "curl", PHP_CURL) &&
15-
CHECK_LIB("nghttp2.lib", "curl", PHP_CURL))
15+
CHECK_LIB("nghttp2.lib", "curl", PHP_CURL) &&
16+
CHECK_LIB("brotlidec.lib", "curl", PHP_CURL) &&
17+
CHECK_LIB("brotlicommon.lib", "curl", PHP_CURL) &&
18+
CHECK_LIB("libzstd.lib", "curl", PHP_CURL))
1619
) {
1720
EXTENSION("curl", "interface.c multi.c share.c curl_file.c");
1821
AC_DEFINE('HAVE_CURL', 1, "Define to 1 if the PHP extension 'curl' is available.");

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)