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
|
// Check ssl cert just when other error is not already in...
|
||||||
$this->checkSsl($this->server, $this->error, $result);
|
if ($result !== false) {
|
||||||
|
$this->checkSsl($this->server, $this->error, $result);
|
||||||
|
}
|
||||||
|
|
||||||
// check if server is available and rerun if asked.
|
// check if server is available and rerun if asked.
|
||||||
if (!$result && $run < $max_runs) {
|
if (!$result && $run < $max_runs) {
|
||||||
|
@ -404,7 +406,7 @@ class StatusUpdater
|
||||||
*/
|
*/
|
||||||
private function checkSsl($server, &$error, &$result)
|
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.";
|
$error = "The server you're running PSM on must use PHP 7.1 or higher to test the SSL expiration.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue