php-src/Zend/tests/bug27669.phpt

18 lines
351 B
Plaintext
Raw Normal View History

2004-09-16 19:36:56 +00:00
--TEST--
Bug #27669 (PHP 5 didn't support all possibilities for calling static methods dynamically)
--FILE--
<?php
class A {
function hello() {
echo "Hello World\n";
}
}
$y[0] = 'hello';
2014-05-30 20:33:03 +00:00
A::{$y[0]}();
2004-09-16 19:36:56 +00:00
?>
===DONE===
--EXPECTF--
Deprecated: Non-static method A::hello() should not be called statically in %s on line %d
2004-09-16 19:36:56 +00:00
Hello World
===DONE===