bump the minimum PHP version, the README was updated but not the version check in the code. Fixes #383

This commit is contained in:
Shish 2014-03-07 08:27:34 +00:00
parent faec25226a
commit fa5ad5b77d

View File

@ -574,9 +574,10 @@ function getExtension ($mime_type){
* @private * @private
*/ */
function _version_check() { 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 " 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 if your web host is running an older version, they are dangerously out of
date and you should plan on moving elsewhere. date and you should plan on moving elsewhere.
"; ";