diff --git a/src/Composer/Util/Filesystem.php b/src/Composer/Util/Filesystem.php index b940ced48..d1200dde9 100644 --- a/src/Composer/Util/Filesystem.php +++ b/src/Composer/Util/Filesystem.php @@ -597,6 +597,10 @@ class Filesystem */ public function relativeSymlink($target, $link) { + if (!function_exists('symlink')) { + return false; + } + $cwd = getcwd(); $relativePath = $this->findShortestPath($link, $target);