From e0ab5c8d151e49487a4d92599d7b83abd35490bc Mon Sep 17 00:00:00 2001 From: Alexander Stecher <45872305+AlliBalliBaba@users.noreply.github.com> Date: Fri, 24 May 2024 16:26:00 +0200 Subject: [PATCH] Finishes garbage collection before restarting the FrankenPHP worker process (#897) * Finishes garbage collection before restarting the worker process. * Update frankenphp-worker.php --------- Co-authored-by: a.stecher Co-authored-by: Taylor Otwell --- bin/frankenphp-worker.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/frankenphp-worker.php b/bin/frankenphp-worker.php index 26f95451c..e3a342366 100644 --- a/bin/frankenphp-worker.php +++ b/bin/frankenphp-worker.php @@ -76,4 +76,6 @@ } } finally { $worker?->terminate(); + + gc_collect_cycles(); }