php / php/php-src

The help document of php misses two options

オープン
#9,670 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Bug SAPI: cli Status: Verified
主要言語
C
スター
40.4k
フォーク
8.2k
平均マージ
2日 13時間
マージ済み PR(30日)
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. リポジトリをフォークし、ブランチを切って変更します。
  4. 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 を短くまとめたダイジェスト。