Annotation of embedaddon/php/ext/standard/tests/general_functions/bug36011.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #36011 (Strict errormsg wrong for call_user_func() and the likes)
3: --FILE--
4: <?php
5:
6: class TestClass
7: {
8: static function test()
9: {
10: echo __METHOD__ . "()\n";
11: }
12:
13: function whee()
14: {
15: array_map(array('TestClass', 'test'), array('array_value'));
16: }
17:
18: function whee4()
19: {
20: call_user_func(array('TestClass', 'test'));
21: }
22:
23: static function whee5()
24: {
25: call_user_func(array('TestClass', 'test'));
26: }
27: }
28:
29: TestClass::test();
30:
31: $a = new TestClass();
32: $a->whee();
33: $a->whee4();
34: $a->whee5();
35:
36: TestClass::whee5();
37:
38: ?>
39: ===DONE===
40: --EXPECTF--
41: TestClass::test()
42: TestClass::test()
43: TestClass::test()
44: TestClass::test()
45: TestClass::test()
46: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>