- Add test case for bug 20120, bison bug.

This commit is contained in:
Derick Rethans 2002-10-27 18:44:35 +00:00
parent 7a71b3ba38
commit edf4496491

View File

@ -0,0 +1,26 @@
--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