]> granicus.if.org Git - php/commitdiff
- Add test case for bug 20120, bison bug.
authorDerick Rethans <derick@php.net>
Sun, 27 Oct 2002 18:44:35 +0000 (18:44 +0000)
committerDerick Rethans <derick@php.net>
Sun, 27 Oct 2002 18:44:35 +0000 (18:44 +0000)
tests/classes/bug20120.phpt [new file with mode: 0644]

diff --git a/tests/classes/bug20120.phpt b/tests/classes/bug20120.phpt
new file mode 100644 (file)
index 0000000..8cc326e
--- /dev/null
@@ -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