Reply to Re: [PHP] __autoLoad php5 callback is being triggered for every class ?

Your name:

Reply:


Posted by Dan Rossi on 04/29/05 14:41

Its DB_Error which is the error callback for the PEAR DB. I dont know
where its being references but its triggering my php error handler and
i cant supress the errors for require. There is no such file
DB/Error.php however i may have to create one just to make it go away
:)


On 29/04/2005, at 9:32 PM, Jochem Maas wrote:

> 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 ?
>
> __autoload() gets called whenever you reference a class that has not
> been
> defined. additionally its called if you call class_exists() and the
> class doesn't
> ... unless you call class_exists() with the second parameter to false.
>
> if your __autoload() is being called then the class is not loaded....
> and from what you say its seems your autoload function can't find the
> relevant
> file - whats the function look like?
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация