From bf5e995547426c425232d01b4bdee4cd9e7a771c Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Thu, 28 Nov 2013 16:04:56 -0500 Subject: [PATCH] CC-5584: Quick PHP version check (5.4+) * Thanks to John Chewter for connecting the dots on this one! --- install_minimal/include/airtime-install.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install_minimal/include/airtime-install.php b/install_minimal/include/airtime-install.php index ec7829269..cdb60831e 100644 --- a/install_minimal/include/airtime-install.php +++ b/install_minimal/include/airtime-install.php @@ -12,6 +12,14 @@ require_once(__DIR__.'/airtime-constants.php'); // The only way we get here is if we are doing a new install or a reinstall. // ------------------------------------------------------------------------- +if (PHP_VERSION_ID < 50400) //PHP 5.4 +{ + echo("ERROR: Your PHP version is too old!\nAirtime requires PHP 5.4 or greater.\n"); + exit(1); +} + +die(0); + $iniExists = file_exists("/etc/airtime/airtime.conf"); if ($iniExists) { //reinstall, Will ask if we should rewrite config files.