]> granicus.if.org Git - php/commitdiff
correct error message for a missing document root in the cli webserver
authorDavid Soria Parra <dsp@php.net>
Wed, 29 Jun 2011 23:44:02 +0000 (23:44 +0000)
committerDavid Soria Parra <dsp@php.net>
Wed, 29 Jun 2011 23:44:02 +0000 (23:44 +0000)
the document root is always a directory.

sapi/cli/php_cli_server.c

index b0423a1a4f7708a54a5b977a95c592e07d932a53..1eec3a4f1bee8ada5bc5530d424c6ffe5004a932 100644 (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)) {