mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
- Fixed bug #55118 (Imcomplete start message)
This commit is contained in:
parent
5f33819f9c
commit
df10314070
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;
|
return 1;
|
||||||
}
|
}
|
||||||
} else {
|
} 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) {
|
if (argc > php_optind) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue