summaryrefslogtreecommitdiff
path: root/Zend/tests/bug34678.phpt
blob: 2a13201f265ec717290998dbc3457fa18b99cf30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--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