Re: Undeclared function loading DB/mysql.php
| From: | Martin Jansen | Date: | Mon, 13 Jan 2003 15:00:37 +0000 |
| Subject: | Re: Undeclared function loading DB/mysql.php | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-3279@lists.php.net to get a copy of this message | ||
On Mon Jan 13, 2003 at 03:5057PM +0100, LIMBOURG Arnaud wrote:
> > As I already wrote above, DB/mysql.php should never be used
> > directly. Because of this there is no need for mysql.php to load
> > the files again which have already been loaded by DB.php.
>
> So there is no need to add a require 'PEAR.php' in DB_Common anyway. require
> DB.php is all that is needed as you point out.
>
> Adding a require ib db/common.php just adds useless overhead.
Some time ago Stig stated that the performance impact is
pretty small. Apart from that
http://pear.php.net/manual/en/faq.require.php
is a pretty good read :-).
--
- Martin Martin Jansen
http://martinjansen.com/