1
0
mirror of https://github.com/Ne-Lexa/php-zip.git synced 2025-08-31 02:39:49 +02:00

4 Commits
4.0.1 ... 4.0.2

Author SHA1 Message Date
Ne-Lexa
88a1b6549b Merge branch 'release/4.0.2' 2022-06-17 14:17:46 +03:00
Ne-Lexa
9e1d4a1d7a Merge pull request #82 from mbardelmeijer/patch-1
Remove ftruncate for saveAsStream
2021-12-12 13:42:46 +03:00
Ne-Lexa
66168de897 Merge tag '4.0.1' into develop
4.0.1 version
2021-12-12 12:50:55 +03:00
Michel Bardelmeijer
0251dbf5c7 Remove ftruncate for saveAsStream 2021-09-06 20:28:28 +02: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);