cvs: php4 /tests/classes bug20120.phpt
| From: | Derick Rethans | Date: | Sun, 27 Oct 2002 18:44:35 +0000 |
| Subject: | cvs: php4 /tests/classes bug20120.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15499@lists.php.net to get a copy of this message | ||
derick Sun Oct 27 13:44:35 2002 EDT
Added files:
/php4/tests/classes bug20120.phpt
Log:
- Add test case for bug 20120, bison bug.
Index: php4/tests/classes/bug20120.phpt
+++ php4/tests/classes/bug20120.phpt
--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