]> granicus.if.org Git - php/commitdiff
test for bug #25652
authorfoobar <sniper@php.net>
Sat, 29 Nov 2003 07:15:31 +0000 (07:15 +0000)
committerfoobar <sniper@php.net>
Sat, 29 Nov 2003 07:15:31 +0000 (07:15 +0000)
tests/lang/bug25652.php [new file with mode: 0755]

diff --git a/tests/lang/bug25652.php b/tests/lang/bug25652.php
new file mode 100755 (executable)
index 0000000..cf0cc1a
--- /dev/null
@@ -0,0 +1,22 @@
+--TEST--
+Bug #25652 (Calling Global functions dynamically fails from Class scope)
+--FILE--
+<?php
+
+       function testfunc ($var) {
+               echo "testfunc $var\n";
+       }
+       
+       class foo {
+               var $arr = array('testfunc');
+               function bar () {
+                       $this->arr[0]('testvalue');
+               }
+       }
+       
+       $a = new foo ();
+       $a->bar ();
+       
+?>
+--EXPECT--
+testfunc testvalue