- Rolling back debug_backtrace(). Handy to have, but PHP 4.3 required.

4.3.x
Kjartan Mannes 2003-09-29 14:36:48 +00:00
parent 57c60ddbe2
commit 9a0573a8e1
1 changed files with 1 additions and 4 deletions

View File

@ -31,10 +31,7 @@ function error_handler($errno, $message, $filename, $line, $variables) {
if ($errno & E_ALL ^ E_NOTICE) {
watchdog("error", $types[$errno] .": $message in $filename on line $line.");
foreach (debug_backtrace() as $trace) {
$functions[] = "$trace[function] ($trace[file]:$trace[line])" . $trace["args"][0];
}
print "<pre>$entry\n". implode(" -> ", $functions) ."</pre>";
print "<pre>$entry</pre>";
}
}