--TEST-- Generator exceptions during shutdown should not be swallowed --FILE-- rewind(); ?> --EXPECTF-- before yield before yield in finally Fatal error: Uncaught Error: Cannot yield from finally in a force-closed generator in %s:%d Stack trace: #0 [internal function]: gen() #1 {main} thrown in %s on line %d