Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44716 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25249 invoked from network); 6 Jul 2009 04:21:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jul 2009 04:21:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=ben@vuetec.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ben@vuetec.com; sender-id=pass; domainkeys=good Received-SPF: pass (pb1.pair.com: domain vuetec.com designates 217.158.164.148 as permitted sender) DomainKey-Status: good X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ben@vuetec.com X-Host-Fingerprint: 217.158.164.148 mx0.vuetec.com Received: from [217.158.164.148] ([217.158.164.148:54526] helo=mx0.vuetec.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D5/0A-07609-DCB715A4 for ; Mon, 06 Jul 2009 00:21:34 -0400 Received: from mx0.vuetec.com (localhost [127.0.0.1]) by mx0.vuetec.com (Postfix) with ESMTP id 1ACA361F3F; Mon, 6 Jul 2009 04:21:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=vuetec.com; h=from:to:cc :references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=selector1; bh=+Dn/V97 nhfKO7zvkv78RDz2U9fQ=; b=oNW/NAx9eu1wAqZGOhQt0BxqCuRKUr7RAN6EM61 QiOA6UPT6FNzqB+cyr2/A9p62Oo3is6/HrgmmRKM5CNu3zQ== DomainKey-Signature: a=rsa-sha1; c=nofws; d=vuetec.com; h=from:to:cc :references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=selector1; b=z oUdmLcGMpM6EK2yUw/PBy6LW5X4x/62srvMna8iAGpZu5E7kxedUjPP8ZI/gWWiP TLfd9qfNa9ddS+wmr5hdw== Received: from mx0.vuetec.com (localhost [127.0.0.1]) by mx0.vuetec.com (Postfix) with ESMTP id EC05D61F40; Mon, 6 Jul 2009 04:21:30 +0000 (UTC) Received: from BenPC (unknown [202.172.125.63]) by mx0.vuetec.com (Postfix) with ESMTP id 4285E61F3F; Mon, 6 Jul 2009 04:21:27 +0000 (UTC) To: "'Nathan Nobbe'" Cc: References: <01cf01c9fde4$695ec880$3c1c5980$@com> <7dd2dc0b0907052035n7d47b3atceda0c48f311ee3a@mail.gmail.com> In-Reply-To: <7dd2dc0b0907052035n7d47b3atceda0c48f311ee3a@mail.gmail.com> Date: Mon, 6 Jul 2009 14:21:27 +1000 Message-ID: <01e401c9fdf1$3d3a0cd0$b7ae2670$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 thread-index: Acn96tQiOr8b09xxQNmKZuOParuONQAAXPpw Content-Language: en-au X-Antivirus: Scanned by F-Prot Antivirus (http://www.f-prot.com) Subject: RE: [PHP-DEV] autoloading and undefined class constants From: ben@vuetec.com ("Ben Bidner") > per the manual, exceptions thrown in an autoload method are swallowed, > and an E_ERROR is triggered by php. > > http://us2.php.net/manual/en/language.oop5.autoload.php I have read that note before, and wondered exactly what it was referring to= since you can throw exceptions within an autoloader and catch them (or hav= e your exception handler do whatever it needs to do with them). Will output: autoloading caught autoloading caught autoloading PHP Fatal error: Undefined class constant I would expect accessing a constant directly to behave as constant() does a= t the moment .... and I would expect constant() to behave as the manual say= s it does (and return NULL for non existent class constants instead of thro= wing E_ERRORs). Ben Bidner +61.7.3161.2000 (office) | +61.7.3009.0651 (fax) | +61.4.3201.5362 (mobile)= http://www.vuetec.com/