Skip to content

Commit da8f665

Browse files
committed
Fixed UPGRADING
Added a concrete example regarding the change in which the number of digits rounded by round() was extended by one digit.
1 parent 32f7822 commit da8f665

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

UPGRADING

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,10 @@ PHP 8.4 UPGRADE NOTES
559559
certain numbers, so this fix removes "pre-rounding" and changes the way numbers
560560
are compared, so that the values are correctly rounded as decimal numbers.
561561
. long2ip() now returns string instead of string|false.
562-
. The maximum precision that can be handled by round() has been extended by
563-
one digit.
562+
. The maximum precision that can be handled by round() has been extended by one
563+
digit. For example, if rounded 4503599627370495.5 with precision -1, would expect
564+
it to result in 4503599627370496, but previously this was not the case and no
565+
rounding was done.
564566
. output_add_rewrite_var() now uses url_rewriter.hosts instead of
565567
session.trans_sid_hosts for selecting hosts that will be rewritten.
566568

@@ -801,7 +803,7 @@ PHP 8.4 UPGRADE NOTES
801803
. P_GID (NetBSD/FreeBSD only).
802804
. P_SID (NetBSD/FreeBSD only).
803805
. P_JAILID (FreeBSD only).
804-
806+
805807
- Standard:
806808
. PHP_ROUND_CEILING.
807809
. PHP_ROUND_FLOOR.

0 commit comments

Comments
 (0)