1
0
mirror of https://github.com/php/php-src.git synced 2026-04-30 03:33:17 +02:00
Files
archived-php-src/Zend/tests/closure_call_leak_with_exception.phpt
T
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==