Re: [Fwd: Re: PEAR framework changes for PHP5]

From: Date: Sun, 01 Feb 2004 19:18:42 +0000
Subject: Re: [Fwd: Re: PEAR framework changes for PHP5]
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25390@lists.php.net to get a copy of this message
On Sun, 1 Feb 2004 14:13:36 -0500 Chuck Hagenbuch <chuck@horde.org> wrote: > A lot? No, one. Unnecessary? Only if you don't want your package to be ... > a non-Horde application into the system with a few lines of code). Agreed, however (to be precised) it is up to the package to do that. As far I do not see require_once AFOOBAR_CONSTAN.'foo.php'; at the top of each file I'm happy ;) > Also, checking class_exists() after doing the @include_once is simply > good practice, since it lets you avoid errors if there's a parse error > or some other reason that the class didn't actually get defined. Yes, even thought that if you do not need an error handler here (in the sense to manage a non existing class or file) you may use require(_once) which will stop the execution. pierre

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