From c21e84ea778165d60ca5a65d6fe6640cc3a28678 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 23 Dec 2014 16:58:47 +0100 Subject: [PATCH] Fix memory limit check in WCFSetup --- wcfsetup/install/files/lib/system/WCFSetup.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wcfsetup/install/files/lib/system/WCFSetup.class.php b/wcfsetup/install/files/lib/system/WCFSetup.class.php index 70b772490d..abdee41913 100644 --- a/wcfsetup/install/files/lib/system/WCFSetup.class.php +++ b/wcfsetup/install/files/lib/system/WCFSetup.class.php @@ -409,7 +409,7 @@ class WCFSetup extends WCF { } /** - * Returns true if memory_limit is set to at least 64 MB + * Returns true if memory_limit is set to at least 128 MB * * @return boolean */ @@ -423,8 +423,8 @@ class WCFSetup extends WCF { // completely numeric, PHP assumes byte if (is_numeric($memoryLimit)) { - $memoryLimit = $memoryLimit / 1024; - return ($memoryLimit >= 64); + $memoryLimit = $memoryLimit / 1024 / 1024; + return ($memoryLimit >= 128); } // PHP supports 'K', 'M' and 'G' shorthand notation @@ -432,11 +432,11 @@ class WCFSetup extends WCF { switch ($matches[2]) { case 'K': $memoryLimit = $matches[1] * 1024; - return ($memoryLimit >= 64); + return ($memoryLimit >= 128); break; case 'M': - return ($matches[1] >= 64); + return ($matches[1] >= 128); break; case 'G': -- 2.20.1