Explorar o código

Merge branch 'release/4.0.2'

Ne-Lexa %!s(int64=3) %!d(string=hai) anos
pai
achega
88a1b6549b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);