r56351 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r56350‎ | r56351 | r56352 >
Date:06:21, 15 September 2009
Author:tstarling
Status:ok
Tags:
Comment:
More useful debug output for CGI
Modified paths:
  • /trunk/phase3/includes/Setup.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Setup.php
@@ -168,7 +168,15 @@
169169 }
170170 wfDebug( "\n" );
171171 } elseif( isset( $_SERVER['REQUEST_URI'] ) ) {
 172+ wfDebug( "\n\nStart request\n" );
172173 wfDebug( $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUEST_URI'] . "\n" );
 174+ foreach ( $_SERVER as $name => $value ) {
 175+ if ( substr( $name, 0, 5 ) == 'HTTP_' ) {
 176+ $name = substr( $name, 5 );
 177+ wfDebug( "$name: $value\n" );
 178+ }
 179+ }
 180+ wfDebug( "\n" );
173181 }
174182
175183 if( $wgRCFilterByAge ) {

Status & tagging log