diff options
author | Andrey Andreev <narf@devilix.net> | 2014-10-28 22:46:45 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-10-28 22:46:45 +0100 |
commit | 4b838af40d77684539dd40461bd92e6e453fe675 (patch) | |
tree | e998edf78ebbd6e1784e858789ad4fa49a159fd1 /system/core/CodeIgniter.php | |
parent | 2a86f07f4639c0a25df977c00cef23b8f34f9475 (diff) |
Add a real exception handler
Close #1590
Close #3200
Diffstat (limited to 'system/core/CodeIgniter.php')
-rw-r--r-- | system/core/CodeIgniter.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/system/core/CodeIgniter.php b/system/core/CodeIgniter.php index e3d3a1ffb..88e730bc3 100644 --- a/system/core/CodeIgniter.php +++ b/system/core/CodeIgniter.php @@ -132,7 +132,8 @@ if ( ! is_php('5.4')) * Define a custom error handler so we can log PHP errors * ------------------------------------------------------ */ - set_error_handler('_exception_handler'); + set_error_handler('_error_handler'); + set_exception_handler('_exception_handler'); register_shutdown_function('_shutdown_handler'); /* |