Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38886 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69211 invoked from network); 10 Jul 2008 03:29:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jul 2008 03:29:39 -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.40.5 cause and error) X-PHP-List-Original-Sender: felho@avalon.aut.bme.hu X-Host-Fingerprint: 84.2.40.5 mail00a.mail.t-online.hu Received: from [84.2.40.5] ([84.2.40.5:54338] helo=mail00a.mail.t-online.hu) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/EC-30205-22285784 for ; Wed, 09 Jul 2008 23:29:39 -0400 Received: from gergely-hodicskas-computer.local (dsl51B68EB5.pool.t-online.hu [81.182.142.181]) by mail00a.mail.t-online.hu (Postfix) with ESMTPA id 16F7F20B735 for ; Thu, 10 Jul 2008 05:29:35 +0200 (CEST) Message-ID: <4875821E.9020504@avalon.aut.bme.hu> Date: Wed, 09 Jul 2008 20:29:34 -0700 User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-DCC-mail.t-online.hu-Metrics: mail00a.mail.t-online.hu 32712; Body=1 Fuz1=1 Fuz2=1 Subject: strange autoload behavior From: felho@avalon.aut.bme.hu (Gergely Hodicska) Hi! I think I found a bug but before posing it to bugs.php.net I would like to ask your opinion. I think the it is not a planed behavior that some errors doesn't "bubble up" from autoload, but at least the error message is misleading. --------------------------------------------- foo.php: bar.php: bootstrap.php --------------------------------------------- Result: "Fatal error: Class 'bar' not found". The code above seems not to be too realistic but the next one is: --------------------------------------------- foo.php: bar.php: bootstrap.php --------------------------------------------- Result: "Fatal error: Class 'bar' not found". And for example if define a class level constant without quotes I get the exception generated by the Notice. Best Regards, Felhő