Re: [RFC] prepend_include_path()/append_include_path()
| From: | Gregory Beaver | Date: | Thu, 14 Feb 2008 01:11:31 +0000 |
| Subject: | Re: [RFC] prepend_include_path()/append_include_path() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-35468@lists.php.net to get a copy of this message | ||
Lars Strojny wrote:
> Hi everyone,
>
> the following patch[1] adds the functions append_include_path() and
> prepend_include_path(). These function are there to make include path
> adjustments easier than it is. Especially append_include_path() is what
> is done most of the time.
>
> The current patch is in a bit hacky state, as I have my doubts whether
> storing the include paths as a string is a good idea. I want to gain
> some feedback for this addition first before I invest more work on it.
>
> [1]
> http://lars.schokokeks.org/php/include_path_modifiers-1.diff
-1 from me, it doesn't reduce code size, and speed is not a huge issue
since it is likely to be called once per script, maximum.
Greg