Index: trunk/phase3/includes/Setup.php |
— | — | @@ -155,9 +155,9 @@ |
156 | 156 | if( !( empty( $memlimit ) || $memlimit == -1 ) ) { |
157 | 157 | if( wfParseMemoryLimit( $memlimit ) < wfParseMemoryLimit( $wgMemoryLimit ) ) { |
158 | 158 | wfDebug( "\n\nRaise PHP's memory limit from $memlimit to $wgMemoryLimit\n" ); |
| 159 | + wfDisableWarnings(); |
| 160 | + ini_set( "memory_limit", $wgMemoryLimit ); |
159 | 161 | wfEnableWarnings(); |
160 | | - ini_set( "memory_limit", $wgMemoryLimit ); |
161 | | - wfDisableWarnings(); |
162 | 162 | } |
163 | 163 | } |
164 | 164 | |