From c24efff92fc3ce977d625743cfd7573f238e295b Mon Sep 17 00:00:00 2001 From: FreeScout Date: Fri, 17 Nov 2023 22:28:01 -0800 Subject: [PATCH] Check pcntl_signal() function on System Status page in the console PHP --- app/Misc/Helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Misc/Helper.php b/app/Misc/Helper.php index 0e4773d2a..a89fbeb03 100644 --- a/app/Misc/Helper.php +++ b/app/Misc/Helper.php @@ -1931,7 +1931,7 @@ public static function checkRequiredFunctions() 'proc_open (PHP)' => function_exists('proc_open'), 'fpassthru (PHP)' => function_exists('fpassthru'), 'symlink (PHP)' => function_exists('symlink'), - 'pcntl_signal (PHP)' => function_exists('pcntl_signal'), + 'pcntl_signal (console PHP)' => (int)shell_exec('php -r "echo (int)function_exists(\'pcntl_signal\');"'), 'ps (shell)' => function_exists('shell_exec') ? shell_exec('ps') : false, ]; }