summaryrefslogtreecommitdiffstats
path: root/system/core/CodeIgniter.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-10-28 22:46:45 +0100
committerAndrey Andreev <narf@devilix.net>2014-10-28 22:46:45 +0100
commit4b838af40d77684539dd40461bd92e6e453fe675 (patch)
treee998edf78ebbd6e1784e858789ad4fa49a159fd1 /system/core/CodeIgniter.php
parent2a86f07f4639c0a25df977c00cef23b8f34f9475 (diff)
Add a real exception handler
Close #1590 Close #3200
Diffstat (limited to 'system/core/CodeIgniter.php')
-rw-r--r--system/core/CodeIgniter.php3
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');
/*