Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3314 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34768 invoked from network); 8 Jul 2003 21:41:25 -0000 Received: from unknown (HELO mail.gettcomm.com) (12.107.238.2) by pb1.pair.com with SMTP; 8 Jul 2003 21:41:25 -0000 Received: from localhost (localhost [127.0.0.1]) by mail.gettcomm.com (Postfix) with ESMTP id 5B129579C for ; Tue, 8 Jul 2003 16:42:30 -0500 (CDT) Received: from fluoro.gettcomm.int (fluoro.gettcomm.int [192.168.2.188]) by mail.gettcomm.com (Postfix) with SMTP id 413F85765 for ; Tue, 8 Jul 2003 16:42:29 -0500 (CDT) Date: Tue, 8 Jul 2003 16:41:23 -0500 To: internals@lists.php.net Message-ID: <20030708164123.70320098.phil@gettcomm.com> In-Reply-To: <1978558846.20030708233514@post.rwth-aachen.de> References: <20030708161149.01897345.phil@gettcomm.com> <1978558846.20030708233514@post.rwth-aachen.de> Organization: gett communications X-Mailer: Sylpheed version 0.9.0 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by AMaViS 0.3.12 Subject: Re: [PHP-DEV] Inheritance and Static Methods From: phil@gettcomm.com (Phil Dier) On Tue, 8 Jul 2003 23:35:14 +0200 marcus.boerger@t-online.de (Marcus B=F6rger) wrote: [snip] > - the method is defined in class a so pre is correct > - backtrace @[0] sees the top caller class that's b that's correct > - get_class($var) sees the class of the variable. In you static case that= is > NULL which doesn't have a class and in your object case that's b. Therf= ore > this is also correct. >=20 > Everything show is correct so far. The only problem is that test_backtrac= e() > could be called static without being defined as such. >=20 [snip] Thanks for your response. I wasn't disputing the current behaviour, only wondering if there is / is planned a function specifically for doing what I did with debug_backtrace() in a static method. Using debug_backtrace() seems hackish and slow. --=20 Phil Dier gett communications gettlabs, inc.