From 194cd13c2bd97872fa32ef00fdc21542113e9ec8 Mon Sep 17 00:00:00 2001 From: George Wang Date: Wed, 9 Dec 2015 00:09:14 -0500 Subject: [PATCH] Fixed __DIR__ in CLI mode. --- sapi/litespeed/lsapi_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sapi/litespeed/lsapi_main.c b/sapi/litespeed/lsapi_main.c index a296261e1a..f7098fb202 100644 --- a/sapi/litespeed/lsapi_main.c +++ b/sapi/litespeed/lsapi_main.c @@ -771,6 +771,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 -- 2.40.0