1
0
Fork 0

Merge pull request #7428 from epieddy/bugfix/ziparchive-closing

Closing the ZipArchive in ArtifactRepository::getComposerInformation()
pull/7405/head
Rob 2018-07-02 17:52:54 +02:00 committed by GitHub
commit bbee0a6d85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);