You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
347 B

--TEST--
Methods via variable name, bug #20120
--SKIP--
--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