ID:               37684
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to