php-src/ext/standard/tests/bug75220.phpt

29 lines
399 B
Plaintext
Raw Normal View History

--TEST--
Bug #75220 (is_callable crash for 'parent')
--FILE--
<?php
$a = new A();
$a->bar('foo');
class B {};
class A extends B
{
2020-02-03 21:52:20 +00:00
function bar($func)
{
var_dump('foo');
var_dump(is_callable('parent::foo'));
var_dump(is_callable(array('parent', 'foo')));
}
2018-09-16 17:16:42 +00:00
2020-02-03 21:52:20 +00:00
function __call($func, $args)
{
}
};
?>
--EXPECT--
string(3) "foo"
bool(false)
bool(false)