sniper          Sat Nov 29 02:15:32 2003 EDT

  Added files:                 
    /php-src/tests/lang bug25652.php 
  Log:
  test for bug #25652
  

Index: php-src/tests/lang/bug25652.php
+++ php-src/tests/lang/bug25652.php
--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

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to