Support CURLOPT_ECH
Nessuno ha ancora preso questa issue.
- Lingua principale
- C
- Stelle
- 40.4k
- Fork
- 8.1k
- Merge medio
- 2g 13h
- PR unite (30g)
- 96
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando la gestione delle opzioni libcurl da parte del wrapper PHP cURL e la documentazione di CURLOPT_ECH, quindi riproduci il comportamento segnalato di CURLINFO_OS_ERRNO nelle versioni di cURL indicate. Determina se il wrapper può esporre questa opzione senza modificare i valori predefiniti di libcurl. Il lavoro è completato quando il comportamento di ECH è configurabile come richiesto e il comportamento degli errori dipendente dalla versione riportato nell'issue è coperto da test appropriati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- c, php
- Ambito
- networking
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100