From c59dd84ce9a1434f69d14144c477b1aaa670acca Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 15 Sep 2009 06:21:49 +0000 Subject: [PATCH] More useful debug output for CGI --- includes/Setup.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/Setup.php b/includes/Setup.php index 8db15decd0..23ac018c9d 100644 --- a/includes/Setup.php +++ b/includes/Setup.php @@ -168,7 +168,15 @@ if ( $wgCommandLineMode ) { } wfDebug( "\n" ); } elseif( isset( $_SERVER['REQUEST_URI'] ) ) { + wfDebug( "\n\nStart request\n" ); wfDebug( $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . "\n" ); + foreach ( $_SERVER as $name => $value ) { + if ( substr( $name, 0, 5 ) == 'HTTP_' ) { + $name = substr( $name, 5 ); + wfDebug( "$name: $value\n" ); + } + } + wfDebug( "\n" ); } if( $wgRCFilterByAge ) { -- 2.20.1