- Fixed bug #55118 (Imcomplete start message)

This commit is contained in:
Felipe Pena 2011-07-03 14:45:41 +00:00
parent 5f33819f9c
commit df10314070

View file

@ -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) {