Skip to content

Commit

Permalink
Fix Call to undefined function shell_exec() on Status page - closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Dec 3, 2023
1 parent 2f1b9eb commit b33d2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Misc/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -1934,7 +1934,7 @@ public static function checkRequiredFunctions()
'proc_open (PHP)' => function_exists('proc_open'),
'fpassthru (PHP)' => function_exists('fpassthru'),
'symlink (PHP)' => function_exists('symlink'),
'pcntl_signal (console PHP)' => (int)shell_exec('php -r "echo (int)function_exists(\'pcntl_signal\');"'),
'pcntl_signal (console PHP)' => function_exists('shell_exec') ? (int)shell_exec('php -r "echo (int)function_exists(\'pcntl_signal\');"') : false,
'ps (shell)' => function_exists('shell_exec') ? shell_exec('ps') : false,
];
}
Expand Down

0 comments on commit b33d2df

Please sign in to comment.