Re: dirname(__FILE__)
| From: | Markus Wolff | Date: | Thu, 24 Oct 2002 21:15:44 +0000 |
| Subject: | Re: dirname(__FILE__) | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10232@lists.php.net to get a copy of this message | ||
On 24 Oct 2002 21:15:00 +0200
"Stig S. Bakken" <ssb@fast.no> wrote:
> Stop the press!
>
> dirname(__FILE__) won't work anyway. It screws up require_once and
> include_once and may lead to redefinition errors.
[...]
> There are two problems that need fixing here: being able to run tests
> from within a development tree, and using PEAR on systems where you
> can't modify include_path. We have to deal with these, but
> dirname(__FILE__) will cause more problems than it solves.
Damn, you´re right. However, I´d rather like to see this fixed in the
(include|require)_once functions, meaning that PHP should probably
resolve the full path to a file before writing it to its internal table
of included files.
That would really solve all problems, IMHO.
Regards,
Markus
--
Markus Wolff <wolff@21st.de>