1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-08-05 15:07:26 +02:00

Merge branch 'release/4.0.2'

This commit is contained in:
Ne-Lexa
2022-06-17 14:17:46 +03:00

View File

@@ -1537,7 +1537,7 @@ class ZipFile implements \Countable, \ArrayAccess, \Iterator
if (!\is_resource($handle)) {
throw new InvalidArgumentException('handle is not resource');
}
ftruncate($handle, 0);
$this->writeZipToStream($handle);
fclose($handle);