Require PHP version 7.1 or higher

Due to an issue mentioned in #820 a warning will be shown if the PHP version is lower than 7.1.
This commit is contained in:
TimZ99 2020-02-04 15:23:00 +01:00
parent b175fd3504
commit 6c9aca8677
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
1 changed files with 4 additions and 0 deletions

View File

@ -398,6 +398,10 @@ class StatusUpdater
*/
private function checkSsl($server, &$error, &$result)
{
if (version_compare(PHP_RELEASE_VERSION, '7.1', '<')) {
$error = "The server you're running PSM on must use PHP 7.1 or higher to test the SSL expiration.";
return;
}
if (
!empty($this->curl_info['certinfo']) &&
$server['ssl_cert_expiry_days'] > 0