RE: [PEAR-DEV] dirname(__FILE__)
| From: | Lukas Smith | Date: | Thu, 17 Oct 2002 11:51:50 +0000 |
| Subject: | RE: [PEAR-DEV] dirname(__FILE__) | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10103@lists.php.net to get a copy of this message | ||
> From: Markus Wolff [mailto:wolff@21st.de]
> Sent: Thursday, October 17, 2002 1:46 PM
> To: smith@dybnet.de
> Cc: 'Wolfram Kriesing'; 'Alan Knowles'; 'PHP PEAR Developer'
> Subject: Re: [PEAR-DEV] dirname(__FILE__)
>
> Am Thu, 17 Oct 2002 13:43:09 +0200 schrieb "Lukas Smith"
<smith@dybnet.de>:
>
> > I just noticed one disadvantage of the dirname(__FILE__) approach:
> > Things will be a bit harder to test in CVS this way.
> > I guess that is the disadvantage of the CVS structure of PEAR.
>
> Why is it harder to test things this way? I don´t quite understand...
> can you please clarify?
Because the relative paths of installed packages do not match their
place within the directory structure within the pear CVS.
This mean you can get problems when you include other packages or just
the standard PEAR.php using dirname(__FILE__) in your package.
Regards,
Lukas