Re: [PHP-DEV] PHP5: expected __METHOD__ behavior

2004-05-22 Thread Johannes Schlueter
Hi, Not really, too. Array ( [0] => Array ( [file] => - [line] => 8 [function] => foo [class] => a [type] => :: [args] => Array ( ) ) ) Array ( [0] => Array (

Re: [PHP-DEV] PHP5: expected __METHOD__ behavior

2004-05-22 Thread Sara Golemon
debug_backtrace(); Not the prettiest solution, but a reliable one nonetheless. -Sara "Johannes Schlueter" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > Andrey Hristov wrote: > > echo get_class($this).'::'.__FUNCTION__ (when there is an instance of the > > class) but AFAIK

Re: [PHP-DEV] PHP5: expected __METHOD__ behavior

2004-05-22 Thread Johannes Schlueter
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 c

Re: [PHP-DEV] PHP5: expected __METHOD__ behavior

2004-05-21 Thread Andrey Hristov
Daniel J Cain Jr. wrote: I am by no means an expert with OOP, so if this is a blatantly retarded question please excuse my ignorance. Given this code: class B { function bar() { // blah } } $instance = B::foo(); ?> output is "A::foo". Is this correct? I would expect (want ma

[PHP-DEV] PHP5: expected __METHOD__ behavior

2004-05-21 Thread Daniel J Cain Jr .
I am by no means an expert with OOP, so if this is a blatantly retarded question please excuse my ignorance. Given this code: class B { function bar() { // blah } } $instance = B::foo(); ?> output is "A::foo". Is this correct? I would expect (want maybe :) ) to see output as