<?php
class a
{
public static function aa()
{
echo 1;
}
public static function c()
{
self::aa();
}
}
class b extends a
{
public static function aa()
{
echo 2;
}
}
b::c();
?>
above code execute, print 1
but, i think it should be print 2, isn’t it? it’s bug?
if override b::c(), it will be print 2
php5.2.11 + Windows XP