Enforce a minimum PHP version of 5.4.0 on install and upgrade.

This commit is contained in:
Albert Santoni 2013-10-25 10:39:00 -04:00
parent 2f10812cc4
commit d4dae440f0
3 changed files with 22 additions and 0 deletions

View file

@ -529,4 +529,14 @@ class AirtimeInstall
}
return $opts;
}
public static function checkPHPVersion()
{
if (PHP_VERSION_ID < 50400)
{
echo "Error: Airtime requires PHP 5.4 or greater.";
return false;
}
return true;
}
}