diff options
author | Brion Vibber <brion@users.mediawiki.org> | 2007-12-06 21:07:49 +0000 |
---|---|---|
committer | Brion Vibber <brion@users.mediawiki.org> | 2007-12-06 21:07:49 +0000 |
commit | 60c13d2853c5522e48081a4b8712532741362d34 (patch) | |
tree | 51f45cc483072bbc231eb4700349ecb5a3ac54a3 /maintenance/backup.inc | |
parent | 78d45ea73926c526c8302ff6703476092e59dc2f (diff) | |
download | mediawikicore-60c13d2853c5522e48081a4b8712532741362d34.tar.gz mediawikicore-60c13d2853c5522e48081a4b8712532741362d34.zip |
* (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.
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/28222
Diffstat (limited to 'maintenance/backup.inc')
-rw-r--r-- | maintenance/backup.inc | 3 |
1 files changed, 2 insertions, 1 deletions
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 ); |