1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 05:21:02 +02:00
Files
archived-php-src/Zend/tests/generators/bug67497.phpt
2020-02-03 22:52:20 +01:00

23 lines
268 B
PHP

--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===