mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
23 lines
265 B
PHP
23 lines
265 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===
|