Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10034 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31596 invoked by uid 1010); 22 May 2004 18:43:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 31572 invoked by uid 1007); 22 May 2004 18:43:28 -0000 Message-ID: <20040522184328.31554.qmail@pb1.pair.com> To: internals@lists.php.net References: <40AE9FF0.30008@hristov.com> <20040522084054.30545.qmail@pb1.pair.com> Date: Sat, 22 May 2004 11:45:04 -0700 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Posted-By: 64.142.6.231 Subject: Re: [PHP-DEV] PHP5: expected __METHOD__ behavior From: pollita@php.net ("Sara Golemon") debug_backtrace(); Not the prettiest solution, but a reliable one nonetheless. -Sara "Johannes Schlueter" wrote in message news:20040522084054.30545.qmail@pb1.pair.com... > Hi, > > Andrey Hristov wrote: > > echo get_class($this).'::'.__FUNCTION__ (when there is an instance of the > > class) but AFAIK in your case with static calls there is no solution. > > Is there some way to add a function (or some other magic thing) that works > with static calls and call it a bug fix, so it can be in 5.0? If not: Is > there a way to implement it and add it as a new feature with PHP5.1? > Lately I needed such a thing while building some kind of framework. I solved > it by adding a function to my extended class which passes it's __CLASS__ as > an additional paramter to my base function - I don't really like it that > way ;-) > > johannes