dis-bench / src /php /php-src /Zend /tests /generators /bug65035.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
186 Bytes
--TEST--
Bug #65035: yield / exit segfault
--FILE--
<?php
function gen() {
f();
yield;
}
function f() {
exit('Done');
}
$gen = gen();
$gen->current();
?>
--EXPECT--
Done