Re: [PHP-DEV] Bug #61033 __FUNCTION__ doesn't report correctly in alias trait methods

2012-02-12 Thread Marc Easen
On Fri 10 Feb 2012 09:49:54 GMT, Stefan Marr wrote: Hi Marc: On 09 Feb 2012, at 22:36, Marc Easen wrote: The reason why I feel this should be changes to reflect the actual called function name is that one of main uses of the __FUNCTION__ constant it to refer back to the function that is curr

Re: [PHP-DEV] Bug #61033 __FUNCTION__ doesn't report correctly in alias trait methods

2012-02-10 Thread Stefan Marr
Hi Marc: On 09 Feb 2012, at 22:36, Marc Easen wrote: > The reason why I feel this should be changes to reflect the actual called > function name is that one of main uses of the __FUNCTION__ constant it to > refer back to the function that is currently running, for the use recursive > functions

[PHP-DEV] Bug #61033 __FUNCTION__ doesn't report correctly in alias trait methods

2012-02-09 Thread Marc Easen
Hello everyone, I've recently came across an odd situation where __FUNCTION__ can produce a misleading results when using traits with aliased methods, see https://bugs.php.net/bug.php?id=61033. This has been closed and I've been asked start a discussion