summaryrefslogtreecommitdiff
path: root/Zend/tests/lsb_011.phpt
blob: 206f0cb9d04b87216fff81d73a13e9e831f65417 (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 (array)
--FILE--
<?php

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

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