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');