Updated required PHP version to 5.5.9
Added update message for PHP versions lower then PHP 7.pull/612/merge
parent
1c984b30ff
commit
476c59eb47
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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": [
|
||||
|
|
|
@ -5,6 +5,6 @@ Requirements
|
|||
|
||||
* Web server
|
||||
* MySQL database
|
||||
* PHP 5.3.7+
|
||||
* PHP 5.5.9+
|
||||
* PHP cURL package
|
||||
* PHP PDO mysql driver
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue