Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15796 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15688 invoked by uid 1010); 4 Apr 2005 16:48:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15620 invoked from network); 4 Apr 2005 16:48:07 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 4 Apr 2005 16:48:07 -0000 X-Host-Fingerprint: 80.168.8.116 iko.gotobg.net Linux 2.4/2.6 Received: from ([80.168.8.116:58553] helo=iko.gotobg.net) by pb1.pair.com (ecelerity HEAD r(5268)) with SMTP id 48/0F-19272-BAF61524 for ; Mon, 04 Apr 2005 12:47:40 -0400 Received: from p54a0e42a.dip.t-dialin.net ([84.160.228.42] helo=[192.168.0.41]) by iko.gotobg.net with esmtpa (Exim 4.43) id 1DIUjB-0005DL-K0; Mon, 04 Apr 2005 19:47:05 +0300 Message-ID: <42516F85.10803@hristov.com> Date: Mon, 04 Apr 2005 18:47:01 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050219 MIME-Version: 1.0 To: Stanislav Malyshev CC: Greg Beaver , internals@lists.php.net References: <5.1.0.14.2.20050403125628.03f83de0@localhost> <425002D8.50004@php.net> <42515CFC.2050108@php.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iko.gotobg.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] Re: __autoload() enhancement From: php@hristov.com (Andrey Hristov) Stanislav Malyshev wrote: > GB>>I meant a logic error - as in the user forgot to use a > GB>>DIRECTORY_SEPARATOR and so can't find any of the classes, not an > GB>>obvious PHP error. > > OK - then how exactly you want the error message look like? How the engine > is going to guess if it was DIRECTORY_SEPARATOR missing or the class was > genuinely missing? > > GB>>Perhaps a better solution is to simply augment the "undefined class XXX" > GB>>method with a brief listing of all the defined __autoload() functions, > GB>>so the user knows where to look for magic bugs. > > What, you mean output all autoloading functions? Why? If you defined them, > you know them, if you didn't, you shouldn't count on them to be there > anyway. And what exactly this listing would reveal to you? You couldn't > find a bug just looking on the names. Stanislav, Greg probable means something like a stack trace of the autload callbacks that were called. This will be a nice addition just like Exception stacktraces are (I wish there were stacktraces for Fatal errors). Andrey