1--TEST-- 2Request #55247 (Parser problem with static calls using string method name) 3--FILE-- 4<?php 5class 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 24Test::method(); 25Test::$method(); 26Test::{'method'}(); 27?> 28--EXPECT-- 29method 30method 31method 32method 33method 34method 35