Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7508 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40972 invoked by uid 1010); 3 Feb 2004 15:55:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 40948 invoked from network); 3 Feb 2004 15:55:35 -0000 Received: from unknown (HELO sunshine.home) (62.178.227.34) by pb1.pair.com with SMTP; 3 Feb 2004 15:55:35 -0000 Received: from mfischer by sunshine.home with local (Exim 4.30) id 1Ao2w7-0005qg-Q7 for internals@lists.php.net; Tue, 03 Feb 2004 16:58:03 +0100 Date: Tue, 3 Feb 2004 16:58:03 +0100 To: internals@lists.php.net Message-ID: <20040203155803.GA22271@gjat.josefine.at> Mail-Followup-To: Markus Fischer , internals@lists.php.net References: <5.1.0.14.2.20040203143932.0733a0d0@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.2.20040203143932.0733a0d0@localhost> X-Editor: Vim http://www.vim.org/ X-PGP-Key: 0xC2272BD0 at wwwkeys.eu.pgp.net X-PGP-Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 User-Agent: Microsoft Outlook Express 5.50.4807.1700.314 X-Spamfilter: Fighting it with http://www.spamassassin.org/ and http://razor.sourceforge.net/ Subject: Re: [PHP-DEV] New exceptions mechanism From: mfischer@gjat.josefine.at (Markus Fischer) I've a little issue with exception, however this isn't particular bound to the new mechanism and existed before. When calling a static method of a class from an objects method, the stack trace does not reveal the class name of the static class containing the static method. Example: $ cat test_exception.php method(); ?> Output: $ php test_exception.php Fatal error: Uncaught exception 'exception' with message 'example' in /home/mfischer/htdocs/php5/test_exception.php:4 Stack trace: #0 /home/mfischer/htdocs/php5/test_exception.php(11): InstantiateMe->staticMethod() #1 /home/mfischer/htdocs/php5/test_exception.php(16): InstantiateMe->method() #2 {main} thrown in /home/mfischer/htdocs/php5/test_exception.php on line 4 Of special interest, see #0 containing the line: InstantiateMe->staticMethod() instead of e.g. StaticClass::staticMethod() At least, saying 'InstantiateMe->' looks wrong to me as I'm calling 'StaticClass::' actually. - Markus