Newsgroups: php.doc,php.internals Path: news.php.net Xref: news.php.net php.doc:969379082 php.internals:38896 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 48847 invoked from network); 10 Jul 2008 09:01:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2008 09:01:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.94.239.7 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.7 mail.jdi-ict.nl Linux 2.6 Received: from [82.94.239.7] ([82.94.239.7:38086] helo=mail.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/EB-24522-7DFC5784 for ; Thu, 10 Jul 2008 05:01:12 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id m6A90KjB017299; Thu, 10 Jul 2008 11:00:20 +0200 Date: Thu, 10 Jul 2008 11:00:20 +0200 (CEST) X-X-Sender: derick@kossu.ez.no To: Gergely Hodicska cc: PHP Documentation List , "internals@lists.php.net" In-Reply-To: <4875CE7F.9090308@avalon.aut.bme.hu> Message-ID: References: <4875821E.9020504@avalon.aut.bme.hu> <20080710045418.GA22262@panix.com> <487599FA.9000207@avalon.aut.bme.hu> <4875CE7F.9090308@avalon.aut.bme.hu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Subject: Re: [PHP-DEV] strange autoload behavior From: derick@php.net (Derick Rethans) 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