Removed the last backtrace funcion due to an infinite loop

This commit is contained in:
Shoghi Cervantes Pueyo
2013-03-05 12:51:39 +01:00
parent a3e141672a
commit 8c32b3d896
3 changed files with 9 additions and 18 deletions

View File

@ -209,11 +209,6 @@ function console($message, $EOL = true, $log = true, $level = 1){
function fatal_handler($errno, $errstr, $errfile, $errline){
global $lasttrace;
console("[ERROR] A level ".$errno." error happened: \"$errstr\" in \"$errfile\" at line $errline", true, true, 0);
ob_start();
debug_print_backtrace();
$lasttrace = ob_get_contents();
ob_end_clean();
console("[ERROR] [Backtrace] $lasttrace", true, true, 0);
return false;
}