DefaultHandler.php.patch (1,140 bytes)
--- DefaultHandler.php.orig 2009-01-16 10:27:04.000000000 +0000
+++ DefaultHandler.php 2009-01-16 10:39:45.000000000 +0000
@@ -65,7 +65,7 @@
$error_hash = self::getExceptionHash($exception);
$backtrace = self::getBacktraceOutput($exception->getTrace());
self::sendEmail($backtrace, null, $exception, $error_hash);
- self::showOutput('Exception (code ' . $exception->getCode(). ')', $exception->getMessage(), $exception->getFile(), $exception->getLine(), $backtrace, true);
+ self::showOutput('Exception (code ' . $exception->getCode(). ') #' . $error_hash, $exception->getMessage(), $exception->getFile(), $exception->getLine(), $backtrace, true);
self::writeLog('Exception (code ' . $exception->getCode(). ')', $exception->getMessage(), $exception->getFile(), $exception->getLine(), $backtrace);
die();
}
@@ -122,7 +122,7 @@
$termination_error = true;
}
- self::showOutput($errtype, $errmsg, $filename, $linenum, $backtrace, $termination_error);
+ self::showOutput($errtype.' #'.$error_hash, $errmsg, $filename, $linenum, $backtrace, $termination_error);
if ($termination_error) {
die();