gettext: missing ValueErrors on seven function pages
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 76/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- php, xml
調査の方向性
Start with the seven XML pages under reference/gettext/functions/ and the existing dgettext() page for the expected errors-section wording and <simpara> structure. Check ext/gettext/gettext.c and the cited PHP versions to verify each ValueError, false return, and version threshold. Done means every listed page has a complete errors section, bind_textdomain_codeset() documents string|false, and matching changelog rows are added.
索引モデルが issue の本文から書いたものです。
説明
Affected page
reference/gettext/functions/dcgettext.xml
reference/gettext/functions/dcngettext.xml
reference/gettext/functions/gettext.xml
reference/gettext/functions/ngettext.xml
reference/gettext/functions/textdomain.xml
reference/gettext/functions/bindtextdomain.xml
reference/gettext/functions/bind-textdomain-codeset.xml
Issue description
These pages have no errors section, or an incomplete one, and no matching changelog row:
dcgettext(),dcngettext():ValueErrorfor an empty or over 1024 byte domain, an over 4096 byte message/singular/plural, andLC_ALLas category (the empty domain andLC_ALLcases as of 8.4.0, the length cases as of 8.0.0).gettext(),ngettext():ValueErrorfor an over 4096 byte message/singular/plural (8.0.0).textdomain(),bind_textdomain_codeset(): the over 1024 byte domain is missing, and fortextdomain()also"0"(8.4.0).bindtextdomain(): empty or over 1024 byte domain;directory"0"or""means the current directory, and the path must exist orfalseis returned.bind_textdomain_codeset()returnsstring|false, the page only says string.
Steps to reproduce
try { dcgettext("", "x", LC_MESSAGES); } catch (Throwable $e) { echo $e->getMessage(); }
Output: dcgettext(): Argument #1 ($domain) must not be empty
Suggested fix
Add the errors section and changelog rows (same wording as the existing dgettext() page), use <simpara>. Sources: ext/gettext/gettext.c (php-8.0.0, php-8.4.0, php-8.5.9).
- 主要言語
- XML
- スター
- 602
- フォーク
- 904
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 87
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
php/doc-en のほかの issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
SID is deprecated対応中かも @jordikroon が 14 日前に担当しました。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
Files still using &warn.undocumented.func;対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンhelp wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
php/doc-en#5786 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
letsencrypt/cp-cps#361 ·
-
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
cocos/cocos-docs#3333 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
lesson-submission pending-review
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Ikalus1988/MisakaNet#3956 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
aws-samples/sample-per-model-bedrock#574 ·
メンテナーはふだん 1 日以内に返信