xref: /PHP-8.1/Zend/tests/lsb_011.phpt (revision f8d79582)
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--EXPECT--
23ok
24