blob: a2b0dac5e4529c1af577b7ad2582d9112c686877 (
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
26
|
--TEST--
Bug #47851 (is_callable throws fatal error)
--FILE--
<?php
class foo {
function bar() {
echo "ok\n";
}
}
var_dump(is_callable(array('foo','bar')));
foo::bar();
var_dump(is_callable(array('Exception','getMessage')));
Exception::getMessage();
?>
--EXPECTF--
bool(true)
Deprecated: Non-static method foo::bar() should not be called statically in %sbug47857.php on line %d
ok
bool(false)
Fatal error: Uncaught EngineException: Non-static method BaseException::getMessage() cannot be called statically in %sbug47857.php:%d
Stack trace:
#0 {main}
thrown in %sbug47857.php on line %d
|