mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
aa3f44a395
These values remain live after the generator has been closed, so they are particularly susceptible to leaking cycles.
16 lines
178 B
PHP
16 lines
178 B
PHP
--TEST--
|
|
Bug #69989: Cycle collection for yielded values
|
|
--FILE--
|
|
<?php
|
|
|
|
function gen() {
|
|
yield yield;
|
|
}
|
|
$gen = gen();
|
|
$gen->send($gen);
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|