edink Tue Dec 10 11:18:59 2002 EDT Modified files: (Branch: PHP_4_3) /php4/main streams.c Log: Improve UNC path detection. Index: php4/main/streams.c diff -u php4/main/streams.c:1.125.2.17 php4/main/streams.c:1.125.2.18 --- php4/main/streams.c:1.125.2.17 Mon Dec 9 11:22:06 2002 +++ php4/main/streams.c Tue Dec 10 11:18:59 2002 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.125.2.17 2002/12/09 16:22:06 wez Exp $ */ +/* $Id: streams.c,v 1.125.2.18 2002/12/10 16:18:59 edink Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -1773,7 +1773,7 @@ #ifdef PHP_WIN32 /* skip the sanity check; fstat doesn't appear to work on * UNC paths */ - is_unc = (filename[0] == '\\' && filename[1] == '\\'); + is_unc = IS_UNC_PATH(filename, strlen(filename)); #endif if (!is_unc) { goto err;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php