summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Wang <gwang@php.net>2015-12-09 00:09:14 -0500
committerAnatol Belski <ab@php.net>2015-12-09 11:37:40 +0100
commit42789e2b8a8aa981924fb29a620c6f1a8967e25f (patch)
treeedc569ae3e7f11e824284e6b8b205adcf60d4b19
parent4b16082e94d01dd855b2bf8e86a60231b4e8eba4 (diff)
downloadphp-git-42789e2b8a8aa981924fb29a620c6f1a8967e25f.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 13bca0cab3..6f8f9e69e7 100644
--- a/sapi/litespeed/lsapi_main.c
+++ b/sapi/litespeed/lsapi_main.c
@@ -770,6 +770,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