From 6c9aca8677a5d2bf396fc10de7afc669671504b0 Mon Sep 17 00:00:00 2001 From: TimZ99 Date: Tue, 4 Feb 2020 15:23:00 +0100 Subject: [PATCH] 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. --- src/psm/Util/Server/Updater/StatusUpdater.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/psm/Util/Server/Updater/StatusUpdater.php b/src/psm/Util/Server/Updater/StatusUpdater.php index 7e4ee950..2452081e 100644 --- a/src/psm/Util/Server/Updater/StatusUpdater.php +++ b/src/psm/Util/Server/Updater/StatusUpdater.php @@ -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