From: Tim Starling Date: Tue, 15 Sep 2009 06:21:49 +0000 (+0000) Subject: More useful debug output for CGI X-Git-Tag: 1.31.0-rc.0~39724 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=c59dd84ce9a1434f69d14144c477b1aaa670acca;p=lhc%2Fweb%2Fwiklou.git More useful debug output for CGI --- 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 ) {