summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_call_leak_with_exception.phpt
blob: 420dd9a73576d825fa159148036185b349a6b4b8 (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==