xref: /PHP-7.3/Zend/tests/bug27669.phpt (revision 1a3bdb4a)
1--TEST--
2Bug #27669 (PHP 5 didn't support all possibilities for calling static methods dynamically)
3--FILE--
4<?php
5	class A {
6		function hello() {
7			echo "Hello World\n";
8		}
9	}
10	$y[0] = 'hello';
11	A::{$y[0]}();
12?>
13===DONE===
14--EXPECTF--
15Deprecated: Non-static method A::hello() should not be called statically in %s on line %d
16Hello World
17===DONE===
18