From 60c13d2853c5522e48081a4b8712532741362d34 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 6 Dec 2007 21:07:49 +0000 Subject: * (bug 12184) Exceptions now sent to stderr instead of stdout for command-line scripts, making for cleaner reporting during batch jobs. PHP errors will also be redirected in most cases on PHP 5.2.4 and later, switching 'display_errors' to 'stderr' at runtime. --- maintenance/backup.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'maintenance/backup.inc') diff --git a/maintenance/backup.inc b/maintenance/backup.inc index ee44954ca44f..94fb48c9ae3c 100644 --- a/maintenance/backup.inc +++ b/maintenance/backup.inc @@ -170,7 +170,8 @@ class BackupDumper { function dump( $history, $text = MW_EXPORT_TEXT ) { # Notice messages will foul up your XML output even if they're # relatively harmless. - ini_set( 'display_errors', false ); + if( ini_get( 'display_errors' ) ) + ini_set( 'display_errors', 'stderr' ); $this->initProgress( $history ); -- cgit v1.2.3