ID: 14814
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Documentation problem
Operating System: Linux (2.4.17)
PHP Version: 4.1.1
New Comment:
As an additional note, zlib: wrapper no longer requires fopencookie, so
I would expect zlib://http:// and zlib://ftp:// to work on all
systems.
Likewise, gzopen("http://") and gzopen("ftp://") should
also work on all systems.
This needs testing (you are welcome to try the current
CVS/recent snapshot).
Previous Comments:
------------------------------------------------------------------------
[2002-04-06 07:33:14] [EMAIL PROTECTED]
Yes, the new streams allow "nesting" a sequences of wrappers:
fopen("bzip2://zlib://http://host.domain", "r") should
in theory work, even it it doesn't make much sense.
Not every wrapper/stream is compatible in this way on
all systems, particularly if fopencookie is not part of
the systems c library.
------------------------------------------------------------------------
[2002-04-06 06:12:47] [EMAIL PROTECTED]
Isn't this possible with the new streams (in 4.3.0)?
------------------------------------------------------------------------
[2002-01-17 13:08:47] [EMAIL PROTECTED]
Currently its not possible, to combine diffrent wrappers.
So you can't use fopen("zlib:url/file.gz") or
gzopen("url/file.gz").
I changed it to a documentation problem, maybe someone can
add a note, that is not possible yet to combine wrappers.
------------------------------------------------------------------------
[2002-01-08 17:02:53] [EMAIL PROTECTED]
(Just got email back from Georg, replying to my response
to this [emailed directly as the bug-editing was down at
the time]).
It sounds like neither gzopen nor zlib:// work for remote
files at all.
Is this a bug or should I submit it as a feature request?
P.S. Thanks again for the reply!
------------------------------------------------------------------------
[2002-01-03 02:01:46] [EMAIL PROTECTED]
For opening zip-files via ftp or httpd, there is a little
note in the manual:
Note: The current CVS version 4.0.4-dev introduces a
fopen-wrapper for .gz-files, so that you can use a special
'zlib:' URL to access compressed files transparently using
the normal f*() file access functions if you prepend the
filename or path with a 'zlib:' prefix when calling
fopen().
This feature requires a C runtime library that provides
the fopencookie() function. To my current knowledge the
GNU libc is the only library that provides this feature.
But for sure, this is not a solution for the errormessage
:-)
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/14814
--
Edit this bug report at http://bugs.php.net/?id=14814&edit=1