RE: [PEAR-DEV] Relativ Includes

From: Date: Thu, 31 Oct 2002 17:11:11 +0000
Subject: RE: [PEAR-DEV] Relativ Includes
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10387@lists.php.net to get a copy of this message
> From: Martin Jansen [mailto:mj@php.net] > Sent: Thursday, October 31, 2002 6:39 PM > To: Lukas Smith > Cc: 'Pierre-Alain Joye'; pear-dev@lists.php.net > Subject: Re: [PEAR-DEV] Relativ Includes > > On Thu Oct 31, 2002 at 03:5444PM +0100, Lukas Smith wrote: > > anyways I already have an idea to fix things :-) > > > > introduction of a PEAR_INCLUDEPATH constant > > This might be a solution indeed, but I still see a problem here: > > Imagine one wants to upgrade to a newer version of package XYZ. This > newer version of XYZ makes use of PEAR_INCLUDEPATH but the user does > run a version of PEAR that does not set the constant. So he will > possibly run into trouble when upgrading to the new package, because > he also has to upgrade to a recent PEAR version then. > > What do you think about this? > that is why every package should check if the constant is defined and if not determine a good value for it (since every script within a package will still be in the same relative position to PEAR.php it should be possible to find the correct includepath) regards, Lukas

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