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

From: Date: Wed, 09 Dec 2015 05:09:14 +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-90155@lists.php.net to get a copy of this message
Commit: 194cd13c2bd97872fa32ef00fdc21542113e9ec8 Author: George Wang <gwang@php.net> Wed, 9 Dec 2015 00:09:14 -0500 Parents: 372a8390409b066d34739c39bbf4f1087afc72ca Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=194cd13c2bd97872fa32ef00fdc21542113e9ec8 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 a296261..f7098fb 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

« previous php.cvs (#90155) next »