* (bug 3771) Handle internal functions in backtrace in wfAbruptExit()
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 28 Oct 2005 09:39:22 +0000 (09:39 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 28 Oct 2005 09:39:22 +0000 (09:39 +0000)
http://bugzilla.wikimedia.org/attachment.cgi?id=1011

RELEASE-NOTES
includes/GlobalFunctions.php

index e96ec0f..e8b5fa4 100644 (file)
@@ -186,6 +186,7 @@ fully support the editing toolbar, but was found to be too confusing.
 * (bug 3782) Throw fatal installation warning if mbstring.func_overload on.
   Why do people invent these crazy options that change language semantics?
 * (bug 3762) Define missing Special:Import UI messages
+* (bug 3771) Handle internal functions in backtrace in wfAbruptExit()
 
 
 === Caveats ===
index f26c95a..9513fa3 100644 (file)
@@ -468,8 +468,8 @@ function wfAbruptExit( $error = false ){
        if( function_exists( 'debug_backtrace' ) ){ // PHP >= 4.3
                $bt = debug_backtrace();
                for($i = 0; $i < count($bt) ; $i++){
-                       $file = $bt[$i]['file'];
-                       $line = $bt[$i]['line'];
+                       $file = isset($bt[$i]['file']) ? $bt[$i]['file'] : "unknown";
+                       $line = isset($bt[$i]['line']) ? $bt[$i]['line'] : "unknown";
                        wfDebug("WARNING: Abrupt exit in $file at line $line\n");
                }
        } else {