Lines Matching refs:CURLOPT_DEBUGFUNCTION

2 Curl option CURLOPT_DEBUGFUNCTION
19 var_dump(CURLOPT_DEBUGFUNCTION);
28 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, function() {
47 echo "\n===Testing with CURLOPT_DEBUGFUNCTION happy path===\n";
52 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, function(CurlHandle $curlHandle, int $type, string…
80 echo "\n===Test attempting to set CURLINFO_HEADER_OUT while CURLOPT_DEBUGFUNCTION in effect throws=…
83 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, null));
85 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, 'strlen'));
99 var_dump(curl_setopt($chCopy, CURLOPT_DEBUGFUNCTION, null));
102 echo "\n===Test attempting to set CURLOPT_DEBUGFUNCTION while CURLINFO_HEADER_OUT does not throw===…
105 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, null));
107 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, 'strlen'));
109 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, 'strlen'));
110 var_dump(curl_setopt($chCopy, CURLOPT_DEBUGFUNCTION, null));
113 echo "\n===Test CURLOPT_DEBUGFUNCTION=null works===\n";
115 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, null));
119 echo "\n===Test CURLINFO_HEADER_OUT works while CURLOPT_DEBUGFUNCTION in effect===\n";
125 var_dump(curl_setopt($ch, CURLOPT_DEBUGFUNCTION, static function() {}));
130 echo "\n===Test CURLOPT_DEBUGFUNCTION can throw within callback===\n";
132 curl_setopt($ch, CURLOPT_DEBUGFUNCTION, static function() {
145 echo "\n===Test CURLOPT_DEBUGFUNCTION on shared handles work===\n";
150 CURLOPT_DEBUGFUNCTION => static function() use (&$called) {
174 ===Testing with CURLOPT_DEBUGFUNCTION happy path===
181 ===Test attempting to set CURLINFO_HEADER_OUT while CURLOPT_DEBUGFUNCTION in effect throws===
186 string(87) "CURLINFO_HEADER_OUT option must not be set when the CURLOPT_DEBUGFUNCTION option is set"
187 string(87) "CURLINFO_HEADER_OUT option must not be set when the CURLOPT_DEBUGFUNCTION option is set"
191 ===Test attempting to set CURLOPT_DEBUGFUNCTION while CURLINFO_HEADER_OUT does not throw===
200 ===Test CURLOPT_DEBUGFUNCTION=null works===
204 ===Test CURLINFO_HEADER_OUT works while CURLOPT_DEBUGFUNCTION in effect===
217 ===Test CURLOPT_DEBUGFUNCTION can throw within callback===
226 ===Test CURLOPT_DEBUGFUNCTION on shared handles work===