1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 16:38:25 +02:00

Fixed __DIR__ in CLI mode.

This commit is contained in:
George Wang
2015-12-09 00:09:14 -05:00
parent 372a839040
commit 194cd13c2b
+2
View File
@@ -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