mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +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!
|