Skip to content

Commit aa10e20

Browse files
committed
Add upgrading note for round(-0.0) change
As cmb pointed out, the new behavior is compliant with POSIX: https://pubs.opengroup.org/onlinepubs/9699919799/functions/round.html.
1 parent 3718a95 commit aa10e20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

UPGRADING

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ PHP 7.4 UPGRADE NOTES
153153
considered failures.
154154
. fread() and fwrite() on plain files will now throw a notice on failure,
155155
such as when trying to write to a read-only file resource.
156+
. round(-0.0) will now return -0.0 rather than +0.0.
156157

157158
- Tokenizer:
158159
. token_get_all() will now emit a T_BAD_CHARACTER token for unexpected

0 commit comments

Comments
 (0)