summaryrefslogtreecommitdiff
path: root/ext/standard/tests/bug75220.phpt
blob: f0ba55a702380c5833e76898fc1e345f6ac3c7b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--TEST--
Bug #75220 (is_callable crash for 'parent')
--FILE--
<?php

$a = new A();
$a->bar('foo');

class B {};
class A extends B
{
    function bar($func)
    {
        var_dump('foo');
        var_dump(is_callable('parent::foo'));
        var_dump(is_callable(array('parent', 'foo')));
    }

    function __call($func, $args)
    {
    }
};

?>
--EXPECT--
string(3) "foo"
bool(false)
bool(false)