cvs: ZendEngine2(PHP_5_1) /tests bug34678.phpt

From: Date: Mon, 03 Oct 2005 09:12:20 +0000
Subject: cvs: ZendEngine2(PHP_5_1) /tests bug34678.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4189@lists.php.net to get a copy of this message
dmitry Mon Oct 3 05:12:20 2005 EDT Added files: (Branch: PHP_5_1) /ZendEngine2/tests bug34678.phpt Log: Fixed bug #34678 (__call(), is_callable() and static methods) http://cvs.php.net/co.php/ZendEngine2/tests/bug34678.phpt?r=1.1&p=1 Index: ZendEngine2/tests/bug34678.phpt +++ ZendEngine2/tests/bug34678.phpt --TEST-- Bug #34678 (__call(), is_callable() and static methods) --FILE-- <?php class A { public function __call($m, $a) { echo "__call\n"; } } class B extends A { public static function foo() { echo "foo\n"; } } if (is_callable(array('B', 'foo'))) { call_user_func(array('B', 'foo')); } if (is_callable(array('A', 'foo'))) { call_user_func(array('A', 'foo')); } ?> --EXPECT-- foo

« previous php.zend-engine.cvs (#4189) next »