Ensure PlBacktrace is loaded before registering errors.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 14 Nov 2010 16:27:14 +0000 (17:27 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 14 Nov 2010 16:28:47 +0000 (17:28 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
include/platal.inc.php

index 761dcaa..a638d0d 100644 (file)
@@ -96,6 +96,8 @@ function pl_error_handler($errno, $errstr, $errfile, $errline)
     }
     $type = isset($errortype[$errno]) ? $errortype[$errno] : $errno;
     $error = strpos($type, 'Warning') !== false || strpos($type, 'Error') !==false;
+
+    pl_autoload('PlBacktrace');
     if (!isset(PlBacktrace::$bt['PHP Errors'])) {
         new PlBacktrace('PHP Errors');
     }