summaryrefslogtreecommitdiff
path: root/Zend/tests/bug55247.phpt
blob: 8c21019abdd5f8fb6ddde44f0612757798e6c111 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--TEST--
Request #55247 (Parser problem with static calls using string method name)
--FILE--
<?php
class Test{
    public static function __callStatic($method, $arguments)
	{
        echo $method . PHP_EOL;
    }
    public function __call($method, $arguments)
	{
        echo $method . PHP_EOL;
    }
}

$method = 'method';

$test = new Test();

$test->method();
$test->$method();
$test->{'method'}();

Test::method();
Test::$method();
Test::{'method'}();
--EXPECT--
method
method
method
method
method
method