1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-08-01 13:10:09 +02:00

Remove ftruncate for saveAsStream

This commit is contained in:
Michel Bardelmeijer
2021-09-06 20:28:28 +02:00
committed by GitHub
parent f216617486
commit 0251dbf5c7

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