[php-src] PR #18912: Fix GH-18897: printf: empty precision is interpreted as precision 6, not as precision 0
| From: | nielsdos | Date: | Sun, 22 Jun 2025 14:52:20 +0000 |
| Subject: | [php-src] PR #18912: Fix GH-18897: printf: empty precision is interpreted as precision 6, not as precision 0 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-32144@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18912
Author: nielsdos
Like in other languages, and especially C where printf originates from, a missing precision should
be treated as a 0 precision. Because the ADJ_PRECISION flag was not set, the double formatting code
resetted the precision to the default float precision of 6.
Targeting master because of the behavioural BC break.