Bug #17743 Updated: Implementation of __FUNC__ and __CLASS__
| From: | sniper@php.net | Date: | Thu, 13 Jun 2002 14:12:54 +0000 |
| Subject: | Bug #17743 Updated: Implementation of __FUNC__ and __CLASS__ | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-10350@lists.php.net to get a copy of this message | ||
ID: 17743
Updated by: sniper@php.net
Reported By: stewart@nameless-uk.com
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: n/a
PHP Version: 4.2.1
New Comment:
These already exist in PHP 4.3.0-dev:
NEWS:
- Added __FUNCTION__ and __CLASS__ constants. (Jani, Zend Engine)
Previous Comments:
------------------------------------------------------------------------
[2002-06-13 10:04:52] stewart@nameless-uk.com
Hi,
Basically, this would follow along the same lines as __FILE__ and
__LINE__, these macros would return the current function and class --
especially usefull for quick debugging of inherited classes.
It would also be incredibly usefull to be able to get the details of
the calling function, perhaps via __CALLING_*__, just to make add a
more professional edge to custom classes.
Keep up the good work!
Stewart.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17743&edit=1