File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments