mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +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!
|