A more generalized approach to fopen-wrappers / did i get it right ?
| From: | Hartmut Holzgraefe | Date: | Wed, 31 May 2000 21:34:44 +0000 |
| Subject: | A more generalized approach to fopen-wrappers / did i get it right ? | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-15999@lists.php.net to get a copy of this message | ||
the attached diff is an attempt to get a more generalized fopen-wrappers
feature that should allow dynamic registration of additional url/uri
types
by splitting up the wrapper function into handler functions for one
protocol type each and putting pointers to these functions into a hash
with the protocol name as key
it should allow the addition of protocols like https: through extension
modules in a very near future, for now it just gets a little more
functional encapsulation into fopen-wrappers.c and as a bonus makes it
possible to read from file: urls
as this is my first greater work that leaves the relative secure ground
of extension functions i'm not really sure if i did the hash handling
and friends right, especially as i im currently not able to test any
build besides unix/cgi
comments anyone ?
--
Hartmut Holzgraefe hartmut@six.de http://www.six.de