Skip to content

Commit 7a5b7eb

Browse files
mvorisekcmb69
andauthored
Update ext/standard/string.c
Co-authored-by: Christoph M. Becker <[email protected]>
1 parent 68e0766 commit 7a5b7eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/string.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5884,7 +5884,7 @@ PHP_FUNCTION(str_split)
58845884

58855885
if ((size_t)split_length >= ZSTR_LEN(str)) {
58865886
if (0 == ZSTR_LEN(str)) {
5887-
array_init_size(return_value, 0);
5887+
RETVAL_EMPTY_ARRAY();
58885888
} else {
58895889
array_init_size(return_value, 1);
58905890
add_next_index_stringl(return_value, ZSTR_VAL(str), ZSTR_LEN(str));

0 commit comments

Comments
 (0)