Bug #18067 Updated: function name
ID: 18067
Updated by: henno.taht@japauto.ee
Reported By: henno.taht@japauto.ee
Status: Bogus
Bug Type: Feature/Change Request
Operating System: Debian Woody
PHP Version: 4.2.1
New Comment:
Is it available yet?
Previous Comments:
------------------------------------------------------------------------
[2002-06-29 18:50:24] sniper@php.net
Yes, use __FUNCTION__ :)
------------------------------------------------------------------------
[2002-06-29 17:07:16] henno.taht@japauto.ee
Duplicate of 8576
------------------------------------------------------------------------
[2002-06-29 16:56:16] henno.taht@japauto.ee
There should be a function which returns current functions name.
EXAMPLE:
function foo(){
debug("Entering function ". func_get_name() ."<br>");
// Function definition here.
}
function debug($msg){
echo "<span class=debughdr>Debug information: </span>";
echo "<span class=debugmsg>$msg</span>";
}
I think func_get_name would be an appropriate name. At least that was
the name I looked for it.
I don't know any workaround nor how to make user defined function
providing this functionality but after asking Experts Exchange I've
convinced that I'm not the only one requiring this.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18067&edit=1
Thread (5 messages)