mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
15 lines
240 B
PHP
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==
|