Re: package validation (was Re: PHP_Beautifier-0.0.6.1)
| From: | Stefan Neufeind | Date: | Sun, 06 Jun 2004 19:18:05 +0000 |
| Subject: | Re: package validation (was Re: PHP_Beautifier-0.0.6.1) | ||
| References: | 1 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-1396@lists.php.net to get a copy of this message | ||
On 6 Jun 2004 at 14:38, Greg Beaver wrote:
> Stefan Neufeind wrote:
>
> > include dirname(__FILE__).'DB/mysql.php';
> >
> > This would allow to use the correct drivers for the DB-class no
> > matter where the DB-class was loaded from ... even if the directory
> > wasn't in the include-path (or in the wrong place). Seems fine to me!
> >
>
> This is indeed a simpler way to allow good relative includes, and is
> probably the better way to go with a recommendation for non-pear.
Maybe even for a recommendation for pear-packages? Avoids loading
wrong files if PEAR is first in the include-path.
Stefan