瀏覽代碼

Merge pull request #82 from mbardelmeijer/patch-1

Remove ftruncate for saveAsStream
Ne-Lexa 4 年之前
父節點
當前提交
9e1d4a1d7a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/ZipFile.php

+ 1 - 1
src/ZipFile.php

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