mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
28 lines
466 B
PHP
28 lines
466 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)
|