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')));
11try {
12    foo::bar();
13} catch (Error $e) {
14    echo $e->getMessage(), "\n";
15}
16var_dump(is_callable(array('Exception','getMessage')));
17try {
18    Exception::getMessage();
19} catch (Error $e) {
20    echo $e->getMessage(), "\n";
21}
22?>
23--EXPECT--
24bool(false)
25Non-static method foo::bar() cannot be called statically
26bool(false)
27Non-static method Exception::getMessage() cannot be called statically
28