1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 17:38:14 +02:00
Files
archived-php-src/Zend/tests/gh9916-012.phpt
T
Bob Weinand b9bca2dadb Fix resetting ZEND_GENERATOR_IN_FIBER flag
Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
2023-01-30 12:13:07 +01:00

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==