1--TEST--
2Closure must not leak during a dynamic call interrupted by an exception
3--FILE--
4<?php
5
6(function() {
7    $closure = function($foo) { var_dump($foo); };
8    $closure(yield);
9})()->valid(); // start
10
11?>
12==DONE==
13--EXPECT--
14==DONE==
15