php-src/tests/classes/bug20120.phpt
2003-04-16 02:21:30 +00:00

27 lines
349 B
PHP

--TEST--
Methods via variable name, bug #20120
--SKIPIF--
--FILE--
<?php
class bugtest {
function bug() {
echo "test\n";
}
function refbug() {
echo "test2\n";
}
}
$method='bug';
bugtest::$method();
$foo=&$method;
$method='refbug';
bugtest::$foo();
$t = new bugtest;
$t->$method();
?>
--EXPECT--
test
test2
test2