Bug #54645 [Opn->Bgs]: zip:// stream wrapper does not allow wrapping of non-filesystem http:// streams
Edit report at http://bugs.php.net/bug.php?id=54645&edit=1
ID: 54645
Updated by: pajoye@php.net
Reported by: seva dot lapsha at gmail dot com
Summary: zip:// stream wrapper does not allow wrapping of
non-filesystem http:// streams
-Status: Open
+Status: Bogus
Type: Bug
Package: Zip Related
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
it does support non file system, but the file system must be seekable,
which is
not the case for http.
Previous Comments:
------------------------------------------------------------------------
[2011-05-01 14:15:51] seva dot lapsha at gmail dot com
Description:
------------
zip:// stream wrapper doesn't support streams created from sources other
than
files. E.g. reading from zip://http://example.com/file.zip
will fail
with
Warning:
As far as I can see, this is just not implemented in ZipArchive.
Test script:
---------------
$res = fopen('zip://http://example.com/file.zip');
Expected result:
----------------
Reading from zip wrapped URL should be possible.
Actual result:
--------------
Reading from zip wrapped URL gives warning:
fopen(zip://http://example.com/file.zip): failed to open
stream:
operation failed
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54645&edit=1
Thread (5 messages)