#30170 [Bgs]: method to return function name

From: Date: Mon, 20 Sep 2004 18:17:46 +0000
Subject: #30170 [Bgs]: method to return function name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66460@lists.php.net to get a copy of this message
ID: 30170 Updated by: helly@php.net Reported By: anagai at verizon dot net Status: Bogus Bug Type: Feature/Change Request -Operating System: windows 2000 +Operating System: * -PHP Version: 4.3.7 +PHP Version: * New Comment: In PHP 5 you can also use __METHOD__. RTFM : Read The Fantastic Manual Previous Comments: ------------------------------------------------------------------------ [2004-09-20 19:36:59] alan_k@php.net Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php try __FUNCTION__ ------------------------------------------------------------------------ [2004-09-20 18:52:12] anagai at verizon dot net Description: ------------ This is a feature request. It would be nice if there was a method that returned the current function name. This would be good for error logging. I currently have to manually enter the function name in each function that has error handling. sometime i copy functions and they will have the wrong function name for error handling. a method that returned the current function name would be nice. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30170&edit=1

« previous php.bugs (#66460) next »