Re: __autoLoad php5 callback is being triggered for every class ?
| From: | Jason Barnett | Date: | Fri, 29 Apr 2005 13:29:53 +0000 |
| Subject: | Re: __autoLoad php5 callback is being triggered for every class ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-214204@lists.php.net to get a copy of this message | ||
php@electroteque.org wrote:
I'm experiencing some issues with autoLoad with pear packages. DB_Error is contained within the DB.php, but my autoload method is trying to split the underscores with forward slashes and then load. Supressing errors with @ still doesnt work, its triggering a php error. Any ideas ?Try loading DB before DB_Error because __autoload() only gets called if a class is not already loaded.