php-src/Zend/tests/bug65108.phpt

29 lines
493 B
Plaintext
Raw Normal View History

--TEST--
Bug #65108 (is_callable() triggers Fatal Error)
--FILE--
<?php
class C {
2020-02-04 05:52:20 +08:00
private function f() {}
static function __callStatic($name, $args) {}
}
class B {
2020-02-04 05:52:20 +08:00
public function __construct() {
$isCallable = is_callable(array(new C, 'f'));
var_dump($isCallable);
}
}
new B();
Class E {
private function f() {}
function __call($name, $args) {}
}
$isCallable = is_callable(array('E', 'f'));
var_dump($isCallable);
?>
--EXPECT--
bool(false)
bool(false)