xref: /PHP-8.4/Zend/tests/generators/bug65035.phpt (revision f3e5bbe6)
1--TEST--
2Bug #65035: yield / exit segfault
3--FILE--
4<?php
5
6function gen() {
7    f();
8    yield;
9}
10
11function f() {
12    exit('Done');
13}
14
15$gen = gen();
16$gen->current();
17
18?>
19--EXPECT--
20Done
21