summaryrefslogtreecommitdiffstats
path: root/install.php
diff options
context:
space:
mode:
authornashe <contact@nashe.fr>2015-08-05 16:02:38 +0200
committernashe <contact@nashe.fr>2015-08-05 16:02:38 +0200
commitba64547b3ef2f536434f8f6864e0179a11e4792b (patch)
tree0fec8736ef60df7d75ae52cb836651ea88d0eda4 /install.php
parentbff9045d3f8c0aa144d43d96ef9f477e2fbca284 (diff)
downloadplanet-ba64547b3ef2f536434f8f6864e0179a11e4792b.tar
planet-ba64547b3ef2f536434f8f6864e0179a11e4792b.tar.gz
planet-ba64547b3ef2f536434f8f6864e0179a11e4792b.tar.bz2
planet-ba64547b3ef2f536434f8f6864e0179a11e4792b.tar.xz
planet-ba64547b3ef2f536434f8f6864e0179a11e4792b.zip
Change PHP version requirement
Require at least PHP 5.4: this is the oldest "old stable" version of PHP that can be downloaded.
Diffstat (limited to 'install.php')
-rwxr-xr-xinstall.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/install.php b/install.php
index 3a3eae7..addf819 100755
--- a/install.php
+++ b/install.php
@@ -40,12 +40,12 @@ if (file_exists(dirname(__FILE__) . '/custom/config.yml')
} else {
// We start by malking sure we have PHP5 as a base requirement
- if(phpversion() >= 5) {
- $strInstall = installStatus('Server is running PHP5', 'OK',true);
+ if(version_compare(PHP_VERSION, '5.4.0') >= 0) {
+ $strInstall = installStatus('Server is running at least PHP 5.4', 'OK',true);
$strRecommendation = '';
} else {
- $strInstall = installStatus('Server is running PHP5', 'FAIL',false);
- $strRecommendation = '<li>Check your server documentation to activate PHP5</li>';
+ $strInstall = installStatus('Server is running at least PHP 5.4', 'FAIL',false);
+ $strRecommendation = '<li>Check your server documentation to activate at least PHP 5.4</li>';
}
// Writable file requirements