php.net |  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: 2015-07-17 10:35 UTC
Votes:6
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: pajoye
Status: Assigned Package: Zip Related
PHP Version: 5.6.11 OS: *
Private report: No CVE-ID:
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-12-21 13:08 UTC] goetas at lignano dot it
Description:
------------
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");
$zip->close();

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

Actual result:
--------------
no output

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-12-21 14:13 UTC] pajoye@php.net
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] jani@php.net
-Package: Feature/Change Request +Package: Zip Related
 [2015-07-17 10:35 UTC] cmb@php.net
-Operating System: Windows XP/Slackware +Operating System: * -PHP Version: 5.2.5 +PHP Version: 5.6.11
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Aug 29 15:01:52 2017 UTC