mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
15 lines
234 B
PHP
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==
|