Return to 012.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang |
1.1 misho 1: --TEST-- 2: Testing stack after early function return 3: --FILE-- 4: <?php 5: function F () { 6: if(1) { 7: return("Hello"); 8: } 9: } 10: 11: $i=0; 12: while ($i<2) { 13: echo F(); 14: $i++; 15: } 16: ?> 17: --EXPECT-- 18: HelloHello