Check for exec function prior to attemping to use it

This commit is contained in:
David Bomba 2022-08-31 19:08:01 +10:00
parent 9a3ecf5f14
commit cf46b8be6c

View File

@ -184,6 +184,9 @@ class SystemHealth
private static function checkPhpCli() private static function checkPhpCli()
{ {
if(!function_exists('exec'))
return "Unable to check CLI version";
try { try {
exec('php -v', $foo, $exitCode); exec('php -v', $foo, $exitCode);