dmitry          Tue Jan 29 14:23:19 2008 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src    NEWS 
    /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/NEWS?r1=1.2027.2.547.2.1064&r2=1.2027.2.547.2.1065&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.1064 php-src/NEWS:1.2027.2.547.2.1065
--- php-src/NEWS:1.2027.2.547.2.1064    Tue Jan 29 13:39:03 2008
+++ php-src/NEWS        Tue Jan 29 14:23:18 2008
@@ -50,6 +50,8 @@
   allowed in ASCII mode). (Ilia, crrodriguez at suse dot de)
 - Fixed bug #43493 (pdo_pgsql does not send username on connect when password
   is not available). (Ilia)
+- Fixed bug #43491 (Under certain conditions, file_exists() never returns).
+  (Dmitry)
 - Fixed bug #43482 (array_pad() does not warn on very small pad numbers).
   (Ilia)
 - Fixed bug #43457 (Prepared statement with incorrect parms doesn't throw 
http://cvs.php.net/viewvc.cgi/php-src/main/fopen_wrappers.c?r1=1.175.2.3.2.18&r2=1.175.2.3.2.19&diff_format=u
Index: php-src/main/fopen_wrappers.c
diff -u php-src/main/fopen_wrappers.c:1.175.2.3.2.18 
php-src/main/fopen_wrappers.c:1.175.2.3.2.19
--- php-src/main/fopen_wrappers.c:1.175.2.3.2.18        Mon Dec 31 07:20:14 2007
+++ php-src/main/fopen_wrappers.c       Tue Jan 29 14:23:19 2008
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: fopen_wrappers.c,v 1.175.2.3.2.18 2007/12/31 07:20:14 sebastian Exp $ 
*/
+/* $Id: fopen_wrappers.c,v 1.175.2.3.2.19 2008/01/29 14:23:19 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

Reply via email to