Skip to content

Commit f9d95c6

Browse files
committed
Update NEWS and UPGRADING for chr() deprecation
1 parent cab46b2 commit f9d95c6

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ PHP NEWS
1717

1818
- Standard:
1919
. Fixed bug GH-16649 (UAF during array_splice). (alexandre-daubois)
20+
. Passing integers outside the interval [0, 255] to chr() is now deprecated.
21+
(Girgias)
2022

2123
14 Aug 2025, PHP 8.5.0beta1
2224

UPGRADING

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,9 @@ PHP 8.5 UPGRADE NOTES
423423
opened directory has been deprecated. Provide the last opened directory
424424
explicitly instead.
425425
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_passing_null_to_readdir_rewinddir_and_closedir
426+
. Passing integers outside the interval [0, 255] to chr() is now deprecated.
427+
This is because a byte can only hold a value within this interval.
428+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_passing_integers_outside_the_interval_0_255_to_chr
426429

427430
- XML:
428431
. The xml_parser_free() function has been deprecated, as XMLParser objects

0 commit comments

Comments
 (0)