summaryrefslogtreecommitdiff
path: root/Zend/zend_gc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_gc.c')
-rw-r--r--Zend/zend_gc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Zend/zend_gc.c b/Zend/zend_gc.c
index 40402a5a7d..3900837a7d 100644
--- a/Zend/zend_gc.c
+++ b/Zend/zend_gc.c
@@ -1442,6 +1442,13 @@ ZEND_API int zend_gc_collect_cycles(void)
return count;
}
+ZEND_API void zend_gc_get_status(zend_gc_status *status)
+{
+ status->gc_runs = GC_G(gc_runs);
+ status->collected = GC_G(collected);
+ status->gc_threshold = GC_G(gc_threshold);
+}
+
/*
* Local variables:
* tab-width: 4