Annotation of embedaddon/php/Zend/tests/bug55247.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Request #55247 (Parser problem with static calls using string method name)
3: --FILE--
4: <?php
5: class Test{
6: public static function __callStatic($method, $arguments)
7: {
8: echo $method . PHP_EOL;
9: }
10: public function __call($method, $arguments)
11: {
12: echo $method . PHP_EOL;
13: }
14: }
15:
16: $method = 'method';
17:
18: $test = new Test();
19:
20: $test->method();
21: $test->$method();
22: $test->{'method'}();
23:
24: Test::method();
25: Test::$method();
26: Test::{'method'}();
27: --EXPECT--
28: method
29: method
30: method
31: method
32: method
33: method
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>