xref: /PHP-7.2/Zend/tests/lsb_012.phpt (revision 166266df)
1--TEST--
2ZE2 Late Static Binding call to static::method() from internal function (string)
3--FILE--
4<?php
5
6class Test1 {
7	static function ok() {
8		echo "bug";
9	}
10	static function test() {
11		call_user_func("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