From 809489f67bd5045446bf77c86e0310472ecbae95 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 14 Apr 2015 09:13:00 +0000 Subject: [PATCH] iremove ARCH warning in config.inc --- src/etc/inc/config.inc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/etc/inc/config.inc b/src/etc/inc/config.inc index 8f34ec98c..6499c131e 100644 --- a/src/etc/inc/config.inc +++ b/src/etc/inc/config.inc @@ -31,14 +31,12 @@ // Set the memory limit to 128M on i386. When someone has something like 500+ tunnels // the parser needs quite a bit of ram. Do not remove this line unless you // know what you are doing. If in doubt, check with dev@ _/FIRST/_! -if(!$ARCH) - $ARCH = php_uname("m"); - // Set memory limit to 256M on amd64. -if($ARCH == "amd64") +if(php_uname("m") == "amd64") { ini_set("memory_limit","256M"); -else +} else { ini_set("memory_limit","128M"); +} /* include globals from notices.inc /utility/XML parser files */ require_once("notices.inc");