php / php/php-src

The help document of php misses two options

未关闭
#9,670 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Bug SAPI: cli Status: Verified
主要语言
C
星标
40.4k
派生
8.2k
平均合并
2 天 13 小时
30 天内合并 PR
96

描述

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先定位生成 PHP -h 输出的源代码,并将其选项列表与 sapi/cli/php_cli.c:701-703 和 737-739 中的 C 和 q case 进行比较。完成的标准是帮助输出记录这两个选项,并且相关的 CLI 帮助测试(如果存在)通过。

由索引模型根据 Issue 内容生成。

评估

技术栈
c
领域
cli, documentation
Issue 类型
文档
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。