summaryrefslogtreecommitdiff
path: root/Zend/tests/lsb_012.phpt
blob: 3ac8d38840077e6b38fd39301b59ea09c9ef4d50 (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 (string)
--FILE--
<?php

class Test1 {
	static function ok() {
		echo "bug";
	}
	static function test() {
		call_user_func("static::ok");
	}
}

class Test2 extends Test1 {
	static function ok() {
		echo "ok";
	}
}
Test2::test();
?>
--EXPECT--
ok