Annotation of embedaddon/php/Zend/tests/bug34678.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #34678 (__call(), is_callable() and static methods)
! 3: --FILE--
! 4: <?php
! 5: class A {
! 6: public function __call($m, $a) {
! 7: echo "__call\n";
! 8: }
! 9: }
! 10:
! 11: class B extends A {
! 12: public static function foo() {
! 13: echo "foo\n";
! 14: }
! 15: }
! 16:
! 17: if (is_callable(array('B', 'foo'))) {
! 18: call_user_func(array('B', 'foo'));
! 19: }
! 20: if (is_callable(array('A', 'foo'))) {
! 21: call_user_func(array('A', 'foo'));
! 22: }
! 23: ?>
! 24: --EXPECT--
! 25: foo
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>