summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2018-06-13 16:41:51 +0800
committerXinchen Hui <laruence@gmail.com>2018-06-13 16:41:51 +0800
commit9465ec4673ccce985e093bea0786ff5c6d0e07ac (patch)
tree68122242738636b46fd2875cd8f73c7ebdea151e /Zend/zend_builtin_functions.c
parente788e8261ea8eb1b363377f1b185ac6b338607ed (diff)
downloadphp-git-9465ec4673ccce985e093bea0786ff5c6d0e07ac.tar.gz
Added num_roots to gc_status
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r--Zend/zend_builtin_functions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index c03eea82b5..e4d3b2df5c 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -401,7 +401,9 @@ ZEND_FUNCTION(gc_status)
add_assoc_long_ex(return_value, "runs", sizeof("runs")-1, (long)status.runs);
add_assoc_long_ex(return_value, "collected", sizeof("collected")-1, (long)status.collected);
add_assoc_long_ex(return_value, "threshold", sizeof("threshold")-1, (long)status.threshold);
+ add_assoc_long_ex(return_value, "roots", sizeof("roots")-1, (long)status.num_roots);
}
+/* }}} */
/* {{{ proto int func_num_args(void)
Get the number of arguments that were passed to the function */