summaryrefslogtreecommitdiff
path: root/Zend/tests/lsb_012.phpt
blob: 21ddff3524f4d9ddb60140811f5cbca9ed6996de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
ZE2 Late Static Binding call to static::method() from internal function (string)
--FILE--
<?php

class Test1 {
    static function ok() {
        echo "bug";
    }
    static function test() {
        call_user_func("static::ok");
    }
}

class Test2 extends Test1 {
    static function ok() {
        echo "ok";
    }
}
Test2::test();
?>
--EXPECT--
ok