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

From: Date: Wed, 09 Dec 2015 05:25:48 +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-90158@lists.php.net to get a copy of this message
Commit: 84fd8ffa2ab213ce6bd2981c45e76e6e43db3604 Author: George Wang <gwang@php.net> Wed, 9 Dec 2015 00:09:14 -0500 Parents: a90ce6de3116bf6f26bb95533101171f659aa405 Branches: PHP-5.6 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=84fd8ffa2ab213ce6bd2981c45e76e6e43db3604 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 00f05ef..0f76270 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

« previous php.cvs (#90158) next »