#34421 [Opn]: get_class and debug_backtrace report wrong class for inherited static methods

From: Date: Wed, 14 Sep 2005 13:45:36 +0000
Subject: #34421 [Opn]: get_class and debug_backtrace report wrong class for inherited static methods
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85039@lists.php.net to get a copy of this message
ID: 34421 Updated by: tony2001@php.net Reported By: wkonkel at gmail dot com Status: Open Bug Type: Feature/Change Request Operating System: redhat PHP Version: 5.0.5 New Comment: > Guess we'll just have to wait. Or cook a patch by yourself. Previous Comments: ------------------------------------------------------------------------ [2005-09-14 15:41:02] civilization_2 at hotmail dot com If the engine just switches context rather than actually inheriting methods, then this seems conceptually flawed to me. If this is an engine problem, it will probably require a massive rewriting, resulting in ... PHP6 :-) Guess we'll just have to wait. ------------------------------------------------------------------------ [2005-09-13 20:07:46] wkonkel at gmail dot com I don't understand why this keeps being dismissed as bogus. It's an outstanding issue that should be fixed regardless of the current limitations of the way the engine works. ------------------------------------------------------------------------ [2005-09-09 13:25:34] johannes@php.net This is a limitation in the way the engine works and it most likely won't change in the near future. See also previous discussions about it. http://zend.com/zend/week/week219.php#Heading5 ------------------------------------------------------------------------ [2005-09-08 22:59:43] civilization_2 at hotmail dot com While we're at it, perhaps it would be nice to have a magic-variable for this? ------------------------------------------------------------------------ [2005-09-08 16:56:56] goat at daholygoat dot com I also have to agree with wkonkel about this being a bug. I can't think of any reason why you shouldn't be able to do class introspection from a static method in the inherited class. It's very useful for building object factories, for example (a really major OO area). ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/34421 -- Edit this bug report at http://bugs.php.net/?id=34421&edit=1

« previous php.bugs (#85039) next »