From: Greg Sabino Mullane Date: Sun, 10 Feb 2008 13:33:36 +0000 (+0000) Subject: We're stating CommandLineMode is true, but Exception.php won't know what STDERR is. X-Git-Tag: 1.31.0-rc.0~49534 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=c195099146d59b2212ff9219dbc2d3b0e47920c8;p=lhc%2Fweb%2Fwiklou.git We're stating CommandLineMode is true, but Exception.php won't know what STDERR is. --- diff --git a/config/index.php b/config/index.php index 292fd851b9..9a9000d75c 100644 --- a/config/index.php +++ b/config/index.php @@ -753,6 +753,8 @@ if( $conf->posted && ( 0 == count( $errs ) ) ) { $wgDBts2schema = $conf->DBts2schema; $wgCommandLineMode = true; + if (! defined ( 'STDERR' ) ) + define( STDERR, fopen("php://stderr", "wb")); $wgUseDatabaseMessages = false; /* FIXME: For database failure */ require_once( "$IP/includes/Setup.php" ); chdir( "config" );