浏览代码

Merge branch 'release/4.0.2'

Ne-Lexa 3 年之前
父节点
当前提交
88a1b6549b
共有 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);