xref: /PHP-7.2/Zend/tests/bug27669.phpt (revision a8c15950)
1--TEST--
2Bug #27669 (PHP 5 didn't support all possibilities for calling static methods dynamically)
3--FILE--
4<?php
5	error_reporting(E_ALL & !E_STRICT);
6
7	class A {
8		function hello() {
9			echo "Hello World\n";
10		}
11	}
12	$y[0] = 'hello';
13	A::{$y[0]}();
14?>
15===DONE===
16--EXPECTF--
17Hello World
18===DONE===
19