]> granicus.if.org Git - php/commitdiff
Fixed wrong warning
authorDmitry Stogov <dmitry@php.net>
Wed, 11 Jul 2007 14:33:30 +0000 (14:33 +0000)
committerDmitry Stogov <dmitry@php.net>
Wed, 11 Jul 2007 14:33:30 +0000 (14:33 +0000)
main/streams/streams.c

index 50a1db916b60d5f006ab11993cf5739bfb047282..09b497c3a4a19fd5c7d9af8702acffdfbaac5dc8 100755 (executable)
@@ -1557,7 +1557,7 @@ PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, char
 #ifdef PHP_WIN32
                        if (localhost == 0 && path[n+3] != '\0' && path[n+3] != '/' && path[n+4] != ':')        {
 #else
-                       if (localhost == 0 && path[n+3] != '/') {
+                       if (localhost == 0 && path[n+3] != '\0' && path[n+3] != '/') {
 #endif
                                if (options & REPORT_ERRORS) {
                                        php_error_docref(NULL TSRMLS_CC, E_WARNING, "remote host file access not supported, %s", path);