mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
7aacc705d0
Closes GH-5958
29 lines
493 B
PHP
29 lines
493 B
PHP
--TEST--
|
|
Bug #65108 (is_callable() triggers Fatal Error)
|
|
--FILE--
|
|
<?php
|
|
class C {
|
|
private function f() {}
|
|
static function __callStatic($name, $args) {}
|
|
}
|
|
|
|
class B {
|
|
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)
|