Re: dirname(__FILE__)

From: Date: Sun, 20 Oct 2002 13:15:57 +0000
Subject: Re: dirname(__FILE__)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10140@lists.php.net to get a copy of this message
On Tue Oct 15, 2002 at 06:1920PM +0200, Lukas Smith wrote: > I want to once more start a little discussion about how to include files > in pear packages. > > I for one intent to distribute all PEAR packages that I use as part of > my application because I don’t want my system to break when an admin > updates a pear package to a version that breaks BC etc. > > Therefore I would really welcome if people would use dirname(__FILE__) > in their includes in order that packages don’t have to be in the include > path. We should really make a clear final statement about this: According to Derick, dirname(__FILE__) does not have a performance issue and it really seems to be the best solution around. I'm +1 for adding this to the coding standards and to use this for all future contributions. Comments? -- - Martin Martin Jansen http://martinjansen.com/

« previous php.pear.dev (#10140) next »