Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38894 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44891 invoked from network); 10 Jul 2008 08:39:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2008 08:39:01 -0000 Authentication-Results: pb1.pair.com header.from=felho@avalon.aut.bme.hu; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=felho@avalon.aut.bme.hu; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain avalon.aut.bme.hu from 84.2.42.7 cause and error) X-PHP-List-Original-Sender: felho@avalon.aut.bme.hu X-Host-Fingerprint: 84.2.42.7 mail02d.mail.t-online.hu Received: from [84.2.42.7] ([84.2.42.7:65328] helo=mail02d.mail.t-online.hu) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A2/2B-24522-1AAC5784 for ; Thu, 10 Jul 2008 04:38:59 -0400 Received: from gergely-hodicskas-computer.local (unknown [79.120.190.42]) by mail02d.mail.t-online.hu (Postfix) with ESMTPA id A197E50B05; Thu, 10 Jul 2008 10:38:54 +0200 (CEST) Message-ID: <4875CA9E.2000300@avalon.aut.bme.hu> Date: Thu, 10 Jul 2008 01:38:54 -0700 User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Derick Rethans CC: "internals@lists.php.net" References: <4875821E.9020504@avalon.aut.bme.hu> <20080710045418.GA22262@panix.com> <487599FA.9000207@avalon.aut.bme.hu> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-DCC-mail.t-online.hu-Metrics: mail02d.mail.t-online.hu 32710; Body=2 Fuz1=2 Fuz2=2 Subject: Re: [PHP-DEV] strange autoload behavior From: felho@avalon.aut.bme.hu (Gergely Hodicska) > YOu'd be surprised sometimes ;-) Anyway, exceptions thrown during > autoload are ignored. Autoloading is the last resort for the engine to > find a class. If the class can not be loaded (file isn't there, > exception, autoloader doesn't load a file), then you get the fatal > error. This is correct behavior. Yes, I read that exception can not be catched from autoload, but one thing was which confused me in this case: In this case I got bar not found. In this case I got the exception. So the difference is that class level constants are creating after the autoload? Best Regards, Felhő