From fde34bc1e89e34fe3eb0285e2ab6ba3d60b52773 Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Sun, 1 Sep 2024 23:55:34 +0700 Subject: [PATCH] ext/curl: Update `UPGRADING` and `NEWS` for GH-13255 (#15668) [ci skip] --- NEWS | 3 +++ UPGRADING | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 2bffa7d6821..3fc8c753ece 100644 --- a/NEWS +++ b/NEWS @@ -53,6 +53,9 @@ PHP NEWS . Implemented asymmetric visibility for properties. (ilutov) - Curl: + . Added CURLOPT_PREREQFUNCTION Curl option to set a custom callback + after the connection is established, but before the request is + performed. (Ayesh Karunaratne) . Added CURLOPT_SERVER_RESPONSE_TIMEOUT, which was formerly known as CURLOPT_FTP_RESPONSE_TIMEOUT. (Ayesh Karunaratne) diff --git a/UPGRADING b/UPGRADING index fc8d8d5ca28..6394b595276 100644 --- a/UPGRADING +++ b/UPGRADING @@ -292,6 +292,10 @@ PHP 8.4 UPGRADE NOTES supported (true) or not (false). . Added CURL_HTTP_VERSION_3 and CURL_HTTP_VERSION_3ONLY constants (available since libcurl 7.66 and 7.88) as available options for CURLOPT_HTTP_VERSION. + . Added CURLOPT_PREREQFUNCTION as a Curl option that accepts a callback to + be called after the connection is made, but before the request is sent. + The callback must return either CURL_PREREQFUNC_OK or CURL_PREREQFUNC_ABORT + to allow or abort the request. . Added CURLOPT_SERVER_RESPONSE_TIMEOUT, which was formerly known as CURLOPT_FTP_RESPONSE_TIMEOUT. Both constants hold the same value. @@ -997,7 +1001,10 @@ PHP 8.4 UPGRADE NOTES - Curl: . CURL_HTTP_VERSION_3. . CURL_HTTP_VERSION_3ONLY. - . CURL_TCP_KEEPCNT + . CURL_TCP_KEEPCNT. + . CURLOPT_PREREQFUNCTION. + . CURL_PREREQFUNC_OK. + . CURL_PREREQFUNC_ABORT. . CURLOPT_SERVER_RESPONSE_TIMEOUT. - Intl: