Enforce a minimum PHP version of 5.4.0 on install and upgrade.
This commit is contained in:
parent
2f10812cc4
commit
d4dae440f0
3 changed files with 22 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue