mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
18 lines
166 B
Plaintext
18 lines
166 B
Plaintext
|
--TEST--
|
||
|
Ignoring a sent value shouldn't leak memory
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
function gen() {
|
||
|
yield;
|
||
|
}
|
||
|
|
||
|
$gen = gen();
|
||
|
$gen->send(NULL);
|
||
|
|
||
|
echo "DONE";
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
DONE
|