Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32626 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85745 invoked by uid 1010); 3 Oct 2007 23:45:18 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 85713 invoked from network); 3 Oct 2007 23:45:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Oct 2007 23:45:17 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:55665] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 57/C7-38275-58924074 for ; Wed, 03 Oct 2007 19:45:14 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 4 Oct 2007 01:45:02 +0200 Received: from [127.0.0.1] ([192.168.16.180]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 3 Oct 2007 16:44:27 -0700 Message-ID: <47042959.4030303@zend.com> Date: Wed, 03 Oct 2007 16:44:25 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Gregory Beaver CC: internals Mailing List References: <470334FE.7050808@chiaraquartet.net> <47040F7A.6050207@zend.com> <47042302.8000008@chiaraquartet.net> In-Reply-To: <47042302.8000008@chiaraquartet.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Oct 2007 23:44:27.0012 (UTC) FILETIME=[55985440:01C80617] Subject: Re: [PHP-DEV] [PATCH] in_class_exists() for detecting __autoload() called by class_exists() and interface_exists() From: stas@zend.com (Stanislav Malyshev) > Another possibility: could there be a way to add context information (a > string) to the error message the engine displays? This would alleviate > my concern. Why not just log it into some logfile? Remember that autoloaders can be chained, so engine would have to assemble all strings, display them in order, etc. Why create another mini-logging system? > the point is that if the user is using class_exists() they don't want > extra output on missing class. But how would you know the class is missing? Maybe next loader in chain would find it. Anyway, this looks like debug feature, why shouldn't it be handled on application level? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com