Skip to content

Commit 569b003

Browse files
committed
Update NEWS/UPGRADING for ord() deprecation
1 parent 93676a0 commit 569b003

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ PHP NEWS
2323
- MBstring:
2424
. Updated Unicode data tables to Unicode 17.0. (Yuya Hamada)
2525

26+
- Standard:
27+
. Passing strings which are not one byte long to ord() is now deprecated.
28+
(Girgias)
29+
2630
- URI:
2731
. Fixed bug GH-19780 (InvalidUrlException should check $errors argument).
2832
(nielsdos)

UPGRADING

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,9 @@ PHP 8.5 UPGRADE NOTES
555555
. Passing integers outside the interval [0, 255] to chr() is now deprecated.
556556
This is because a byte can only hold a value within this interval.
557557
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_passing_integers_outside_the_interval_0_255_to_chr
558+
. Passing a string which is not a single byte to ord() is now deprecated,
559+
this is indicative of a bug.
560+
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_passing_string_which_are_not_one_byte_long_to_ord
558561
. Relying locally predefined variable $http_response_header is deprecated.
559562
Instead one should call the http_get_last_response_headers() function.
560563
RFC: https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_the_http_response_header_predefined_variable

0 commit comments

Comments
 (0)