mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-26 18:35:42 +00:00
lost condition
This commit is contained in:
1 parent
6fc93dfa6c
commit
12951f8bbd
1 file changed
+1
-1
@@ -5514,7 +5514,7 @@ PHP_FUNCTION(str_split)
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (0 == str_len) {
|
||||
if (0 == str_len || split_length >= str_len) {
|
||||
array_init_size(return_value, 1);
|
||||
add_next_index_stringl(return_value, str, str_len, 1);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user