summaryrefslogtreecommitdiff
path: root/Zend/tests/bug55247.phpt
blob: c87fcb9526103492761de0fa2957f800e8b6938d (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
34
--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