xref: /PHP-8.0/Zend/tests/bug65108.phpt (revision 7aacc705)
1--TEST--
2Bug #65108 (is_callable() triggers Fatal Error)
3--FILE--
4<?php
5class C {
6    private function f() {}
7    static function __callStatic($name, $args) {}
8}
9
10class B {
11    public function __construct() {
12        $isCallable = is_callable(array(new C, 'f'));
13        var_dump($isCallable);
14    }
15}
16
17new B();
18
19Class E {
20   private function f() {}
21   function __call($name, $args) {}
22}
23$isCallable = is_callable(array('E', 'f'));
24var_dump($isCallable);
25?>
26--EXPECT--
27bool(false)
28bool(false)
29