summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_call_leak_with_exception.phpt
blob: f6545ee520030cf3c319d215de7ecbdeba28e5c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Closure must not leak during a dynamic call interrupted by an exception
--FILE--
<?php

(function() {
	$closure = function($foo) { var_dump($foo); };
	$closure(yield);
})()->valid(); // start

?>
==DONE==
--EXPECT--
==DONE==