summaryrefslogtreecommitdiff
path: root/Zend/tests/lsb_013.phpt
blob: 3af7f1bea7eb03b569c7ca675f79a4a0b59ad001 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
ZE2 Late Static Binding is_callable() and static::method()
--FILE--
<?php

class Test1 {
    static function test() {
        var_dump(is_callable("static::ok"));
        var_dump(is_callable(array("static","ok")));
    }
}

class Test2 extends Test1 {
    static function ok() {
    }
}
Test1::test();
Test2::test();
?>
--EXPECT--
bool(false)
bool(false)
bool(true)
bool(true)