#30423 [NEW]: get_class(self) for static methods
| From: | auroraeosrose at hotmail dot com | Date: | Wed, 13 Oct 2004 18:18:46 +0000 |
| Subject: | #30423 [NEW]: get_class(self) for static methods | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-67543@lists.php.net to get a copy of this message | ||
From: auroraeosrose at hotmail dot com
Operating system: Irrelevant
PHP version: 5CVS-2004-10-13 (dev)
PHP Bug Type: Feature/Change Request
Bug description: get_class(self) for static methods
Description:
------------
When using parent - child classes you sometimes need to get the name of
the child, not the parent FROM the parent class. In a regular object
instance you can do get_class($this); However in static methods, you
cannot. I'd really like a get_class(self); so that you can get the same
functionality in a static method.
--
Edit bug report at http://bugs.php.net/?id=30423&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30423&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30423&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30423&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30423&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30423&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30423&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30423&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30423&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30423&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30423&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30423&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30423&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30423&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30423&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30423&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30423&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30423&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30423&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30423&r=mysqlcfg