xref: /PHP-7.3/Zend/tests/closure_057.phpt (revision 6b8d5b01)
1--TEST--
2Closure 057: segfault in leave helper
3--FILE--
4<?php
5class A {
6}
7
8function getfunc() {
9	$b = function() {
10		$a = function() {
11		};
12		$a();
13	};
14	return $b->bindTo(new A());
15}
16
17call_user_func(getfunc());
18
19echo "okey";
20?>
21--EXPECT--
22okey
23