diff --git a/NEWS b/NEWS index 8fbb3ffa95ce6..86e1b69b38a11 100644 --- a/NEWS +++ b/NEWS @@ -81,7 +81,8 @@ PHP NEWS iterable. (timwolla) - Standard: - . Fixed empty array returned by str_split on empty input. (Michael Vorisek) + . Implemented FR GH-8924 (str_split should return empty array for empty + string). (Michael Vorisek) . Added ini_parse_quantity function to convert ini quantities shorthand notation to int. (Dennis Snell) . Enable arc4random_buf for Linux glibc 2.36 and onwards diff --git a/UPGRADING b/UPGRADING index 85717cba606ba..df3d92cdcc25f 100644 --- a/UPGRADING +++ b/UPGRADING @@ -45,7 +45,9 @@ PHP 8.2 UPGRADE NOTES stripos, strripos, lcfirst, ucfirst, ucwords, str_ireplace, array_change_key_case and sorting with SORT_FLAG_CASE use ASCII case conversion. - . str_split no longer returns an empty array on empty string. + . str_split() returns an empty array for an empty string now. Previously it + returned an array with a single empty string entry. mb_str_split() is not + affected by this change since it was already behaving like that. - SPL: . The following methods now enforce their signature: