1--TEST-- 2Test nested calls with die() in a generator 3--FILE-- 4<?php 5 6function gen() { 7 die('Test'); 8 yield; // force generator 9} 10 11function function_with_3_args() { 12 $gen = gen(); 13 $gen->rewind(); 14} 15 16function function_with_4_args() { 17 function_with_3_args(4, 5, 6); 18} 19 20function outerGen() { 21 function_with_4_args(0, 1, 2, 3); 22 yield; // force generator 23} 24 25$outerGen = outerGen(); 26$outerGen->rewind(); 27 28?> 29--EXPECT-- 30Test 31