ID: 9423
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Duplicate
Bug Type: Feature/Change Request
Operating System:
PHP Version: 4.0.4pl1
New Comment:
Duplicate of 8576.
Previous Comments:
------------------------------------------------------------------------
[2001-02-23 10:54:26] [EMAIL PROTECTED]
Please consider adding a new feature to the next version of PHP.
When creating code that reports errors, it would be very helpful
to have a function which returns the name of the currently
executing function (or class method). You could perhaps
name the function "func_get_name()", which would fit in nicely
with the existing PHP functions "func_get_arg()", "func_get_args()",
and "func_num_args()". Example usage:
function foo() {
if ( some error condition ) {
ErrorHandler("An error occurrend in function " . func_get_name()
);
}
}
If there is another (existing) way to accomplish this, please let me know.
Thank you for your consideration (and thanks for PHP) -
Jim Ide [EMAIL PROTECTED]
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=9423&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]