dmitry Tue Jan 29 14:24:55 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/main fopen_wrappers.c Log: Fixed bug #43491 (Under certain conditions, file_exists() never returns) http://cvs.php.net/viewvc.cgi/php-src/main/fopen_wrappers.c?r1=1.175.2.3.2.13.2.5&r2=1.175.2.3.2.13.2.6&diff_format=u Index: php-src/main/fopen_wrappers.c diff -u php-src/main/fopen_wrappers.c:1.175.2.3.2.13.2.5 php-src/main/fopen_wrappers.c:1.175.2.3.2.13.2.6 --- php-src/main/fopen_wrappers.c:1.175.2.3.2.13.2.5 Mon Dec 31 07:17:17 2007 +++ php-src/main/fopen_wrappers.c Tue Jan 29 14:24:55 2008 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: fopen_wrappers.c,v 1.175.2.3.2.13.2.5 2007/12/31 07:17:17 sebastian Exp $ */ +/* $Id: fopen_wrappers.c,v 1.175.2.3.2.13.2.6 2008/01/29 14:24:55 dmitry Exp $ */ /* {{{ includes */ @@ -148,6 +148,9 @@ path_len = path_file - path_tmp + 1; #if defined(PHP_WIN32) || defined(NETWARE) if (path_len > 1 && path_tmp[path_len - 2] == ':') { + if (path_len != 3) { + return -1; + } /* this is c:\ */ path_tmp[path_len] = '\0'; } else {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php