From 0c0cc03394d2b900b17ee4df64371afa769a7a30 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Fri, 15 Aug 2014 14:47:10 +0300 Subject: [PATCH] Exit instead of throwing exception when PHP < 5.4.0 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index df77bbadc..02a6a352a 100644 --- a/index.php +++ b/index.php @@ -2,7 +2,7 @@ namespace Grav\Common; if (version_compare($ver = PHP_VERSION, $req = '5.4.0', '<')) { - throw new \RuntimeException(sprintf('You are running PHP %s, but Grav needs at least PHP %s to run.', $ver, $req)); + exit(sprintf('You are running PHP %s, but Grav needs at least PHP %s to run.', $ver, $req)); } use Tracy\Debugger;