Re: LSB forward_static_call()

From: Date: Tue, 24 Jun 2008 16:52:59 +0000
Subject: Re: LSB forward_static_call()
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-38590@lists.php.net to get a copy of this message
<?php class A { function mA() { echo get_class($this); } static function mB() { echo get_called_class(); } } class B extends A { function mA() { parent::mA(); } static function mB() { parent::mB(); } } $obj = new B(); $obj->mA(); B::mB(); Currently, this will output BA. You can't tell me, that it is consistent.

« previous php.internals (#38590) next »