Bug #18067: function name

From: Date: Sat, 29 Jun 2002 20:56:17 +0000
Subject: Bug #18067: function name
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12540@lists.php.net to get a copy of this message
From: henno.taht@japauto.ee Operating system: Debian Woody PHP version: 4.2.1 PHP Bug Type: Feature/Change Request Bug description: function name 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 bug report at http://bugs.php.net/?id=18067&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18067&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18067&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18067&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18067&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18067&r=support Expected behavior: http://bugs.php.net/fix.php?id=18067&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18067&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18067&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18067&r=globals

« previous php.bugs (#12540) next »