mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Fixed bug #55118 (Imcomplete start message)
This commit is contained in:
parent
3e6b211935
commit
7711da059e
1 changed files with 9 additions and 1 deletions
|
@ -2069,7 +2069,15 @@ int do_cli_server(int argc, char **argv TSRMLS_DC) /* {{{ */
|
|||
return 1;
|
||||
}
|
||||
} else {
|
||||
document_root = ".";
|
||||
char path[MAXPATHLEN];
|
||||
char *ret = NULL;
|
||||
|
||||
#if HAVE_GETCWD
|
||||
ret = VCWD_GETCWD(path, MAXPATHLEN);
|
||||
#elif HAVE_GETWD
|
||||
ret = VCWD_GETWD(path);
|
||||
#endif
|
||||
document_root = ret ? path : ".";
|
||||
}
|
||||
|
||||
if (argc > php_optind) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue