Hotfix - check ssl (#850)
Fixes #849. Check ssl just when other error is not already in CheckSsl should check PHP_VERSION and not PHP_RELEASE_VERSIONpull/870/head
commit
19fb244592
|
@ -366,8 +366,10 @@ class StatusUpdater
|
|||
}
|
||||
}
|
||||
|
||||
// Check ssl cert
|
||||
$this->checkSsl($this->server, $this->error, $result);
|
||||
// Check ssl cert just when other error is not already in...
|
||||
if ($result !== false) {
|
||||
$this->checkSsl($this->server, $this->error, $result);
|
||||
}
|
||||
|
||||
// check if server is available and rerun if asked.
|
||||
if (!$result && $run < $max_runs) {
|
||||
|
@ -404,7 +406,7 @@ class StatusUpdater
|
|||
*/
|
||||
private function checkSsl($server, &$error, &$result)
|
||||
{
|
||||
if (version_compare(PHP_RELEASE_VERSION, '7.1', '<')) {
|
||||
if (version_compare(PHP_VERSION, '7.1', '<')) {
|
||||
$error = "The server you're running PSM on must use PHP 7.1 or higher to test the SSL expiration.";
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue