dmitry Tue Jan 29 14:25:08 2008 UTC Modified files: /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.201&r2=1.202&diff_format=u Index: php-src/main/fopen_wrappers.c diff -u php-src/main/fopen_wrappers.c:1.201 php-src/main/fopen_wrappers.c:1.202 --- php-src/main/fopen_wrappers.c:1.201 Mon Dec 31 07:12:18 2007 +++ php-src/main/fopen_wrappers.c Tue Jan 29 14:25:07 2008 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: fopen_wrappers.c,v 1.201 2007/12/31 07:12:18 sebastian Exp $ */ +/* $Id: fopen_wrappers.c,v 1.202 2008/01/29 14:25:07 dmitry Exp $ */ /* {{{ includes */ @@ -204,6 +204,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