Browse Source

Restore error handlers.

When switching error handlers, remember to pop off the stack.
mark_story 14 years ago
parent
commit
111db16ca6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/Cake/Core/Configure.php

+ 2 - 0
lib/Cake/Core/Configure.php

@@ -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;