$a->getB()->getC() syntax isn't supported in PHP 4.x; need:
$b = $a->getB();
$b->getC();