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

index 8699518127a63ab4e2df9bd7e00e2fa80f5efde2..79aa445f57e60f41d6594c0e469d4c4209d61e33 100644 (file)
@@ -742,7 +742,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