From: Benjamin Lees Date: Tue, 4 Aug 2009 22:58:43 +0000 (+0000) Subject: Suppress warnings when trying to raise the memory limit X-Git-Tag: 1.31.0-rc.0~40505 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=95328fafaf92444fb6554d8a133f67fd88067921;p=lhc%2Fweb%2Fwiklou.git Suppress warnings when trying to raise the memory limit --- diff --git a/includes/Setup.php b/includes/Setup.php index 462e201899..97e6344f84 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -155,7 +155,9 @@ $memlimit = ini_get( "memory_limit" ); if( !( empty( $memlimit ) || $memlimit == -1 ) ) { if( wfParseMemoryLimit( $memlimit ) < wfParseMemoryLimit( $wgMemoryLimit ) ) { wfDebug( "\n\nRaise PHP's memory limit from $memlimit to $wgMemoryLimit\n" ); + wfEnableWarnings() ini_set( "memory_limit", $wgMemoryLimit ); + wfDisableWarnings() } }