From 9355ebd3f67bd91d4595fddd856e4b344f5512ec Mon Sep 17 00:00:00 2001 From: efajnzilberg Date: Mon, 25 Jun 2018 10:34:00 +0200 Subject: [PATCH] Closing the ZipArchive in ArtifactRepository::getComposerInformation() --- src/Composer/Repository/ArtifactRepository.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Repository/ArtifactRepository.php b/src/Composer/Repository/ArtifactRepository.php index a8002123a..374f04cea 100644 --- a/src/Composer/Repository/ArtifactRepository.php +++ b/src/Composer/Repository/ArtifactRepository.php @@ -138,6 +138,7 @@ class ArtifactRepository extends ArrayRepository implements ConfigurableReposito } $configurationFileName = $zip->getNameIndex($foundFileIndex); + $zip->close(); $composerFile = "zip://{$file->getPathname()}#$configurationFileName"; $json = file_get_contents($composerFile);