#37684 [Opn->WFx]: read class name of a inherited class with a inherited static method possible?

From: Date: Fri, 02 Jun 2006 20:36:50 +0000
Subject: #37684 [Opn->WFx]: read class name of a inherited class with a inherited static method possible?
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-97993@lists.php.net to get a copy of this message
ID: 37684 Updated by: tony2001@php.net Reported By: info at marcgrabow dot de -Status: Open +Status: Wont fix Bug Type: Class/Object related Operating System: Win 2000 PHP Version: 5CVS-2006-06-02 (snap) New Comment: You have to wait until we implement late static binding. But personally I think your code works exactly the way it should work. Previous Comments: ------------------------------------------------------------------------ [2006-06-02 20:24:34] info at marcgrabow dot de Description: ------------ I want to extract the class name of a inherited class with a inherited static method. I've tried that in a lot of ways, but I didn't get it. Is it possible at all? Reproduce code: --------------- class TestParent { static function getClass() { return get_class(); } } class TestChild extends TestParent { } echo TestChild::getClass(); Expected result: ---------------- TestChild Actual result: -------------- TestParent ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37684&edit=1

« previous php.bugs (#97993) next »