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

index 496fb0f6d44ca8b53be318035d947e9b0e22f84f..01cadbd4a71bdf9cb77da3641a1cafc50bdc1898 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