summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_057.phpt
blob: db998c5184ccbcbefd4e90cec63500ed49e3b29e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Closure 057: segfault in leave helper
--FILE--
<?php
class A {
}

function getfunc() {
    $b = function() {
        $a = function() {
        };
        $a();
    };
    return $b->bindTo(new A());
}

call_user_func(getfunc());

echo "okey";
?>
--EXPECT--
okey