* (bug 12184) Exceptions now sent to stderr instead of stdout for command-line
[lhc/web/wiklou.git] / maintenance / backup.inc
index ee44954..94fb48c 100644 (file)
@@ -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 );