Check for exec function prior to attemping to use it
This commit is contained in:
parent
9a3ecf5f14
commit
cf46b8be6c
1 changed files with 3 additions and 0 deletions
|
|
@ -184,6 +184,9 @@ class SystemHealth
|
|||
|
||||
private static function checkPhpCli()
|
||||
{
|
||||
if(!function_exists('exec'))
|
||||
return "Unable to check CLI version";
|
||||
|
||||
try {
|
||||
exec('php -v', $foo, $exitCode);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue