From: Alexander Ebert Date: Tue, 29 Jan 2019 19:06:36 +0000 (+0100) Subject: Update SystemCheckPage.class.php X-Git-Tag: 5.2.0_Alpha_1~335 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ee7740fc5d194cc6d4e0ace202422e49db6809fa;p=GitHub%2FWoltLab%2FWCF.git Update SystemCheckPage.class.php --- diff --git a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php index 820e812726..0ed3eb3e3d 100644 --- a/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/SystemCheckPage.class.php @@ -199,7 +199,7 @@ class SystemCheckPage extends AbstractPage { // Memory is not limited through PHP. if ($memoryLimit == -1) { - $this->results['php']['memoryLimit']['value'] = '∞'; + $this->results['php']['memoryLimit']['value'] = "\u{221E}"; $this->results['php']['memoryLimit']['result'] = true; } else { @@ -215,7 +215,7 @@ class SystemCheckPage extends AbstractPage { if (preg_match('~^(\d+)([KMG])$~', $memoryLimit, $matches)) { switch ($matches[2]) { case 'K': - $memoryLimit = $matches[1] * 1024; + $memoryLimit = $matches[1] / 1024; $this->results['php']['memoryLimit']['value'] = $memoryLimit . 'M'; $this->results['php']['memoryLimit']['result'] = ($memoryLimit >= $this->phpMemoryLimit);