Restore error handlers.

When switching error handlers, remember to pop off the stack.
This commit is contained in:
mark_story 2012-03-16 20:56:24 -04:00
parent fd824c1da5
commit 111db16ca6

View file

@ -83,6 +83,8 @@ class Configure {
if (!include APP . 'Config' . DS . 'bootstrap.php') {
trigger_error(__d('cake_dev', "Can't find application bootstrap file. Please create %sbootstrap.php, and make sure it is readable by PHP.", APP . 'Config' . DS), E_USER_ERROR);
}
restore_error_handler();
restore_exception_handler();
self::$_values['Error'] = $error;
self::$_values['Exception'] = $exception;