__autoload global settings

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dejvos
Forum Contributor
Posts: 122
Joined: Tue Mar 10, 2009 8:40 am

__autoload global settings

Post by dejvos »

Hi,

I've a next question. Is it possible to turn of globally a autoload for function class_exists?

Thanks.
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Re: __autoload global settings

Post by daedalus__ »

what?
dejvos
Forum Contributor
Posts: 122
Joined: Tue Mar 10, 2009 8:40 am

Re: __autoload global settings

Post by dejvos »

So class_exists('SomeClass') calls __autoload automaticly. So in framework which I use there is a __autoload() defined, but unfortunately I need some PEAR classes. These classes call the class_exists() function, but PEAR files have their own library, so __autoload doesn't find them and throws error.

I wonder to know if I can switch of this autoload ONLY for class_exists()
Post Reply