From 024b39a9548d5c37c1b889c921b95eb976812695 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 11 May 2026 11:36:03 +0530 Subject: [PATCH] Add brotli and zstd checks for Windows builds This fixes the build with recent builds of curl that have support for brotli and zstd encoding --- config.w32 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.w32 b/config.w32 index 3cc4069d..b34083f1 100644 --- a/config.w32 +++ b/config.w32 @@ -127,6 +127,9 @@ if (PHP_HTTP != "no") { CHECK_LIB("zlib.lib;zlib_a.lib", "http", PHP_HTTP) && ADD_EXTENSION_DEP("http", "raphf", true) && CHECK_LIB("winmm.lib", "http", PHP_HTTP)) { + CHECK_LIB("brotlidec-static.lib;brotlidec.lib", "http", PHP_HTTP); + CHECK_LIB("brotlicommon-static.lib;brotlicommon.lib", "http", PHP_HTTP); + CHECK_LIB("libzstd_a.lib;libzstd.lib", "http", PHP_HTTP); AC_DEFINE("PHP_HTTP_HAVE_LIBCURL", 1, "Have CURL library"); AC_DEFINE("PHP_HTTP_HAVE_SSL", 1, "Have SSL"); AC_DEFINE("PHP_HTTP_HAVE_LIBCURL_SSL", 1);