Skip to content
Snippets Groups Projects
Commit 9a0573a8 authored by Kjartan Mannes's avatar Kjartan Mannes
Browse files

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

parent 57c60ddb
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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>";
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment