Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31951 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78497 invoked by uid 1010); 28 Aug 2007 07:43:49 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 78482 invoked from network); 28 Aug 2007 07:43:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Aug 2007 07:43:49 -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.5 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.94.239.5 jdi.jdi-ict.nl Linux 2.6 Received: from [82.94.239.5] ([82.94.239.5:52211] helo=jdi.jdi-ict.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/64-44152-432D3D64 for ; Tue, 28 Aug 2007 03:43:49 -0400 Received: from localhost (localhost [127.0.0.1]) by jdi.jdi-ict.nl (8.13.7/8.12.11) with ESMTP id l7S7hiCe013871; Tue, 28 Aug 2007 09:43:44 +0200 Date: Tue, 28 Aug 2007 09:43:41 +0200 (CEST) X-X-Sender: derick@kossu.ez.no To: Dmitry Stogov cc: "'PHP Internals List'" In-Reply-To: <000f01c7e871$9be827e0$6e02a8c0@thinkpad> Message-ID: References: <000f01c7e871$9be827e0$6e02a8c0@thinkpad> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=UTF-8 Subject: Re: [PHP-DEV] Namespaces and __autoload() From: derick@php.net (Derick Rethans) On Mon, 27 Aug 2007, Dmitry Stogov wrote: > In this case PHP first looks for Foo::Exception and only then for internal > Exception, but the first lookup may call __autoload (or corresponding SPL > functions) and it can emit error or throw exception. > > The patch provides an additional boolean argument to __autoload() that say > if class is really required. In case if it false, user code shouldn't emit > errors or throw exceptions. It looks like this is going to break BC. Are current autoload functions guaranteed to work with the new implementation? Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org