Skip to content

Commit 70d6e54

Browse files
committed
Merge branch 'PHP-8.5'
* PHP-8.5: curl: add support for brotli and zstd on Windows
2 parents 5bdfb1c + d04b03b commit 70d6e54

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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)