Re: Re: alternative to the fopen() hack in autoloaders
| From: | Greg Beaver | Date: | Mon, 23 Nov 2009 04:38:26 +0000 |
| Subject: | Re: Re: alternative to the fopen() hack in autoloaders | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46165@lists.php.net to get a copy of this message | ||
Lukas Kahwe Smith wrote:
> So there are three approaches listed in the RFC:
> 1) http://wiki.php.net/rfc/autoload_include#proposal
> add a new alternative to include, which works the same except that for missing files it returns
> null and on success it returns the file location (unless the file already returns something else
> explicitly)
>
-1
> 2)
> http://wiki.php.net/rfc/autoload_include#add_stream_support_to_includerequire
> add stream support to include/require
>
-1 (although it is worth noting that I think you may have missed my
reply to Stas explaining how the problems he raised can be easily solved
because of the way streams are implemented).
> 3)
> http://wiki.php.net/rfc/autoload_include#add_function_to_resolve_the_include_path
> fix up stream_resolve_include_path() to support streams.
+1 stream_resolve_include_path() - the name clearly shows it supports
all streams.
Greg