add bitset operations and tests
[hiphop-php.git] / hphp / test / slow / late_static_binding / 1886.php
blob9a8da13e5f5cb8143e3f4dd4ee3d5c7ef9ab8668
1 <?php
3 class X {
4 function bar() {
5 var_dump(get_called_class());
9 class Y extends X {
10 function foo() {
11 call_user_func(array('SELF', 'bar'));
12 call_user_func(array('PARENT', 'bar'));
13 call_user_func(array('STATIC', 'bar'));
14 call_user_func('SELF::bar');
15 call_user_func('PARENT::bar');
16 call_user_func('STATIC::bar');
19 Y::foo();