Hi!
Of course, we can't make parent:: reference the parent class of the called one, as it would break BC. As in: class A { } class B extends A { public static function test() { echo get_class(new parent), '-', get_parent_class(); } } class C extends B { } C::test(); // A-A and not B-B
Maybe you missed the point, nobody wants that this code should return B-B, the only difference is in the return value of the get_called_class() function (which is not exists yet, so there is no BC). Best Regards, Felhő -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php