1
0
mirror of https://github.com/php/php-src.git synced 2026-04-23 07:58:20 +02:00

correct error message for a missing document root in the cli webserver

the document root is always a directory.
This commit is contained in:
David Soria Parra
2011-06-29 23:44:02 +00:00
parent 54b84f832a
commit c1abc8938d
+1 -1
View File
@@ -2061,7 +2061,7 @@ int do_cli_server(int argc, char **argv TSRMLS_DC) /* {{{ */
if (document_root) {
struct stat sb;
if (stat(document_root, &sb)) {
fprintf(stderr, "Directory or script %s does not exist.\n", document_root);
fprintf(stderr, "Directory %s does not exist.\n", document_root);
return 1;
}
if (!S_ISDIR(sb.st_mode)) {