gettext: missing ValueErrors on seven function pages
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 76/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- php, xml
- Lĩnh vực
- documentation
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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).
- Ngôn ngữ chính
- XML
- Star
- 602
- Fork
- 904
- Merge trung bình
- 1 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 87
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của php/doc-en
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
OpenSSL Version for PHP 8.2Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
SID is deprecatedCó thể đã có người làm @jordikroon đã nhận 15 ngày trước. Đang mởbug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
php/doc-en#5937 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Files still using &warn.undocumented.func;Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởhelp wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
php/doc-en#5786 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
php/doc-en#5765 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
changelog investigate
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
ramnes/notion-sdk-py#430 ·
-
Broken links in the docsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
README устарел: статус проекта, версия 0.1.0 при описании тега v0.1.1, семантика фолбэка поискаĐang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Lagrunge82/yandex-mail-mcp#43 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
devtools documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
noontide-co/mainbranch#1256 · 1 bình luận ·