File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
Zend /
tests /
bug55247.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue May 29 12:34:36 2012 UTC (12 years, 10 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
HEAD
php 5.4.3+patches
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>