Преглед на файлове

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