]> granicus.if.org Git - php/commitdiff
MFH: fix #38276 (file_exists() works incorrectly with long filenames on Windows)
authorAntony Dovgal <tony2001@php.net>
Thu, 3 Aug 2006 14:17:58 +0000 (14:17 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 3 Aug 2006 14:17:58 +0000 (14:17 +0000)
NEWS
TSRM/tsrm_virtual_cwd.c

diff --git a/NEWS b/NEWS
index b6bec599f39e88a4e14466fd680eb91ecd818f84..4c411c6c0bc08f7e60e2cd9850a59d3f0eaf5196 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -34,6 +34,8 @@ PHP                                                                        NEWS
   (Tony)
 - Fixed bug #38278 (session_cache_expire()'s value does not match phpinfo's 
   session.cache_expire). (Tony)
+- Fixed bug #38276 (file_exists() works incorrectly with long filenames 
+  on Windows). (Ilia, Tony)
 - Fixed bug #38269 (fopen wrapper doesn't fail on invalid hostname with 
   curlwrappers enabled). (Tony)
 - Fixed bug #38261 (openssl_x509_parse() leaks with invalid cert) (Pierre)
index 59a6b81d1deb861e2a52fa350632ca9a9a65ff8d..3c713a1f79dcbffce21d2262b0cbe3caa4e631c6 100644 (file)
@@ -706,7 +706,9 @@ CWD_API FILE *virtual_fopen(const char *path, const char *mode TSRMLS_DC)
        }
 
        CWD_STATE_COPY(&new_state, &CWDG(cwd));
-       virtual_file_ex(&new_state, path, NULL, 1);
+       if (virtual_file_ex(&new_state, path, NULL, 1)) {
+               return -1;
+       }
 
        f = fopen(new_state.cwd, mode);