Bug #18067 Updated: function name

From: Date: Sat, 29 Jun 2002 21:07:17 +0000
Subject: Bug #18067 Updated: function name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12542@lists.php.net to get a copy of this message
ID: 18067 Updated by: henno.taht@japauto.ee Reported By: henno.taht@japauto.ee -Status: Open +Status: Duplicate Bug Type: Feature/Change Request Operating System: Debian Woody PHP Version: 4.2.1 New Comment: Duplicate of 8576 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#12542) next »