xref: /php-src/Zend/tests/lsb/lsb_013.phpt (revision 275f63e7)
1--TEST--
2ZE2 Late Static Binding is_callable() and static::method()
3--FILE--
4<?php
5
6class Test1 {
7    static function test() {
8        var_dump(is_callable("static::ok"));
9        var_dump(is_callable(array("static","ok")));
10    }
11}
12
13class Test2 extends Test1 {
14    static function ok() {
15    }
16}
17Test1::test();
18Test2::test();
19?>
20--EXPECTF--
21Deprecated: Use of "static" in callables is deprecated in %s on line %d
22bool(false)
23
24Deprecated: Use of "static" in callables is deprecated in %s on line %d
25bool(false)
26
27Deprecated: Use of "static" in callables is deprecated in %s on line %d
28bool(true)
29
30Deprecated: Use of "static" in callables is deprecated in %s on line %d
31bool(true)
32