The help document of php misses two options
Open
Nobody has claimed this yet.
Bug
SAPI: cli
Status: Verified
- Dominant language
- C
- Stars
- 40.4k
- Forks
- 8.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 96
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the source that produces PHP's -h output and compare its option list with the C and q cases in sapi/cli/php_cli.c:701-703 and 737-739. Done means the help output documents both options and the relevant CLI help tests, if present, pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cli, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100