Przeglądaj źródła

Merge branch 'release/4.0.2'

Ne-Lexa 3 lat temu
rodzic
commit
865834259e
1 zmienionych plików z 1 dodań i 1 usunięć
  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);