From 826c2e6d807570a97837fd79992c46e8a66108d7 Mon Sep 17 00:00:00 2001 From: Ayesh Karunaratne Date: Thu, 14 Nov 2024 22:55:08 +0700 Subject: [PATCH] [PHP 8.4] Curl: Add `CURLOPT_DEBUGFUNCTION` Commit: php/php-src#15674 PHP.Watch: [PHP 8.4: Curl: New `CURLOPT_DEBUGFUNCTION` option](https://php.watch/versions/8.4/CURLOPT_DEBUGFUNCTION) --- reference/curl/constants_curl_setopt.xml | 127 +++++++++++++++++++++++ 1 file changed, 127 insertions(+) diff --git a/reference/curl/constants_curl_setopt.xml b/reference/curl/constants_curl_setopt.xml index 37c751a590ed..263eb19d270c 100644 --- a/reference/curl/constants_curl_setopt.xml +++ b/reference/curl/constants_curl_setopt.xml @@ -4534,4 +4534,131 @@ + + + CURLOPT_DEBUGFUNCTION + (int) + + + + Available as of PHP 8.4.0. + This option requires CURLOPT_VERBOSE option enabled. + A callable to replace the standard cURL verbose output. + This callback gets called during various stages of the request with verbose debug information. + The callback should match the following signature: + + voidcallback + CurlHandlecurlHandle + inttype + stringdata + + + + curlHandle + + + The cURL handle. + + + + + type + + + One of the following constants indicating the type of the data value: + + + + + CURLINFO_TEXT + (int) + + + + Informational text. + + + + + + CURLINFO_HEADER_IN + (int) + + + + Header (or header-like) data received from the peer. + + + + + + CURLINFO_HEADER_OUT + (int) + + + + Header (or header-like) data sent to the peer. + + + + + + CURLINFO_DATA_IN + (int) + + + + Unprocessed protocol data received from the peer. + Even if the data is encoded or compressed, it is not provided decoded nor decompressed to this callback. + + + + + + CURLINFO_DATA_OUT + (int) + + + + Protocol data sent to the peer. + + + + + + CURLINFO_SSL_DATA_IN + (int) + + + + SSL/TLS (binary) data received from the peer. + + + + + + CURLINFO_SSL_DATA_OUT + (int) + + + + SSL/TLS (binary) data sent to the peer. + + + + + + + + data + + + Verbose debug data of the type indicate by the type parameter. + + + + + + +