1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 20:22:36 +02:00
Files
archived-php-src/Zend/tests/bug27669.phpt
2019-01-30 09:19:02 +01:00

17 lines
268 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]}();
?>
===DONE===
--EXPECTF--
Hello World
===DONE===