xref: /PHP-7.3/ext/standard/tests/bug75220.phpt (revision b746e698)
1--TEST--
2Bug #75220 (is_callable crash for 'parent')
3--FILE--
4<?php
5
6$a = new A();
7$a->bar('foo');
8
9class B {};
10class A extends B
11{
12	function bar($func)
13	{
14		var_dump('foo');
15		var_dump(is_callable('parent::foo'));
16		var_dump(is_callable(array('parent', 'foo')));
17	}
18
19	function __call($func, $args)
20	{
21	}
22};
23
24?>
25--EXPECT--
26string(3) "foo"
27bool(false)
28bool(false)
29