Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 246b09e

Browse files
author
Julien Jomier
committed
ENH: Now flushing. This seems to fix some memory issues...
1 parent 7779a49 commit 246b09e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/ZipStream/ZipStream.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -530,6 +530,8 @@ private function send($str) {
530530
$this->need_headers = false;
531531

532532
echo $str;
533+
flush(); // forcing to flush buffer so that the download is instantenous
534+
ob_flush(); // forcing to flush buffer so that the download is instantenous
533535
}
534536

535537
#

0 commit comments

Comments
 (0)