1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-08-29 17:59:55 +02:00

fix close container in ZipFile::close()

This commit is contained in:
Ne-Lexa
2020-01-22 16:07:22 +03:00
parent 8dcde47072
commit 79e77a8c88
2 changed files with 4 additions and 2 deletions

View File

@@ -1797,8 +1797,9 @@ class ZipFile implements ZipFileInterface
if ($this->reader !== null) {
$this->reader->close();
$this->reader = null;
$this->zipContainer = $this->createZipContainer(null);
}
$this->zipContainer = $this->createZipContainer(null);
gc_collect_cycles();
}
/**