diff --git a/NEWS b/NEWS index 2bffa7d682196..3fc8c753ecee2 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 fc8d8d5ca2818..6394b5952768c 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: