Skip to content

Commit bde6f2a

Browse files
Fix initial array size in gc_status() (#11393)
Small fix for the initial array size to reflect the number of items that will be added.
1 parent 6e04050 commit bde6f2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_builtin_functions.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ ZEND_FUNCTION(gc_status)
138138

139139
zend_gc_get_status(&status);
140140

141-
array_init_size(return_value, 3);
141+
array_init_size(return_value, 8);
142142

143143
add_assoc_bool_ex(return_value, "running", sizeof("running")-1, status.active);
144144
add_assoc_bool_ex(return_value, "protected", sizeof("protected")-1, status.gc_protected);

0 commit comments

Comments
 (0)