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

Update NEWS and UPGRADING for OOB floats to int casts

This commit is contained in:
Gina Peter Banyard
2025-09-21 23:56:27 +01:00
parent b4ed215299
commit 2a19375dd0
2 changed files with 6 additions and 0 deletions

2
NEWS
View File

@@ -15,6 +15,8 @@ PHP NEWS
configured). (nielsdos)
. Fixed bug GH-19719 (Allow empty statements before declare(strict_types)).
(nielsdos)
. Casting floats that are not representable as ints now emits a warning.
(Girgias)
- Curl:
. Fix cloning of CURLOPT_POSTFIELDS when using the clone operator instead

View File

@@ -55,6 +55,10 @@ PHP 8.5 UPGRADE NOTES
. Destructing non-array values (other than NULL) using [] or list() now
emits a warning.
RFC: https://wiki.php.net/rfc/warnings-php-8-5#destructuring_non-array_values
. A warning is now emitted when casting floats (or strings that look like
floats) to int if they cannot be represented as one. This affects explicit
int casts and implicit int casts.
RFC: https://wiki.php.net/rfc/warnings-php-8-5#casting_out_of_range_floats_to_int
- BZ2:
. bzcompress() now throws a ValueError when $block_size is not between