http://www.mediawiki.org/wiki/Special:Code/MediaWiki/56351

Revision: 56351
Author:   tstarling
Date:     2009-09-15 06:21:49 +0000 (Tue, 15 Sep 2009)

Log Message:
-----------
More useful debug output for CGI

Modified Paths:
--------------
    trunk/phase3/includes/Setup.php

Modified: trunk/phase3/includes/Setup.php
===================================================================
--- trunk/phase3/includes/Setup.php     2009-09-15 00:24:24 UTC (rev 56350)
+++ trunk/phase3/includes/Setup.php     2009-09-15 06:21:49 UTC (rev 56351)
@@ -168,7 +168,15 @@
        }
        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 ) {



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to