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. + + + + + + +