Skip to content

Commit 3469ec4

Browse files
committed
[ci skip] UPGRADING&NEWS
1 parent c6ffb1b commit 3469ec4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ PHP NEWS
254254
. Added array_first() and array_last(). (nielsdos)
255255
. Fixed bug GH-18823 (setlocale's 2nd and 3rd argument ignores strict_types).
256256
(nielsdos)
257+
. Fixed bug GH-18897 (printf: empty precision is interpreted as precision 6,
258+
not as precision 0). (nielsdos)
257259

258260
- Streams:
259261
. Fixed bug GH-16889 (stream_select() timeout useless for pipes on Windows).

UPGRADING

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ PHP 8.5 UPGRADE NOTES
116116
. SplFileObject::fwrite's parameter $length is now nullable. The default
117117
value changed from 0 to null.
118118

119+
- Standard:
120+
. Using a printf-family function with a formatter that did not specify the
121+
precision previously incorrectly reset the precision instead of treating
122+
it as a precision of 0. See GH-18897.
123+
119124
========================================
120125
2. New Features
121126
========================================

0 commit comments

Comments
 (0)