1--TEST--
2Bug #47851 (is_callable throws fatal error)
3--FILE--
4<?php
5class foo {
6	function bar() {
7		echo "ok\n";
8	}
9}
10var_dump(is_callable(array('foo','bar')));
11foo::bar();
12var_dump(is_callable(array('Exception','getMessage')));
13Exception::getMessage();
14?>
15--EXPECTF--
16bool(true)
17
18Deprecated: Non-static method foo::bar() should not be called statically in %sbug47857.php on line %d
19ok
20bool(false)
21
22Fatal error: Uncaught Error: Non-static method Exception::getMessage() cannot be called statically in %sbug47857.php:%d
23Stack trace:
24#0 {main}
25  thrown in %sbug47857.php on line %d
26