diff options
author | Kaiwang Chen <kaiwang.chen@gmail.com> | 2013-09-11 07:09:41 +0200 |
---|---|---|
committer | Kaiwang Chen <kaiwang.chen@gmail.com> | 2013-09-11 07:09:41 +0200 |
commit | 21fe9daf1cdc86cbd8800515166e19b2f8879b71 (patch) | |
tree | 0bc9cad2bdb1a47c62df87b5716098a8d14b4a60 /index.php | |
parent | 4013be3d0953612ce081802bb6cc331338d8f58a (diff) |
Simulate a complete custom exception handler by redirecting uncaught events.
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -196,6 +196,18 @@ switch (ENVIRONMENT) } /* + *--------------------------------------------------------------- + * WORKING DIRECTORY FOR SHUTDOWN HANDLER + *--------------------------------------------------------------- + * + * CI assumes the directory containing index.php, while shutdown + * handlers execute in process's initial working directory. To make + * logging work, we need to change directory in the shutdown handler. + * + */ + define('CIPATH', getcwd()); + +/* * ------------------------------------------------------------------- * Now that we know the path, set the main path constants * ------------------------------------------------------------------- |