From: Rob Richards Date: Thu, 11 Nov 2004 13:09:03 +0000 (+0000) Subject: support file:/// under windows again X-Git-Tag: php-5.0.3RC1~75 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b6b00a822cc8f74d5e9dae0f2d0fa1df83d594a6;p=php support file:/// under windows again --- diff --git a/main/streams/streams.c b/main/streams/streams.c index a8f010605b..7692005743 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -1467,7 +1467,7 @@ PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, char /* TODO: curl based streams probably support file:// properly */ if (!protocol || !strncasecmp(protocol, "file", n)) { #ifdef PHP_WIN32 - if (protocol && path[n+1] == '/' && path[n+2] == '/' && path[n+4] != ':') { + if (protocol && path[n+1] == '/' && path[n+2] == '/' && path[n+3] != '\0' && path[n+3] != '/' && path[n+4] != ':') { #else if (protocol && path[n+1] == '/' && path[n+2] == '/' && path[n+3] != '/') { #endif