[php-src] master: ext/curl: Cleanup `config.w32` to remove superfluous checks and outdated comments (#13684)
| From: | Ayesh Karunaratne via GitHub | Date: | Tue, 12 Mar 2024 17:09:56 +0000 |
| Subject: | [php-src] master: ext/curl: Cleanup `config.w32` to remove superfluous checks and outdated comments (#13684) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-127710@lists.php.net to get a copy of this message | ||
Author: Ayesh Karunaratne (Ayesh)
Committer: GitHub (web-flow)
Pusher: petk
Date: 2024-03-12T17:56:07+01:00
Commit: https://github.com/php/php-src/commit/94a12d5b315aa73a24b96cfebb4fd38b8e9b800e
Raw diff: https://github.com/php/php-src/commit/94a12d5b315aa73a24b96cfebb4fd38b8e9b800e.diff
ext/curl: Cleanup
config.w32 to remove superfluous checks and outdated comments
(#13684)
- Remove a check for an always-true curl version check
- Remove a TODO comment for curl_version_info check that should be always available
since libcurl 7.10
Changed paths:
M ext/curl/config.w32
Diff:
diff --git a/ext/curl/config.w32 b/ext/curl/config.w32
index f722c5faca5e3..e2d465b30cbcd 100644
--- a/ext/curl/config.w32
+++ b/ext/curl/config.w32
@@ -21,16 +21,14 @@ if (PHP_CURL != "no") {
(((PHP_ZLIB=="no") && (CHECK_LIB("zlib_a.lib;zlib.lib",
"curl", PHP_CURL))) ||
(PHP_ZLIB_SHARED && CHECK_LIB("zlib.lib", "curl", PHP_CURL)) ||
(PHP_ZLIB == "yes" && (!PHP_ZLIB_SHARED))) &&
!isNaN(ver_num) &&
- (ver_num <= parseInt("0x073b00") || ver_num > parseInt("0x073b00")
&&
- CHECK_LIB("normaliz.lib", "curl", PHP_CURL) &&
- CHECK_LIB("libssh2.lib", "curl", PHP_CURL) &&
- CHECK_LIB("nghttp2.lib", "curl", PHP_CURL))
+ (CHECK_LIB("normaliz.lib", "curl", PHP_CURL) &&
+ CHECK_LIB("libssh2.lib", "curl", PHP_CURL) &&
+ CHECK_LIB("nghttp2.lib", "curl", PHP_CURL))
) {
EXTENSION("curl", "interface.c multi.c share.c curl_file.c");
AC_DEFINE('HAVE_CURL', 1, 'Have cURL library');
ADD_FLAG("CFLAGS_CURL", "/D CURL_STATICLIB /D PHP_CURL_EXPORTS=1");
PHP_INSTALL_HEADERS("ext/curl", "php_curl.h");
- // TODO: check for curl_version_info
} else {
WARNING("curl not enabled; libraries and headers not found");
}