summaryrefslogtreecommitdiff
path: root/Zend/tests/lsb_011.phpt
blob: 3c5bbbeb6f07afbf94baab509771f0dc2d2b412f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--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