From: Tim Düsterhus Date: Mon, 1 Nov 2021 10:19:53 +0000 (+0100) Subject: Make PHP status in SystemCheckPage resilient against method reordering X-Git-Tag: 5.4.9_dev_1~28 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba725407cd3e7ee83961e355252841153493face;p=GitHub%2FWoltLab%2FWCF.git Make PHP status in SystemCheckPage resilient against method reordering --- diff --git a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php index 5fe9bb41c9..1a090c9846 100644 --- a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php @@ -313,7 +313,7 @@ class SystemCheckPage extends AbstractPage $this->results['php']['sha256'] = \in_array('sha256', \hash_algos()); } - $this->results['status']['php'] = empty($this->results['php']['extension']) && $this->results['php']['sha256']; + $this->results['status']['php'] = $this->results['status']['php'] && empty($this->results['php']['extension']) && $this->results['php']['sha256']; } protected function validatePhpMemoryLimit()