diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 76bf26d4..f5ef02cc 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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. diff --git a/README.rst b/README.rst index c93e1ef0..c3a86aab 100755 --- a/README.rst +++ b/README.rst @@ -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 diff --git a/composer.json b/composer.json index c57152c9..3f1a12ff 100755 --- a/composer.json +++ b/composer.json @@ -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": [ diff --git a/docs/requirements.rst b/docs/requirements.rst index 2dbb9ce0..279fba99 100644 --- a/docs/requirements.rst +++ b/docs/requirements.rst @@ -5,6 +5,6 @@ Requirements * Web server * MySQL database -* PHP 5.3.7+ +* PHP 5.5.9+ * PHP cURL package * PHP PDO mysql driver \ No newline at end of file diff --git a/src/psm/Module/Install/Controller/InstallController.php b/src/psm/Module/Install/Controller/InstallController.php index 09b5c606..21d18973 100644 --- a/src/psm/Module/Install/Controller/InstallController.php +++ b/src/psm/Module/Install/Controller/InstallController.php @@ -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 here.', 'warning'); + } if (!function_exists('curl_init')) { $this->addMessage('PHP is installed without the cURL module. Please install cURL.', 'warning'); } else {