Re: strange autoload behavior

From: Date: Thu, 10 Jul 2008 09:00:20 +0000
Subject: Re: strange autoload behavior
References: 1 2 3 4 5  Groups: php.doc php.internals 
Request: Send a blank email to phpdoc+get-969379082@lists.php.net to get a copy of this message
On Thu, 10 Jul 2008, Gergely Hodicska wrote: > > exceptions thrown during autoload are ignored. > > And one more thing, this is in the manual: > "Note: Exceptions thrown in __autoload function cannot be caught in the catch > block and results in a fatal error." > > I think your explanation makes much more clear what happens, maybe it would > worth to upgrade the manual. While the quoted text suggests that that if throw > an exception I just can't catch it and will bubble up to top level and this > cause the fatal error. You can actually catch it *in* the autoload method, it just wouldn't bubble out of it. regards, Derick -- Derick Rethans http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org

« previous php.doc (#969379082) next »