Support CURLOPT_ECH
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C
- Sterne
- 40.4k
- Forks
- 8.2k
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 96
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit der Behandlung von libcurl-Optionen durch den PHP-cURL-Wrapper und der Dokumentation zu CURLOPT_ECH. Reproduziere anschließend das gemeldete Verhalten von CURLINFO_OS_ERRNO über die angegebenen cURL-Versionen hinweg. Ermittle, ob der Wrapper diese Option verfügbar machen kann, ohne die libcurl-Standardwerte zu ändern. Als erledigt gilt die Aufgabe, wenn das ECH-Verhalten wie angefordert konfigurierbar ist und das versionsabhängige Fehlerverhalten des Issues durch geeignete Tests abgedeckt ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- c, php
- Bereich
- networking
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100