Skip to content

Commit d935e3a

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: curl: add support for brotli and zstd on Windows
2 parents 43a4f91 + b63fe81 commit d935e3a

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
@@ -8,6 +8,9 @@ PHP NEWS
88
. Fixed bug GH-21478 (Forward property operations to real instance for
99
initialized lazy proxies). (iliaal)
1010

11+
- Curl:
12+
. Add support for brotli and zstd on Windows. (Shivam Mathur)
13+
1114
- DOM:
1215
. Fixed bug GH-21566 (Dom\XMLDocument::C14N() emits duplicate xmlns
1316
declarations after setAttributeNS()). (David Carlier)

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
!isNaN(ver_num) &&
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, "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)