|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #54645 zip:// stream wrapper does not allow wrapping of non-filesystem http:// streams
Submitted: 2011-05-01 14:15 UTC Modified: 2018-03-26 16:02 UTC
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: seva dot lapsha at gmail dot com Assigned:
Status: Open Package: Zip Related
PHP Version: 5.3.6 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: seva dot lapsha at gmail dot com
New email:
PHP Version: OS:


 [2011-05-01 14:15 UTC] seva dot lapsha at gmail dot com
zip:// stream wrapper doesn't support streams created from sources other than 
files. E.g. reading from zip:// will fail with


As far as I can see, this is just not implemented in ZipArchive.

Test script:
$res = fopen('zip://');

Expected result:
Reading from zip wrapped URL should be possible.

Actual result:
Reading from zip wrapped URL gives warning:

fopen(zip:// failed to open stream: operation failed


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-01 14:24 UTC]
-Status: Open +Status: Bogus
 [2011-05-01 14:24 UTC]
it does support non file system, but the file system must be seekable, which is 
not the case for http.
 [2011-05-01 15:13 UTC] seva dot lapsha at gmail dot com
back-seeking may be needed for more complex operations in ZipArchive, but to read 
a stream directly from the Zip archive, it's not required.

For instance, there is a Java Zip Input Stream, which is buffered but not seeking.
 [2011-05-01 15:18 UTC]
-Status: Bogus +Status: Open
 [2011-05-01 15:18 UTC]
ZipStream are something different but it is not supported anyway. Moving to FR.
 [2018-03-26 16:02 UTC]
-Type: Bug +Type: Feature/Change Request
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Jan 18 14:01:25 2021 UTC