Merge pull request #7658 from fooman/fix-non-zip-file-with-zip-ext
Fix regression for artifact repositorypull/7762/head
commit
9e6a0bff71
|
@ -126,7 +126,9 @@ class ArtifactRepository extends ArrayRepository implements ConfigurableReposito
|
||||||
private function getComposerInformation(\SplFileInfo $file)
|
private function getComposerInformation(\SplFileInfo $file)
|
||||||
{
|
{
|
||||||
$zip = new \ZipArchive();
|
$zip = new \ZipArchive();
|
||||||
$zip->open($file->getPathname());
|
if ($zip->open($file->getPathname()) !== true) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (0 == $zip->numFiles) {
|
if (0 == $zip->numFiles) {
|
||||||
$zip->close();
|
$zip->close();
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 123 KiB |
Loading…
Reference in New Issue