1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

round(): Corrected test name and fixed UPGRADING (#14943)

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
This commit is contained in:
Saki Takamachi
2024-07-29 20:39:35 +09:00
committed by GitHub
parent 7fd54f9d12
commit 28080dce62
2 changed files with 3 additions and 2 deletions

View File

@@ -580,8 +580,9 @@ PHP 8.4 UPGRADE NOTES
decimal number and round it to 0.29. However, "pre-rounding" incorrectly rounds
certain numbers, so this fix removes "pre-rounding" and changes the way numbers
are compared, so that the values are correctly rounded as decimal numbers.
. The maximum precision that can be handled by round() has been extended by
one digit.
. The maximum precision that can be handled by round() has been extended by one
digit. For example, `round(4503599627370495.5)` returned in `4503599627370495.5`,
but now returns `4503599627370496`.
. The default value of the 'cost' option for PASSWORD_BCRYPT for password_hash()
has been increased from '10' to '12'.