From 75106277820bbd0b50233fcc6fcfd7c296f5fb18 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Fri, 5 Jun 2026 14:00:07 +0100 Subject: [PATCH] ext/curl: bump minimum libcurl version to 7.61.1 The minimum was raised to 7.61.0 in GH-13259 to track RHEL 8, but RHEL 8 and its rebuilds (Rocky, Alma, EL 8) ship libcurl 7.61.1 and have since the original 8.0 GA in May 2019; the plain 7.61.0 point release is not carried by any supported distribution. This aligns the floor with the baseline it already targets. 7.61.1 also contains the upstream fix (curl/curl@d6cf930) for libcurl returning success without a response when an upload rewind was required but could not be performed; from 7.61.1 that case is reported as CURLE_SEND_FAIL_REWIND instead. --- NEWS | 3 +++ UPGRADING | 3 +++ ext/curl/config.m4 | 2 +- ext/curl/sync-constants.php | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 496b61ef81b1..d46e13df4426 100644 --- a/NEWS +++ b/NEWS @@ -25,6 +25,9 @@ PHP NEWS - BCMath: . Added NUL-byte validation to BCMath functions. (jorgsowa) +- Curl: + . Bumped required libcurl version to 7.61.1. (GrahamCampbell) + - Date: . Update timelib to 2022.16. (Derick) diff --git a/UPGRADING b/UPGRADING index 679fc0b552d9..247fd9575496 100644 --- a/UPGRADING +++ b/UPGRADING @@ -357,6 +357,9 @@ PHP 8.6 UPGRADE NOTES 9. Other Changes to Extensions ======================================== +- Curl: + . The Curl extension now requires at least libcurl 7.61.1. + - Hash: . The bundled version of xxHash was upgraded to 0.8.2. diff --git a/ext/curl/config.m4 b/ext/curl/config.m4 index bbb41fdde322..04c8b5f815b0 100644 --- a/ext/curl/config.m4 +++ b/ext/curl/config.m4 @@ -4,7 +4,7 @@ PHP_ARG_WITH([curl], [Include cURL support])]) if test "$PHP_CURL" != "no"; then - PKG_CHECK_MODULES([CURL], [libcurl >= 7.61.0]) + PKG_CHECK_MODULES([CURL], [libcurl >= 7.61.1]) PKG_CHECK_VAR([CURL_FEATURES], [libcurl], [supported_features]) PHP_EVAL_LIBLINE([$CURL_LIBS], [CURL_SHARED_LIBADD]) diff --git a/ext/curl/sync-constants.php b/ext/curl/sync-constants.php index e24c773a5209..1522b038ea4d 100755 --- a/ext/curl/sync-constants.php +++ b/ext/curl/sync-constants.php @@ -12,7 +12,7 @@ const SOURCE_FILE = __DIR__ . '/curl_arginfo.h'; -const MIN_SUPPORTED_CURL_VERSION = '7.61.0'; +const MIN_SUPPORTED_CURL_VERSION = '7.61.1'; const IGNORED_CURL_CONSTANTS = [ 'CURLOPT_PROGRESSDATA',