rrichards Thu Nov 11 08:09:04 2004 EDT Modified files: (Branch: PHP_5_0) /php-src/main/streams streams.c Log: support file:/// under windows again http://cvs.php.net/diff.php/php-src/main/streams/streams.c?r1=1.61.2.3&r2=1.61.2.4&ty=u Index: php-src/main/streams/streams.c diff -u php-src/main/streams/streams.c:1.61.2.3 php-src/main/streams/streams.c:1.61.2.4 --- php-src/main/streams/streams.c:1.61.2.3 Mon Oct 11 14:32:59 2004 +++ php-src/main/streams/streams.c Thu Nov 11 08:09:03 2004 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.61.2.3 2004/10/11 18:32:59 iliaa Exp $ */ +/* $Id: streams.c,v 1.61.2.4 2004/11/11 13:09:03 rrichards Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -1467,7 +1467,7 @@ /* 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
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php