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
|
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"
|
* Fixed ping error: Failed to parse address "8.8.8.8"
|
||||||
* Added correct ping error messaging.
|
* Added correct ping error messaging.
|
||||||
* Added Twilio and Telegram to the notification list.
|
* Added Twilio and Telegram to the notification list.
|
||||||
|
|
|
@ -78,7 +78,7 @@ Requirements
|
||||||
|
|
||||||
* Web server
|
* Web server
|
||||||
* MySQL database
|
* MySQL database
|
||||||
* PHP 5.3.7+
|
* PHP 5.5.9+
|
||||||
* PHP cURL package
|
* PHP cURL package
|
||||||
* PHP PDO mysql driver
|
* PHP PDO mysql driver
|
||||||
* PHP-XML
|
* PHP-XML
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"symfony/http-foundation": "~3.4",
|
"symfony/http-foundation": "~3.4",
|
||||||
"php-pushover/php-pushover": "dev-master",
|
"php-pushover/php-pushover": "dev-master",
|
||||||
"paragonie/random_compat": "^2.0",
|
"paragonie/random_compat": "^2.0",
|
||||||
"twig/twig": "~1.35.3"
|
"twig/twig": "~1.35"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"files": [
|
"files": [
|
||||||
|
|
|
@ -5,6 +5,6 @@ Requirements
|
||||||
|
|
||||||
* Web server
|
* Web server
|
||||||
* MySQL database
|
* MySQL database
|
||||||
* PHP 5.3.7+
|
* PHP 5.5.9+
|
||||||
* PHP cURL package
|
* PHP cURL package
|
||||||
* PHP PDO mysql driver
|
* PHP PDO mysql driver
|
|
@ -69,12 +69,15 @@ class InstallController extends AbstractController {
|
||||||
$errors = 0;
|
$errors = 0;
|
||||||
|
|
||||||
$phpv = phpversion();
|
$phpv = phpversion();
|
||||||
if (version_compare($phpv, '5.3.7', '<')) {
|
if (version_compare($phpv, '5.5.9', '<')) {
|
||||||
$errors++;
|
$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 {
|
} else {
|
||||||
$this->addMessage('PHP version: '.$phpv, 'success');
|
$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')) {
|
if (!function_exists('curl_init')) {
|
||||||
$this->addMessage('PHP is installed without the cURL module. Please install cURL.', 'warning');
|
$this->addMessage('PHP is installed without the cURL module. Please install cURL.', 'warning');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue