2
0
Эх сурвалжийг харах

Remove ftruncate for saveAsStream

Michel Bardelmeijer 4 жил өмнө
parent
commit
0251dbf5c7
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);