mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-03-13 19:19:42 +01:00
Merge pull request #82 from mbardelmeijer/patch-1
Remove ftruncate for saveAsStream
This commit is contained in:
commit
9e1d4a1d7a
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user