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