From cf46b8be6c67ccfe286faaa0bcd98444d7dc74cb Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 31 Aug 2022 19:08:01 +1000 Subject: [PATCH] Check for exec function prior to attemping to use it --- app/Utils/SystemHealth.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Utils/SystemHealth.php b/app/Utils/SystemHealth.php index 90c3bf8dcd40..ffaabac3a10d 100644 --- a/app/Utils/SystemHealth.php +++ b/app/Utils/SystemHealth.php @@ -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);