mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +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!
|