From 69bda28487dd142fead2be4e44d289223dfbecb1 Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Wed, 10 Jan 2024 20:46:21 +0300 Subject: [PATCH 1/2] [PHP 8.3] Update `gc_status` function --- reference/info/functions/gc-status.xml | 99 ++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/reference/info/functions/gc-status.xml b/reference/info/functions/gc-status.xml index 33e8a159cf52..a20b08588743 100644 --- a/reference/info/functions/gc-status.xml +++ b/reference/info/functions/gc-status.xml @@ -48,10 +48,78 @@ "roots" + + + "running" + + + + + "protected" + + + + + "full" + + + + + "buffer_size" + + + + + "application_time" + + + + + "collector_time" + + + + + "destructor_time" + + + + + "free_time" + + + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 8.3.0 + + gc_status now returns additional fields: + "running", "protected", + "full", "buffer_size", + "application_time", "collector_time", + "destructor_time", and "free_time". + + + + + + + + &reftitle.examples; @@ -89,6 +157,37 @@ array(4) { ["roots"]=> int(0) } +]]> + + &example.outputs.83.similar; + + + bool(false) + ["protected"]=> + bool(false) + ["full"]=> + bool(false) + ["runs"]=> + int(5) + ["collected"]=> + int(100002) + ["threshold"]=> + int(50001) + ["buffer_size"]=> + int(131072) + ["roots"]=> + int(0) + ["application_time"]=> + float(0.031182458) + ["collector_time"]=> + float(0.020106291) + ["destructor_time"]=> + float(0) + ["free_time"]=> + float(0.003707167) +} ]]> From 11410cb67f55597541c6278eed9d016a2a77ccb0 Mon Sep 17 00:00:00 2001 From: Sergey Panteleev Date: Thu, 11 Jan 2024 00:35:34 +0300 Subject: [PATCH 2/2] Update reference/info/functions/gc-status.xml Co-authored-by: Gina Peter Banyard --- reference/info/functions/gc-status.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/info/functions/gc-status.xml b/reference/info/functions/gc-status.xml index a20b08588743..e75e103c0ee8 100644 --- a/reference/info/functions/gc-status.xml +++ b/reference/info/functions/gc-status.xml @@ -107,7 +107,7 @@ 8.3.0 - gc_status now returns additional fields: + gc_status now returns the following additional fields: "running", "protected", "full", "buffer_size", "application_time", "collector_time",