<?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.
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
