From 4124462c61efcc68f277e8f84f42ad1070a03c19 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 21 Apr 2010 13:44:53 +0000 Subject: [PATCH] Use wfSuppress/RestoreWarnings instead of @ --- maintenance/Maintenance.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php index 409d399bea..37432c8e56 100644 --- a/maintenance/Maintenance.php +++ b/maintenance/Maintenance.php @@ -644,7 +644,9 @@ abstract class Maintenance { } $wgShowSQLErrors = true; - @set_time_limit( 0 ); + wfSuppressWarnings(); + set_time_limit( 0 ); + wfRestoreWarnings(); ini_set( 'memory_limit', $this->memoryLimit() ); $wgProfiling = false; // only for Profiler.php mode; avoids OOM errors -- 2.20.1