From fa5ad5b77da1cb91b7ddf4fc55cbc7b5c1739e08 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 7 Mar 2014 08:27:34 +0000 Subject: [PATCH] bump the minimum PHP version, the README was updated but not the version check in the code. Fixes #383 --- core/util.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/util.inc.php b/core/util.inc.php index 4c6e40f4..be33e82d 100644 --- a/core/util.inc.php +++ b/core/util.inc.php @@ -574,9 +574,10 @@ function getExtension ($mime_type){ * @private */ function _version_check() { - if(version_compare(PHP_VERSION, "5.2.6") == -1) { + $min_version = "5.3.0"; + if(version_compare(PHP_VERSION, $min_version) == -1) { print " -Currently SCore Engine doesn't support versions of PHP lower than 5.2.6 -- +Currently SCore Engine doesn't support versions of PHP lower than $min_version -- if your web host is running an older version, they are dangerously out of date and you should plan on moving elsewhere. ";