xref: /php-src/Zend/tests/lsb/lsb_011.phpt (revision 275f63e7)
1--TEST--
2ZE2 Late Static Binding call to static::method() from internal function (array)
3--FILE--
4<?php
5
6class Test1 {
7    static function ok() {
8        echo "bug";
9    }
10    static function test() {
11        call_user_func(array("static","ok"));
12    }
13}
14
15class Test2 extends Test1 {
16    static function ok() {
17        echo "ok";
18    }
19}
20Test2::test();
21?>
22--EXPECTF--
23Deprecated: Use of "static" in callables is deprecated in %s on line %d
24ok
25