php-src/Zend/tests/closure_call_leak_with_exception.phpt
2020-02-03 22:52:20 +01:00

15 lines
240 B
PHP

--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==