From ae0aa7adc18aaa09913704d93b3bf5d85a49d7a2 Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Sat, 31 Aug 2024 04:08:20 +0700 Subject: [PATCH] ext/curl: Update `UPGRADING` and `NEWS` for GH-13255 --- NEWS | 5 +++++ UPGRADING | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 9aef6112ad1fc..f58469a57a2c0 100644 --- a/NEWS +++ b/NEWS @@ -32,6 +32,11 @@ PHP NEWS EAI_SYSTEM not found). (nielsdos) . 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) + - Date: . Fixed bug GH-13773 (DatePeriod not taking into account microseconds for end date). (Mark Bennewitz, Derick) diff --git a/UPGRADING b/UPGRADING index 048049b96642d..d367a4e9f500b 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. - Date: . Added static methods @@ -995,7 +999,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. - Intl: . The IntlDateFormatter class exposes now the new PATTERN constant