Browse Source

Fix detection of junction points, fixes #7025

Narration SD 7 years ago
parent
commit
fd61a21bff
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Composer/Util/Filesystem.php

+ 1 - 0
src/Composer/Util/Filesystem.php

@@ -665,6 +665,7 @@ class Filesystem
          * Stat cache should be cleared before to avoid accidentally reading wrong information from previous installs.
          */
         clearstatcache(true, $junction);
+        clearstatcache(false);
         $stat = lstat($junction);
 
         return !($stat['mode'] & 0xC000);