xref: /PHP-8.0/Zend/tests/generators/bug67497.phpt (revision f8d79582)
1--TEST--
2Bug #67467: eval with parse error causes segmentation fault in generator
3--FILE--
4<?php
5
6function gen() {
7    $a = 1;
8    yield $a;
9}
10
11try {
12    eval('abc');
13} catch (ParseError $ex) {
14}
15
16$values = gen();
17$values->next();
18
19?>
20===DONE===
21--EXPECT--
22===DONE===
23