1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
--TEST-- Testing stack after early function return --POST-- --GET-- --FILE-- <?php old_function F ( if(1): return("Hello"); endif; ); $i=0; while($i<2): echo F(); $i++; endwhile; ?> --EXPECT-- HelloHello