Set php5 support to 5.6+ (#891)

See bug report for php 5.5.9: https://github.com/phpservermon/phpservermon/issues/889
Fixes #889.

Co-authored-by: Tim <TimZ99@users.noreply.github.com>
This commit is contained in:
imsoftware 2020-05-01 01:17:48 +02:00 committed by GitHub
parent 6c5665d0cd
commit 02c746ae41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

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

View File

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

View File

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