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.pull/831/head
parent
b175fd3504
commit
6c9aca8677
|
@ -398,6 +398,10 @@ class StatusUpdater
|
||||||
*/
|
*/
|
||||||
private function checkSsl($server, &$error, &$result)
|
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 (
|
if (
|
||||||
!empty($this->curl_info['certinfo']) &&
|
!empty($this->curl_info['certinfo']) &&
|
||||||
$server['ssl_cert_expiry_days'] > 0
|
$server['ssl_cert_expiry_days'] > 0
|
||||||
|
|
Loading…
Reference in New Issue