mirror of
https://github.com/php/php-src.git
synced 2024-12-12 11:23:53 +08:00
28 lines
314 B
PHP
28 lines
314 B
PHP
--TEST--
|
|
Indirect call with constants.
|
|
--FILE--
|
|
<?php
|
|
|
|
class Test
|
|
{
|
|
public static function method()
|
|
{
|
|
echo "Method called!\n";
|
|
}
|
|
}
|
|
|
|
['Test', 'method']();
|
|
|
|
'Test::method'();
|
|
|
|
(['Test', 'method'])();
|
|
|
|
('Test::method')();
|
|
|
|
?>
|
|
--EXPECT--
|
|
Method called!
|
|
Method called!
|
|
Method called!
|
|
Method called!
|