Re: Possible feature for current version of PHP or PHP 4.1/5.0.
| From: | Andrei Zmievski | Date: | Mon, 09 Jul 2001 15:35:35 +0000 |
| Subject: | Re: Possible feature for current version of PHP or PHP 4.1/5.0. | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-59331@lists.php.net to get a copy of this message | ||
On Mon, 09 Jul 2001, Zeev Suraski wrote:
> Yeah, this has been requested several times.
> I think that changing the cwd to the directory of an included file makes
> good sense. It is, indeed, downwards incompatible and may break existing
> applications. We have 4 options:
>
> 1. Do nothing
> 2. Make include() and friends change directory to the directory of the
> file they include. This makes the most sense, but may break existing apps.
> 3. #2, only make it optional
> 4. Add the directory of the included file to the include_path when the
> included file is being executed. It can get a bit nasty with nested
> includes, even though I think it should work. It's also a bit tricky to
> implement, as the engine doesn't know about include_path (at least right now).
>
> I'm leaning towards #3, even though I don't like the
> yet-another-runtime-option. It may be justified if we say we're phasing
> out the old functionality in PHP 5.0.
How about #3 for 4.1 and #2 for 5.0?
-Andrei
* If it's never finished, you can't prove it doesn't work. *