diff --git a/src/Composer/Installer/BinaryInstaller.php b/src/Composer/Installer/BinaryInstaller.php index de6ca65ab8fd..12787d48c4f3 100644 --- a/src/Composer/Installer/BinaryInstaller.php +++ b/src/Composer/Installer/BinaryInstaller.php @@ -355,7 +355,12 @@ public function stream_set_option(\$option, \$arg1, \$arg2) public function url_stat(\$path, \$flags) { - return stat(substr(\$path, 17)); + \$path = substr(\$path, 17); + if (file_exists(\$path)) { + return stat(\$path); + } + + return false; } } }