BUGFIX: Get backtrace rather than crazy context stuff shown in dev error messages

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@78470 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-06-05 01:55:15 +00:00
parent d558394ed5
commit 74c89fced4

View File

@ -656,14 +656,14 @@ function errorHandler($errno, $errstr, $errfile, $errline, $errcontext) {
case E_ERROR:
case E_CORE_ERROR:
case E_USER_ERROR:
Debug::fatalHandler($errno, $errstr, $errfile, $errline, $errcontext);
Debug::fatalHandler($errno, $errstr, $errfile, $errline, null);
break;
case E_NOTICE:
case E_WARNING:
case E_CORE_WARNING:
case E_USER_WARNING:
Debug::warningHandler($errno, $errstr, $errfile, $errline, $errcontext);
Debug::warningHandler($errno, $errstr, $errfile, $errline, null);
break;
}