ID: 36622
User updated by: php-bug at t43 dot mine dot nu
Reported By: php-bug at t43 dot mine dot nu
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: all
PHP Version: 5.1.2
New Comment:
I believe http:// and ftp:// can be done using CURL, gzip is also
available directly.
Just a question of documentation and helpful books (which aren't) thru
the phpmaze.
Previous Comments:
------------------------------------------------------------------------
[2006-03-26 00:48:42] php-bug at t43 dot mine dot nu
Delving into source code,
main/streams/plain_wrapper.c
ext/standard/basic_functions.c
ext/standard/http_fopen_wrapper.c
it becomes obvious that the predefined streams (file, http,..) are not
made in php with stream_register_wrapper('protocol',php_class), and
therefore there is no class of which a new instance could be simply
created.
http_fopen_wrapper.c teaches me that it would be not trivial to do http
myself.
------------------------------------------------------------------------
[2006-03-05 23:42:52] php-bug at t43 dot mine dot nu
Maybe I was not writing too clear. I would like to access the protocol
wrappers one way or the other, but not only mangled into fopen(). It
would love to say allow_url_fopen=Off, and still do
ftp/http->stream_open (ftp/http://host.tld/myfile.txt) for example.
I looked into Streams (chapter CXLV. Stream Functions), but there the
wrappers, or the class names of the wrappers, or the objects, are not
available for use.
------------------------------------------------------------------------
[2006-03-05 22:30:43] php-bug at t43 dot mine dot nu
Description:
------------
The protocol:// wrappers are availabe only thru fopen() and similar
calls, right now, which can be unsafe...
It would be great if they where callable by themselfes, as not everyone
will easily write the protocols. They can be useful despite
allow_url_fopen .
(In other words, allow_url_fopen=false will block fopen(), but does not
hinder the knowing of doing it manually, however hinders the less
knowing of securing fopen() easily AND using explicitely wrappers. I'm
in this situation.)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36622&edit=1