gettext: missing ValueErrors on seven function pages
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 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
- 星标
- 606
- 派生
- 906
- 平均合并
- 1 天 6 小时
- 30 天内合并 PR
- 84
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
php/doc-en 的其他 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
SID is deprecated可能已有人在做 @jordikroon 于 16 天前认领。 未关闭bug
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
Files still using &warn.undocumented.func;可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭help wanted
难度 2/5 1-3 小时 新手友好度 68/100
php/doc-en#5786 · 1 个 reaction ·
维护者通常 1 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
相似的 Issue
-
[Docs]: First-user steps omit the Admin Cognito group; setup hint and stack names mislead deployers未关闭
难度 2/5 1-3 小时 新手友好度 82/100
aws/context-ontology-accelerator#338 ·
维护者通常 1 天内回复
-
Status: Unconfirmed
难度 1/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
sync-en
难度 1/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
sync-en
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
The README tells to run `mvn jeo:disassemble`, which fails with `No plugin found for prefix 'jeo'`未关闭
难度 1/5 1 小时以内 新手友好度 82/100
objectionary/jeo-maven-plugin#1938 ·
维护者通常 2 天内回复