Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56277 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73263 invoked from network); 11 Nov 2011 12:21:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Nov 2011 12:21:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=christian.kaps@mohiva.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=christian.kaps@mohiva.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain mohiva.com from 80.67.31.98 cause and error) X-PHP-List-Original-Sender: christian.kaps@mohiva.com X-Host-Fingerprint: 80.67.31.98 smtprelay05.ispgateway.de Linux 2.6 Received: from [80.67.31.98] ([80.67.31.98:50363] helo=smtprelay05.ispgateway.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/AE-17932-2531DBE4 for ; Fri, 11 Nov 2011 07:21:39 -0500 Received: from [80.67.16.111] (helo=webmail.df.eu) by smtprelay05.ispgateway.de with esmtpa (Exim 4.68) (envelope-from ) id 1ROq6v-00038Z-UQ for internals@lists.php.net; Fri, 11 Nov 2011 13:21:34 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 11 Nov 2011 13:21:33 +0100 To: In-Reply-To: References: <9274e90a58f9a9cffee6a2d9922e6ff9@mohiva.com> Message-ID: <938da5bfdc6418a4df06eedfaad4ddee@mohiva.com> X-Sender: christian.kaps@mohiva.com User-Agent: Roundcube Webmail/0.6 X-Df-Sender: Y2hyaXN0aWFuLmthcHNAbW9oaXZhLmNvbQ== Subject: Re: [PHP-DEV] Re: SPLClassLoader RFC Thoughts And Improvements From: christian.kaps@mohiva.com (Christian Kaps) Am 11.11.2011 12:53, schrieb Anthony Ferrara: >> Would it not be possible that the autoloader mechanism catch all >> exceptions >> made by any autoloader which fails to load a class. Only if none of >> the >> register autoloaders can load the requested class the autoloader >> mechanism >> throws an AutoloadException with all the catched exceptions. This >> behaviour >> should be controllable by the users environment. So if using an >> autoloader(e.g. from a library) which throws an exception, but the >> user >> doesn't use exceptions in his environment, he should be able to >> deactivate >> the exceptions thrown by the autoloader mechanism. I think this >> behaviour >> has the greatest advantages for both worlds. This one which needs >> exceptions >> to shut down the application in an ordered way, and for these >> relying on >> PHPs way to handle the autoloading error. > > Sure, it would be possible. But that would also be a BC break. It > may be worth it (not sure), but still. An interesting idea... > If no one of the core devs has objections against it, I can write a RFC for this feature!?