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