Annotation of embedaddon/php/tests/lang/012.phpt, revision 1.1.1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>