dis-bench / src /php /php-src /Zend /tests /generators /bug67497.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
268 Bytes
--TEST--
Bug #67467: eval with parse error causes segmentation fault in generator
--FILE--
<?php
function gen() {
$a = 1;
yield $a;
}
try {
eval('abc');
} catch (ParseError $ex) {
}
$values = gen();
$values->next();
?>
===DONE===
--EXPECT--
===DONE===