Open
Description
Description
Not sure, if this is really a bug. It is more like a question if this is a bug
The following code:
<?php
$curl = curl_init('https://php.net');
curl_exec($curl);
$error = curl_getinfo($curl, CURLINFO_OS_ERRNO);
echo $error.' "'.curl_strerror($error).'"'.PHP_EOL;
curl_close($curl);
Resulted in this output (with cURL >=8.10):
101 "ECH attempted but failed"
But I expected this output instead (with cURL <8.10):
0 "No error"
Seems like a cURL issue and not an issue with the wrapper, but cURL provides the CURLOPT_ECH
to configure it, which the PHP wrapper does not. So I am a bit stuck. Do I have to treat errors differently depending on the cURL version I use or is there any possibility to configure the behavior here?
The CURLOPT_ECH
documentation (see above) says the default setting is off, which does not seem to be true here. Is this an issue with cURL or with the wrapper changing the default somehow?
PHP Version
PHP 8.3.12
Operating System
No response