From f3a4c3e240e55d69a9718a09d9b4a34d6af0edce Mon Sep 17 00:00:00 2001 From: Paula Quispe Date: Wed, 27 Nov 2019 11:09:38 -0400 Subject: [PATCH] PMC-1417 --- workflow/engine/bin/cron_single.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/workflow/engine/bin/cron_single.php b/workflow/engine/bin/cron_single.php index c3fe44b1e..1768b2997 100644 --- a/workflow/engine/bin/cron_single.php +++ b/workflow/engine/bin/cron_single.php @@ -24,12 +24,11 @@ use ProcessMaker\Core\JobsManager; use ProcessMaker\Core\System; use ProcessMaker\Plugins\PluginRegistry; -$fn = ' +register_shutdown_function(function () { if (class_exists("Propel")) { Propel::close(); } - '; -register_shutdown_function(create_function('', $fn)); +}); ini_set('memory_limit', '512M');