Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15791 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29148 invoked by uid 1010); 4 Apr 2005 13:47:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 29075 invoked from network); 4 Apr 2005 13:47:38 -0000 Received: from unknown (HELO zend.com) (127.0.0.1) by localhost with SMTP; 4 Apr 2005 13:47:38 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:36086] helo=mail.zend.com) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 5C/2A-19272-F6541524 for ; Mon, 04 Apr 2005 09:47:29 -0400 Received: (qmail 4525 invoked from network); 4 Apr 2005 13:47:22 -0000 Received: from shire.zend.office (10.1.2.160) by internal.zend.office with SMTP; 4 Apr 2005 13:47:22 -0000 Date: Mon, 4 Apr 2005 16:47:22 +0300 (IDT) X-X-Sender: frodo@shire.zend.office To: internals@lists.php.net In-Reply-To: <425002D8.50004@php.net> Message-ID: References: <5.1.0.14.2.20050403125628.03f83de0@localhost> <425002D8.50004@php.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] Re: __autoload() enhancement From: stas@zend.com (Stanislav Malyshev) GB>>3. If a library has an obscure bug in __autoload, the only error message GB>>the user will see is: GB>> GB>>"undefined class XXXX" GB>> GB>>If __autoload() is going to gain the ability to be defined for a GB>>library, then the error messages must be enhanced as well. Shouldn't that bug result in some error message by itself? If it doesn't, there's probably nothing to add to "undefined class" anyway. GB>>1) document that coders of __autoload() should throw an GB>>autoload_exception if a class is not found Why just not return false or something? Exception is supposed to be used when things are so bad you just can not continue. But I don't think class not being found is such situation for autoload. On the other hand, I think that multiple autoload functions should be evaluated in isoplated way - so that exception, etc. in one of them would terminate it, but not the whole autoload process (i.e., next one would be run). -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115