The help document of php misses two options
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C
- Sterne
- 40.4k
- Forks
- 8.1k
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 96
Beschreibung
The "-h" option of php misses the option "C", "q".
- For the option "C", the following code appears during option parsing in sapi/cli/php_cli.c:701-703 for version 8.0.23.
case 'C': /* don't chdir to the script directory */
/* This is default so NOP */
break;
- For the option "q", the following code appears during option parsing in sapi/cli/php_cli.c:737-739 for version 8.0.23.
case 'q': /* do not generate HTTP headers */
/* This is default so NOP */
break;
Although it has no actual function, it is still possible forget to modify the help document after adding the function in a subsequent update.
But they do not appear in the document provided by "-h".
It may prevent users from using the relevant function.
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 damit, die Quelle zu finden, die die Ausgabe von PHP für -h erzeugt, und vergleiche deren Optionsliste mit den Fällen C und q in sapi/cli/php_cli.c:701-703 und 737-739. Als erledigt gilt die Aufgabe, wenn die Hilfeausgabe beide Optionen dokumentiert und die relevanten CLI-Hilfetests, sofern vorhanden, erfolgreich sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- c
- Bereich
- cli, documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 45/100