com php-src: Fixed __DIR__ in CLI mode.: sa pi/litespeed/lsapi_main.c

From: Date: Wed, 09 Dec 2015 10:37:40 +0000
Subject: com php-src: Fixed __DIR__ in CLI mode.: sa pi/litespeed/lsapi_main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-90175@lists.php.net to get a copy of this message
Commit: 42789e2b8a8aa981924fb29a620c6f1a8967e25f Author: George Wang <gwang@php.net> Wed, 9 Dec 2015 00:09:14 -0500 Committer: Anatol Belski <ab@php.net> Wed, 9 Dec 2015 11:37:40 +0100 Parents: 4b16082e94d01dd855b2bf8e86a60231b4e8eba4 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=42789e2b8a8aa981924fb29a620c6f1a8967e25f Log: Fixed __DIR__ in CLI mode. Changed paths: M sapi/litespeed/lsapi_main.c Diff: diff --git a/sapi/litespeed/lsapi_main.c b/sapi/litespeed/lsapi_main.c index 13bca0c...6f8f9e6 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

« previous php.cvs (#90175) next »