Added 7.0.8 for PHP7 as minimal

pull/656/head
TimZ99 2018-09-17 16:16:05 +02:00
parent eadf278dea
commit 823eb3bc6b
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
3 changed files with 6 additions and 4 deletions

View File

@ -78,7 +78,8 @@ Requirements
* Web server
* MySQL database
* PHP 5.5.9+
* For PHP5: 5.5.9+
* For PHP7: 7.0.8+
* PHP cURL package
* PHP PDO mysql driver
* PHP-XML

View File

@ -5,6 +5,7 @@ Requirements
* Web server
* MySQL database
* PHP 5.5.9+
* For PHP5: 5.5.9+
* For PHP7: 7.0.8+
* PHP cURL package
* PHP PDO mysql driver

View File

@ -69,9 +69,9 @@ class InstallController extends AbstractController {
$errors = 0;
$phpv = phpversion();
if (version_compare($phpv, '5.5.9', '<')) {
if (version_compare($phpv, '5.5.9', '<') || (version_compare($phpv, '7.0.8', '<') && version_compare($phpv, '7.0.0', '>='))) {
$errors++;
$this->addMessage('PHP 5.5.9+ is required to run PHP Server Monitor. You\'re using '.$phpv.'.', 'error');
$this->addMessage('PHP 5.5.9+ or 7.0.8+ is required to run PHP Server Monitor. You\'re using '.$phpv.'.', 'error');
} else {
$this->addMessage('PHP version: '.$phpv, 'success');
}