r54405 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54404‎ | r54405 | r54406 >
Date:22:58, 4 August 2009
Author:emufarmers
Status:resolved (Comments)
Tags:
Comment:
Suppress warnings when trying to raise the memory limit
Modified paths:
  • /trunk/phase3/includes/Setup.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Setup.php
@@ -155,7 +155,9 @@
156156 if( !( empty( $memlimit ) || $memlimit == -1 ) ) {
157157 if( wfParseMemoryLimit( $memlimit ) < wfParseMemoryLimit( $wgMemoryLimit ) ) {
158158 wfDebug( "\n\nRaise PHP's memory limit from $memlimit to $wgMemoryLimit\n" );
 159+ wfEnableWarnings()
159160 ini_set( "memory_limit", $wgMemoryLimit );
 161+ wfDisableWarnings()
160162 }
161163 }
162164

Comments

#Comment by Brion VIBBER (talk | contribs)   23:15, 4 August 2009

fatal fixed in r54406

Status & tagging log