Updated required PHP version to 5.5.9

Added update message for PHP versions lower then PHP 7.
This commit is contained in:
TimZ99 2018-07-10 23:46:01 +02:00
parent 1c984b30ff
commit 476c59eb47
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
5 changed files with 9 additions and 5 deletions

View File

@ -5,6 +5,7 @@ Changelog
Not yet released
----------------
* Minimum PHP version is PHP 5.5.9 (not PHP 5.5.0).
* Fixed ping error: Failed to parse address "8.8.8.8"
* Added correct ping error messaging.
* Added Twilio and Telegram to the notification list.

View File

@ -78,7 +78,7 @@ Requirements
* Web server
* MySQL database
* PHP 5.3.7+
* PHP 5.5.9+
* PHP cURL package
* PHP PDO mysql driver
* PHP-XML

View File

@ -11,7 +11,7 @@
"symfony/http-foundation": "~3.4",
"php-pushover/php-pushover": "dev-master",
"paragonie/random_compat": "^2.0",
"twig/twig": "~1.35.3"
"twig/twig": "~1.35"
},
"autoload": {
"files": [

View File

@ -5,6 +5,6 @@ Requirements
* Web server
* MySQL database
* PHP 5.3.7+
* PHP 5.5.9+
* PHP cURL package
* PHP PDO mysql driver

View File

@ -69,12 +69,15 @@ class InstallController extends AbstractController {
$errors = 0;
$phpv = phpversion();
if (version_compare($phpv, '5.3.7', '<')) {
if (version_compare($phpv, '5.5.9', '<')) {
$errors++;
$this->addMessage('PHP 5.3.7+ is required to run PHP Server Monitor.', 'error');
$this->addMessage('PHP 5.5.9+ is required to run PHP Server Monitor. You\'re using '.$phpv.'.', 'error');
} else {
$this->addMessage('PHP version: '.$phpv, 'success');
}
if (version_compare(PHP_RELEASE_VERSION, '7', '<')) {
$this->addMessage('PHP 5 reaches the end of life (January 1, 2019), please update to PHP 7. PHP supported versions can be found <a href="https://secure.php.net/supported-versions.php">here</a>.', 'warning');
}
if (!function_exists('curl_init')) {
$this->addMessage('PHP is installed without the cURL module. Please install cURL.', 'warning');
} else {