mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
b9bca2dadb
Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
18 lines
339 B
PHP
18 lines
339 B
PHP
--TEST--
|
|
Bug GH-9916 012 (Entering shutdown sequence with a fiber suspended in a Generator emits an unavoidable fatal error or crashes)
|
|
--FILE--
|
|
<?php
|
|
|
|
$gen = (function() {
|
|
yield from (function() { yield; })();
|
|
})();
|
|
$fiber = new Fiber(function() use ($gen) {
|
|
$gen->current();
|
|
});
|
|
$fiber->start();
|
|
|
|
?>
|
|
==DONE==
|
|
--EXPECT--
|
|
==DONE==
|