From 086ae52d12011746a75f5588e877347bc0457352 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Fri, 21 Mar 2008 11:49:34 +0100 Subject: Update auf MediaWiki 1.12.0 --- maintenance/commandLine.inc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'maintenance/commandLine.inc') diff --git a/maintenance/commandLine.inc b/maintenance/commandLine.inc index 4466344f..f7bb53ff 100644 --- a/maintenance/commandLine.inc +++ b/maintenance/commandLine.inc @@ -216,6 +216,20 @@ if ( defined( 'MW_CMDLINE_CALLBACK' ) ) { ini_set( 'memory_limit', -1 ); +if( version_compare( phpversion(), '5.2.4' ) >= 0 ) { + // Send PHP warnings and errors to stderr instead of stdout. + // This aids in diagnosing problems, while keeping messages + // out of redirected output. + if( ini_get( 'display_errors' ) ) { + ini_set( 'display_errors', 'stderr' ); + } + + // Don't touch the setting on earlier versions of PHP, + // as setting it would disable output if you'd wanted it. + + // Note that exceptions are also sent to stderr when + // command-line mode is on, regardless of PHP version. +} $wgShowSQLErrors = true; require_once( "$IP/includes/Setup.php" ); -- cgit v1.2.2