dsp                                      Wed, 29 Jun 2011 23:44:02 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=312646

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

the document root is always a directory.

Changed paths:
    U   php/php-src/branches/PHP_5_4/sapi/cli/php_cli_server.c
    U   php/php-src/trunk/sapi/cli/php_cli_server.c

Modified: php/php-src/branches/PHP_5_4/sapi/cli/php_cli_server.c
===================================================================
--- php/php-src/branches/PHP_5_4/sapi/cli/php_cli_server.c      2011-06-29 
23:40:12 UTC (rev 312645)
+++ php/php-src/branches/PHP_5_4/sapi/cli/php_cli_server.c      2011-06-29 
23:44:02 UTC (rev 312646)
@@ -2061,7 +2061,7 @@
        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)) {

Modified: php/php-src/trunk/sapi/cli/php_cli_server.c
===================================================================
--- php/php-src/trunk/sapi/cli/php_cli_server.c 2011-06-29 23:40:12 UTC (rev 
312645)
+++ php/php-src/trunk/sapi/cli/php_cli_server.c 2011-06-29 23:44:02 UTC (rev 
312646)
@@ -2061,7 +2061,7 @@
        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)) {

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to