--TEST-- GH-8289 (Exceptions thrown within a yielded from iterator are not rethrown into the generator) --FILE-- $v) { var_dump($v); } ?> --EXPECTF-- int(1) Exception in %s:%d Stack trace: #0 %s(%d): IteratorIterator@anonymous->key() #1 %s(%d): yieldFromIteratorGeneratorThrows() #2 {main} int(2)