-
Description of the problemZipStream dies in mid stream with error: ZipStream works fine for smaller archives. This one dies at around 19.6MB. 10Ks of small files around 7000 bytes each. Example code$Opt = new ZipStream\Option\Archive();
$Opt->setComment('Test');
$Opt->setSendHttpHeaders(true);
$Opt->setFlushOutput(true);
$Zip = new ZipStream\ZipStream('test.zip', $Opt);
// loop 10Ks of iterations... {
$this->Zip->addFileFromPath('testloop.html', '/filesystem/file_location');
// endloop }
$Zip->finish(); Informations
Please include any supplemental information you deem relevant to this issue. I've tried changing lots of options with no luck. These changes all produced the same error: $Opt->setLargeFileMethod(ZipStream\Option\Method::STORE());
$Opt->setLargeFileSize(3000000);
$Opt->setDeflateLevel(-1); // tried 3 and 6 too
$Opt->setEnableZip64(true); // tried false too |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You need to edit your |
Beta Was this translation helpful? Give feedback.
-
@cgebhard ZipStream needs to store a small piece of information until the end about every file. Given that the memory is not used by the output buffer (please verify), that's most likely the culprit. There's however nothing we can do about that and you'll need to raise the memory limit to account for that. |
Beta Was this translation helpful? Give feedback.
@cgebhard ZipStream needs to store a small piece of information until the end about every file.
Given that the memory is not used by the output buffer (please verify), that's most likely the culprit.
There's however nothing we can do about that and you'll need to raise the memory limit to account for that.