mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-05 19:12:42 +00:00
Restore error handlers.
When switching error handlers, remember to pop off the stack.
This commit is contained in:
parent
fd824c1da5
commit
111db16ca6
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue