summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_057.phpt
blob: f0062244d26d00c92d8be460e125463efe96282f (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