Skip to content

Document printf precision fix in PHP 8.5 - #5868

Merged
lacatoire merged 2 commits into
php:masterfrom
lacatoire:fix/printf-precision-changelog-85
Sep 30, 2026
Merged

lacatoire merged 2 commits into
php:masterfrom
lacatoire:fix/printf-precision-changelog-85

Conversation

@lacatoire

Copy link
Copy Markdown
Member

A formatter without a specified precision now correctly treats it as precision 0 instead of resetting it. Added 8.5.0 changelog entry to both strings.changelog.sprintf and strings.changelog.vsprintf entities, covering printf, sprintf, fprintf, vprintf, vsprintf and vfprintf.

See php/php-src#18897.

PHP 8.5 Documentation Tracker

…es fonctions printf en PHP 8.5

Un formateur sans précision spécifiée traitait incorrectement la
précision comme un reset au lieu de 0. Ajout d'une entrée 8.5.0 dans
les entités changelog de sprintf et vsprintf, couvrant printf, sprintf,
fprintf, vprintf, vsprintf et vfprintf.

Closes #833

@B198603 B198603 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The

@lacatoire lacatoire added this to the PHP 8.5 milestone Sep 25, 2026
@lacatoire lacatoire added the 8.5 label Sep 25, 2026
Comment thread language-snippets.ent Resolved
Comment thread language-snippets.ent Resolved
@lacatoire
lacatoire merged commit f59091f into php:master Sep 30, 2026
3 checks passed
@lacatoire
lacatoire deleted the fix/printf-precision-changelog-85 branch September 30, 2026 17:37
KentarouTakeda added a commit to php/doc-ja that referenced this pull request Oct 4, 2026
language-snippets.ent を原文の変更に追従しました。

原文では次の変更がありました。

- printf 系の関数の changelog に、PHP 8.5.0 で精度を指定しないフォーマッタの扱いが修正されたことが追記されました(php/doc-en@f59091f、php/doc-en#5868)
- SNMP クラスのメソッドの「エラー / 例外」節が書き直され、`SNMP::$exceptions_enabled` のビットマスクに含まれる種類のライブラリエラーでは `SNMPException` をスローし、それ以外では `E_WARNING` を発生させると明記されました(php/doc-en@6612b62、php/doc-en#5907)
- typo と文法が修正されました(php/doc-en@7b7d43f、php/doc-en#5905)。changelog で例外クラス名を囲むタグが `<classname>` から `<exceptionname>` に変わっています

## 対象ファイル

language-snippets.ent (1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants