Bug #18067 Updated: function name

From: Date: Mon, 01 Jul 2002 14:03:43 +0000
Subject: Bug #18067 Updated: function name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12650@lists.php.net to get a copy of this message
ID: 18067 Updated by: sniper@php.net Reported By: henno.taht@japauto.ee Status: Bogus Bug Type: Feature/Change Request Operating System: Debian Woody PHP Version: 4.2.1 New Comment: It will be available in PHP 4.3.0 and above. Previous Comments: ------------------------------------------------------------------------ [2002-07-01 09:58:25] henno.taht@japauto.ee Is it available yet? ------------------------------------------------------------------------ [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

« previous php.bugs (#12650) next »