|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #43652 zip compression direct output
Submitted: 2007-12-21 13:08 UTC Modified: 2017-10-24 07:37 UTC
Avg. Score:3.7 ± 0.9
Reproduced:6 of 6 (100.0%)
Same Version:4 (66.7%)
Same OS:3 (50.0%)
From: goetas at lignano dot it Assigned:
Status: Open Package: Zip Related
PHP Version: 5.6.11 OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: goetas at lignano dot it
New email:
PHP Version: OS:


 [2007-12-21 13:08 UTC] goetas at lignano dot it
trying to create a zip file directly on standard output

Reproduce code:
$zip = new ZipArchive();
$zip->open("php://output", ZIPARCHIVE::CREATE);
$zip->addFromString("testfile.txt", "This is a test");

Expected result:
i expect a zip file sent on standard output

Actual result:
no output


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-21 14:13 UTC]
Zip streams in write mode are not yet supported. I'm working on a stream abstraction layer for the underlying library.
 [2009-03-23 21:19 UTC] fin dot bub at gmail dot com
Same problem stays in 5.2.9.
 [2010-12-20 14:24 UTC]
-Package: Feature/Change Request +Package: Zip Related
 [2015-07-17 10:35 UTC]
-Operating System: Windows XP/Slackware +Operating System: * -PHP Version: 5.2.5 +PHP Version: 5.6.11
 [2017-10-24 07:37 UTC]
-Status: Assigned +Status: Open -Assigned To: pajoye +Assigned To:
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Tue Jan 21 02:01:23 2020 UTC