]> granicus.if.org Git - php/commitdiff
Fixed win32 related realpath cache bug
authorDmitry Stogov <dmitry@php.net>
Mon, 19 May 2008 10:48:57 +0000 (10:48 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 19 May 2008 10:48:57 +0000 (10:48 +0000)
TSRM/tsrm_virtual_cwd.c

index ecad7b496055eeb7a64a1ed62f63a668e39405c2..ec729465cab389cd03bb4cc5d3435cc00695377f 100644 (file)
@@ -743,7 +743,7 @@ no_realpath:
 
        /* Store existent file in realpath cache. */
 #ifdef TSRM_WIN32
-       if (use_cache && !is_unc) {
+       if (use_cache && !is_unc && (use_realpath == CWD_REALPATH)) {
 #else
        if (use_cache && (use_realpath == CWD_REALPATH)) {
 #endif