php-src/Zend/tests/bug55247.phpt
2018-10-14 19:45:12 +02:00

34 lines
510 B
PHP

--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