From c195099146d59b2212ff9219dbc2d3b0e47920c8 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Sun, 10 Feb 2008 13:33:36 +0000 Subject: [PATCH] We're stating CommandLineMode is true, but Exception.php won't know what STDERR is. --- config/index.php | 2 ++ 1 file changed, 2 insertions(+) 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" ); -- 2.20.1