summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Wang <gwang@php.net>2015-12-09 00:09:14 -0500
committerGeorge Wang <gwang@php.net>2015-12-09 00:25:48 -0500
commit84fd8ffa2ab213ce6bd2981c45e76e6e43db3604 (patch)
tree4a95ad4f48e7a3b6d46436f0e2e799e7e07413ef
parenta90ce6de3116bf6f26bb95533101171f659aa405 (diff)
downloadphp-git-84fd8ffa2ab213ce6bd2981c45e76e6e43db3604.tar.gz
Fixed __DIR__ in CLI mode.
-rw-r--r--sapi/litespeed/lsapi_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/litespeed/lsapi_main.c b/sapi/litespeed/lsapi_main.c
index 00f05ef803..0f76270cc7 100644
--- a/sapi/litespeed/lsapi_main.c
+++ b/sapi/litespeed/lsapi_main.c
@@ -802,6 +802,8 @@ static int cli_main( int argc, char * argv[] )
zend_uv.html_errors = 0; /* tell the engine we're in non-html mode */
CG(in_compilation) = 0; /* not initialized but needed for several options */
+ SG(options) |= SAPI_OPTION_NO_CHDIR;
+
#if PHP_MAJOR_VERSION < 7
EG(uninitialized_zval_ptr) = NULL;
#endif