lost condition

This commit is contained in:
Anatol Belski committed 2013-08-21 00:33:47 -07:00
1 parent e2070d1409
commit d6c59e1d7e
1 file changed
+1 -1
+1 -1
View File
@@ -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;