php-src/Zend/tests/lsb_011.phpt
2020-02-03 22:52:20 +01:00

24 lines
370 B
PHP

--TEST--
ZE2 Late Static Binding call to static::method() from internal function (array)
--FILE--
<?php
class Test1 {
static function ok() {
echo "bug";
}
static function test() {
call_user_func(array("static","ok"));
}
}
class Test2 extends Test1 {
static function ok() {
echo "ok";
}
}
Test2::test();
?>
--EXPECT--
ok