mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX #3579 bgribaudo: Error in error text rendering
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@73490 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
131316e57a
commit
a970382924
@ -649,21 +649,21 @@ function exceptionHandler($exception) {
|
||||
* @param string $errstr
|
||||
* @param string $errfile
|
||||
* @param int $errline
|
||||
* @param string $errcontext
|
||||
*/
|
||||
function errorHandler($errno, $errstr, $errfile, $errline, $errcontext) {
|
||||
function errorHandler($errno, $errstr, $errfile, $errline) {
|
||||
$bt = debug_backtrace();
|
||||
switch($errno) {
|
||||
case E_ERROR:
|
||||
case E_CORE_ERROR:
|
||||
case E_USER_ERROR:
|
||||
Debug::fatalHandler($errno, $errstr, $errfile, $errline, $errcontext);
|
||||
Debug::fatalHandler($errno, $errstr, $errfile, $errline, $bt);
|
||||
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, $bt);
|
||||
break;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user