|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-03-05 22:30 UTC] 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.) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 09:00:01 2025 UTC |
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.