1--TEST-- 2Generator::throw() where the exception is not caught in the generator 3--FILE-- 4<?php 5 6function gen() { 7 yield 'thisThrows'; 8 yield 'notReached'; 9} 10 11$gen = gen(); 12var_dump($gen->throw(new RuntimeException('test'))); 13 14?> 15--EXPECTF-- 16Fatal error: Uncaught exception 'RuntimeException' with message 'test' in %s:%d 17Stack trace: 18#0 {main} 19 thrown in %s on line %d 20