Skip to content

Commit

Permalink
Fix warnings when some code reuses the phpvfscomposer:// stream wrapp…
Browse files Browse the repository at this point in the history
…er to try and access other files, refs #10387
  • Loading branch information
Seldaek committed Dec 31, 2021
1 parent 2cd16b4 commit 75e4d30
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Composer/Installer/BinaryInstaller.php
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 75e4d30

Please sign in to comment.