--TEST--
ZE2 Late Static Binding nested calls
--FILE--
<?php
class {
    public static function 
test($x=null) {
        if (!
is_null($x)) {
            echo 
"$x\n";
        }
        return 
get_called_class();
    }
}

class 
extends {
}
class 
extends {
}
class 
extends {
}

echo 
A::test(B::test(C::test(D::test())))."\n";
?>
==DONE==
--EXPECT--
D
C
B
A
==DONE==