php-src/Zend/tests/closure_call_leak_with_exception.phpt
2015-06-26 16:30:01 +02:00

15 lines
234 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==