Re: RE: [PATCH] adding stream wrappers to include_path
| From: | Pierre Joye | Date: | Thu, 13 Mar 2008 11:12:01 +0000 |
| Subject: | Re: RE: [PATCH] adding stream wrappers to include_path | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-36118@lists.php.net to get a copy of this message | ||
On Thu, Mar 13, 2008 at 11:55 AM, Dmitry Stogov <dmitry@zend.com> wrote:
> Hi Greg,
>
> In general include_path cannot contain pathes with ':' character,
> because it is the POSIX path separator.
> So I don't see a way to use stream wrappers in include_path. :(
What's about quotes or escape? Quotes are somehow more readable and
are already used in many places (generally not specifically in PHP). I
can imagine a:
set_include_path('"foo://something/bar"' . PATH_SEPARATOR . get_incude_path());
It may add some complexity in the parser but it can be really useful
(well, for phar-like applications at least as I would not recommend
too use that in normal apps :).
Cheers,
--
Pierre
http://blog.thepimp.net | http://www.libgd.org