xref: /PHP-8.2/Zend/tests/gh9916-012.phpt (revision b9bca2da)
1--TEST--
2Bug GH-9916 012 (Entering shutdown sequence with a fiber suspended in a Generator emits an unavoidable fatal error or crashes)
3--FILE--
4<?php
5
6$gen = (function() {
7    yield from (function() { yield; })();
8})();
9$fiber = new Fiber(function() use ($gen) {
10    $gen->current();
11});
12$fiber->start();
13
14?>
15==DONE==
16--EXPECT--
17==DONE==
18