summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xindex.php12
-rw-r--r--system/core/Common.php1
2 files changed, 0 insertions, 13 deletions
diff --git a/index.php b/index.php
index a38ea991c..3040ef080 100755
--- a/index.php
+++ b/index.php
@@ -196,18 +196,6 @@ 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
* -------------------------------------------------------------------
diff --git a/system/core/Common.php b/system/core/Common.php
index 0353a9d10..edfad99c5 100644
--- a/system/core/Common.php
+++ b/system/core/Common.php
@@ -600,7 +600,6 @@ if ( ! function_exists('_shutdown_handler'))
if (isset($last_error) &&
($last_error['type'] & (E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING)))
{
- chdir(CIPATH);
_exception_handler($last_error['type'], $last_error['message'], $last_error['file'], $last_error['line']);
}
}