mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
15 lines
279 B
PHP
15 lines
279 B
PHP
--TEST--
|
|
Bug #27669 (PHP 5 didn't support all possibilities for calling static methods dynamically)
|
|
--FILE--
|
|
<?php
|
|
class A {
|
|
static function hello() {
|
|
echo "Hello World\n";
|
|
}
|
|
}
|
|
$y[0] = 'hello';
|
|
A::{$y[0]}();
|
|
?>
|
|
--EXPECTF--
|
|
Hello World
|