Skip to content

Commit c9928ef

Browse files
committed
NEWS and UPGRADING
1 parent 10be145 commit c9928ef

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

NEWS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ PHP NEWS
5151

5252
- Standard:
5353
. Fixed setlocale() to reject locale names containing NUL bytes instead of
54-
silently truncating them. (Weilin Du)
54+
silently truncating them, and to reject arrays passed after the $locales
55+
argument. (Weilin Du)
5556

5657
- Streams:
5758
. Added a new IO copy API used by php_stream_copy_to_stream_ex() that

UPGRADING

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ PHP 8.6 UPGRADE NOTES
203203
bytes.
204204
. setlocale() now raises a ValueError when a locale name contains NUL bytes,
205205
instead of silently truncating it.
206+
Arrays are now accepted only for the $locales argument. Passing an array as
207+
a later variadic locale argument now throws a TypeError; if $locales is an
208+
array, only that array is processed.
206209
. linkinfo() now raises a ValueError when the $path argument is empty.
207210
. pathinfo() now raises a ValueError when an invalid $flag argument value is
208211
passed.

0 commit comments

Comments
 (0)