mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
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.
This commit is contained in:
committed by
GitHub
parent
6e04050474
commit
bde6f2a2f7
@@ -138,7 +138,7 @@ ZEND_FUNCTION(gc_status)
|
||||
|
||||
zend_gc_get_status(&status);
|
||||
|
||||
array_init_size(return_value, 3);
|
||||
array_init_size(return_value, 8);
|
||||
|
||||
add_assoc_bool_ex(return_value, "running", sizeof("running")-1, status.active);
|
||||
add_assoc_bool_ex(return_value, "protected", sizeof("protected")-1, status.gc_protected);
|
||||
|
||||
Reference in New Issue
Block a user