Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32613 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10096 invoked by uid 1010); 3 Oct 2007 20:27:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 10077 invoked from network); 3 Oct 2007 20:27:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Oct 2007 20:27:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=johannes@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=johannes@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 83.243.58.163 as permitted sender) X-PHP-List-Original-Sender: johannes@php.net X-Host-Fingerprint: 83.243.58.163 mail4.netbeat.de Received: from [83.243.58.163] ([83.243.58.163:52545] helo=mail4.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/A0-05854-F3BF3074 for ; Wed, 03 Oct 2007 16:27:44 -0400 Received: (qmail 20670 invoked by uid 507); 3 Oct 2007 20:27:36 -0000 Received: from unknown (HELO ?192.168.1.102?) (postmaster%schlueters.de@82.135.94.254) by mail4.netbeat.de with ESMTPA; 3 Oct 2007 20:27:36 -0000 To: Greg Beaver Cc: Marcus Boerger , internals Mailing List In-Reply-To: <1191443002.21871.17.camel@johannes.nop> References: <4701D607.7010405@chiaraquartet.net> <1411108822.20071002112931@marcus-boerger.de> <47029B22.4010205@chiaraquartet.net> <1449632176.20071003165209@marcus-boerger.de> <4703F68D.6090809@chiaraquartet.net> <1191443002.21871.17.camel@johannes.nop> Content-Type: text/plain; charset=utf-8 Date: Wed, 03 Oct 2007 22:27:36 +0200 Message-ID: <1191443256.21871.19.camel@johannes.nop> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-4.fc7) Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] link to exceptions in autoload thread? From: johannes@php.net (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Wed, 2007-10-03 at 22:23 +0200, Johannes Schlüter wrote: > Greg, > > On Wed, 2007-10-03 at 15:07 -0500, Greg Beaver wrote: > > Now what? The error message doesn't tell Joe where to find PEAR2::Foo, > > or any other useful information on how to find it, just that it can't be > > found. PEAR2, however, knows exactly where it should be found, and has > > some idea of why it isn't there (package not installed). In addition, > > there is no stack trace that can be used to debug the call chain that > > led to the problem if PEAR2::Foo *is* installed, and Joe reports the > > problem to the maintainers of PEAR2::Blah. > > > > Without my die(new Exception()), there is no way to pass this known > > information back out of PEAR2_Autoload to Joe, and it makes both > > development and debugging much more difficult, and unnecessarily so. > > function __autoload($a) { > $b = debug_backtrace(); This, of course, should have been $bt = debug_backtrace(); ;-) > if ($bt[1]["function"] == "class_exists") { > echo "in get_class"; > } > } > > should work quite well without obscure engine hacks - or am I missing > something? > > johannes