File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang / 025.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 8 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

    1: --TEST--
    2: Mean recursion test
    3: --FILE--
    4: <?php 
    5: function RekTest ($nr) {
    6: 	echo " $nr ";
    7: 	$j=$nr+1;
    8: 	while ($j < 10) {
    9: 	  echo " a ";
   10: 	  RekTest($j);
   11: 	  $j++;
   12: 	  echo " b $j ";
   13: 	}
   14: 	echo "\n";
   15: }
   16: 
   17: RekTest(0);
   18: ?>
   19: --EXPECT--
   20:  0  a  1  a  2  a  3  a  4  a  5  a  6  a  7  a  8  a  9 
   21:  b 10 
   22:  b 9  a  9 
   23:  b 10 
   24:  b 8  a  8  a  9 
   25:  b 10 
   26:  b 9  a  9 
   27:  b 10 
   28:  b 7  a  7  a  8  a  9 
   29:  b 10 
   30:  b 9  a  9 
   31:  b 10 
   32:  b 8  a  8  a  9 
   33:  b 10 
   34:  b 9  a  9 
   35:  b 10 
   36:  b 6  a  6  a  7  a  8  a  9 
   37:  b 10 
   38:  b 9  a  9 
   39:  b 10 
   40:  b 8  a  8  a  9 
   41:  b 10 
   42:  b 9  a  9 
   43:  b 10 
   44:  b 7  a  7  a  8  a  9 
   45:  b 10 
   46:  b 9  a  9 
   47:  b 10 
   48:  b 8  a  8  a  9 
   49:  b 10 
   50:  b 9  a  9 
   51:  b 10 
   52:  b 5  a  5  a  6  a  7  a  8  a  9 
   53:  b 10 
   54:  b 9  a  9 
   55:  b 10 
   56:  b 8  a  8  a  9 
   57:  b 10 
   58:  b 9  a  9 
   59:  b 10 
   60:  b 7  a  7  a  8  a  9 
   61:  b 10 
   62:  b 9  a  9 
   63:  b 10 
   64:  b 8  a  8  a  9 
   65:  b 10 
   66:  b 9  a  9 
   67:  b 10 
   68:  b 6  a  6  a  7  a  8  a  9 
   69:  b 10 
   70:  b 9  a  9 
   71:  b 10 
   72:  b 8  a  8  a  9 
   73:  b 10 
   74:  b 9  a  9 
   75:  b 10 
   76:  b 7  a  7  a  8  a  9 
   77:  b 10 
   78:  b 9  a  9 
   79:  b 10 
   80:  b 8  a  8  a  9 
   81:  b 10 
   82:  b 9  a  9 
   83:  b 10 
   84:  b 4  a  4  a  5  a  6  a  7  a  8  a  9 
   85:  b 10 
   86:  b 9  a  9 
   87:  b 10 
   88:  b 8  a  8  a  9 
   89:  b 10 
   90:  b 9  a  9 
   91:  b 10 
   92:  b 7  a  7  a  8  a  9 
   93:  b 10 
   94:  b 9  a  9 
   95:  b 10 
   96:  b 8  a  8  a  9 
   97:  b 10 
   98:  b 9  a  9 
   99:  b 10 
  100:  b 6  a  6  a  7  a  8  a  9 
  101:  b 10 
  102:  b 9  a  9 
  103:  b 10 
  104:  b 8  a  8  a  9 
  105:  b 10 
  106:  b 9  a  9 
  107:  b 10 
  108:  b 7  a  7  a  8  a  9 
  109:  b 10 
  110:  b 9  a  9 
  111:  b 10 
  112:  b 8  a  8  a  9 
  113:  b 10 
  114:  b 9  a  9 
  115:  b 10 
  116:  b 5  a  5  a  6  a  7  a  8  a  9 
  117:  b 10 
  118:  b 9  a  9 
  119:  b 10 
  120:  b 8  a  8  a  9 
  121:  b 10 
  122:  b 9  a  9 
  123:  b 10 
  124:  b 7  a  7  a  8  a  9 
  125:  b 10 
  126:  b 9  a  9 
  127:  b 10 
  128:  b 8  a  8  a  9 
  129:  b 10 
  130:  b 9  a  9 
  131:  b 10 
  132:  b 6  a  6  a  7  a  8  a  9 
  133:  b 10 
  134:  b 9  a  9 
  135:  b 10 
  136:  b 8  a  8  a  9 
  137:  b 10 
  138:  b 9  a  9 
  139:  b 10 
  140:  b 7  a  7  a  8  a  9 
  141:  b 10 
  142:  b 9  a  9 
  143:  b 10 
  144:  b 8  a  8  a  9 
  145:  b 10 
  146:  b 9  a  9 
  147:  b 10 
  148:  b 3  a  3  a  4  a  5  a  6  a  7  a  8  a  9 
  149:  b 10 
  150:  b 9  a  9 
  151:  b 10 
  152:  b 8  a  8  a  9 
  153:  b 10 
  154:  b 9  a  9 
  155:  b 10 
  156:  b 7  a  7  a  8  a  9 
  157:  b 10 
  158:  b 9  a  9 
  159:  b 10 
  160:  b 8  a  8  a  9 
  161:  b 10 
  162:  b 9  a  9 
  163:  b 10 
  164:  b 6  a  6  a  7  a  8  a  9 
  165:  b 10 
  166:  b 9  a  9 
  167:  b 10 
  168:  b 8  a  8  a  9 
  169:  b 10 
  170:  b 9  a  9 
  171:  b 10 
  172:  b 7  a  7  a  8  a  9 
  173:  b 10 
  174:  b 9  a  9 
  175:  b 10 
  176:  b 8  a  8  a  9 
  177:  b 10 
  178:  b 9  a  9 
  179:  b 10 
  180:  b 5  a  5  a  6  a  7  a  8  a  9 
  181:  b 10 
  182:  b 9  a  9 
  183:  b 10 
  184:  b 8  a  8  a  9 
  185:  b 10 
  186:  b 9  a  9 
  187:  b 10 
  188:  b 7  a  7  a  8  a  9 
  189:  b 10 
  190:  b 9  a  9 
  191:  b 10 
  192:  b 8  a  8  a  9 
  193:  b 10 
  194:  b 9  a  9 
  195:  b 10 
  196:  b 6  a  6  a  7  a  8  a  9 
  197:  b 10 
  198:  b 9  a  9 
  199:  b 10 
  200:  b 8  a  8  a  9 
  201:  b 10 
  202:  b 9  a  9 
  203:  b 10 
  204:  b 7  a  7  a  8  a  9 
  205:  b 10 
  206:  b 9  a  9 
  207:  b 10 
  208:  b 8  a  8  a  9 
  209:  b 10 
  210:  b 9  a  9 
  211:  b 10 
  212:  b 4  a  4  a  5  a  6  a  7  a  8  a  9 
  213:  b 10 
  214:  b 9  a  9 
  215:  b 10 
  216:  b 8  a  8  a  9 
  217:  b 10 
  218:  b 9  a  9 
  219:  b 10 
  220:  b 7  a  7  a  8  a  9 
  221:  b 10 
  222:  b 9  a  9 
  223:  b 10 
  224:  b 8  a  8  a  9 
  225:  b 10 
  226:  b 9  a  9 
  227:  b 10 
  228:  b 6  a  6  a  7  a  8  a  9 
  229:  b 10 
  230:  b 9  a  9 
  231:  b 10 
  232:  b 8  a  8  a  9 
  233:  b 10 
  234:  b 9  a  9 
  235:  b 10 
  236:  b 7  a  7  a  8  a  9 
  237:  b 10 
  238:  b 9  a  9 
  239:  b 10 
  240:  b 8  a  8  a  9 
  241:  b 10 
  242:  b 9  a  9 
  243:  b 10 
  244:  b 5  a  5  a  6  a  7  a  8  a  9 
  245:  b 10 
  246:  b 9  a  9 
  247:  b 10 
  248:  b 8  a  8  a  9 
  249:  b 10 
  250:  b 9  a  9 
  251:  b 10 
  252:  b 7  a  7  a  8  a  9 
  253:  b 10 
  254:  b 9  a  9 
  255:  b 10 
  256:  b 8  a  8  a  9 
  257:  b 10 
  258:  b 9  a  9 
  259:  b 10 
  260:  b 6  a  6  a  7  a  8  a  9 
  261:  b 10 
  262:  b 9  a  9 
  263:  b 10 
  264:  b 8  a  8  a  9 
  265:  b 10 
  266:  b 9  a  9 
  267:  b 10 
  268:  b 7  a  7  a  8  a  9 
  269:  b 10 
  270:  b 9  a  9 
  271:  b 10 
  272:  b 8  a  8  a  9 
  273:  b 10 
  274:  b 9  a  9 
  275:  b 10 
  276:  b 2  a  2  a  3  a  4  a  5  a  6  a  7  a  8  a  9 
  277:  b 10 
  278:  b 9  a  9 
  279:  b 10 
  280:  b 8  a  8  a  9 
  281:  b 10 
  282:  b 9  a  9 
  283:  b 10 
  284:  b 7  a  7  a  8  a  9 
  285:  b 10 
  286:  b 9  a  9 
  287:  b 10 
  288:  b 8  a  8  a  9 
  289:  b 10 
  290:  b 9  a  9 
  291:  b 10 
  292:  b 6  a  6  a  7  a  8  a  9 
  293:  b 10 
  294:  b 9  a  9 
  295:  b 10 
  296:  b 8  a  8  a  9 
  297:  b 10 
  298:  b 9  a  9 
  299:  b 10 
  300:  b 7  a  7  a  8  a  9 
  301:  b 10 
  302:  b 9  a  9 
  303:  b 10 
  304:  b 8  a  8  a  9 
  305:  b 10 
  306:  b 9  a  9 
  307:  b 10 
  308:  b 5  a  5  a  6  a  7  a  8  a  9 
  309:  b 10 
  310:  b 9  a  9 
  311:  b 10 
  312:  b 8  a  8  a  9 
  313:  b 10 
  314:  b 9  a  9 
  315:  b 10 
  316:  b 7  a  7  a  8  a  9 
  317:  b 10 
  318:  b 9  a  9 
  319:  b 10 
  320:  b 8  a  8  a  9 
  321:  b 10 
  322:  b 9  a  9 
  323:  b 10 
  324:  b 6  a  6  a  7  a  8  a  9 
  325:  b 10 
  326:  b 9  a  9 
  327:  b 10 
  328:  b 8  a  8  a  9 
  329:  b 10 
  330:  b 9  a  9 
  331:  b 10 
  332:  b 7  a  7  a  8  a  9 
  333:  b 10 
  334:  b 9  a  9 
  335:  b 10 
  336:  b 8  a  8  a  9 
  337:  b 10 
  338:  b 9  a  9 
  339:  b 10 
  340:  b 4  a  4  a  5  a  6  a  7  a  8  a  9 
  341:  b 10 
  342:  b 9  a  9 
  343:  b 10 
  344:  b 8  a  8  a  9 
  345:  b 10 
  346:  b 9  a  9 
  347:  b 10 
  348:  b 7  a  7  a  8  a  9 
  349:  b 10 
  350:  b 9  a  9 
  351:  b 10 
  352:  b 8  a  8  a  9 
  353:  b 10 
  354:  b 9  a  9 
  355:  b 10 
  356:  b 6  a  6  a  7  a  8  a  9 
  357:  b 10 
  358:  b 9  a  9 
  359:  b 10 
  360:  b 8  a  8  a  9 
  361:  b 10 
  362:  b 9  a  9 
  363:  b 10 
  364:  b 7  a  7  a  8  a  9 
  365:  b 10 
  366:  b 9  a  9 
  367:  b 10 
  368:  b 8  a  8  a  9 
  369:  b 10 
  370:  b 9  a  9 
  371:  b 10 
  372:  b 5  a  5  a  6  a  7  a  8  a  9 
  373:  b 10 
  374:  b 9  a  9 
  375:  b 10 
  376:  b 8  a  8  a  9 
  377:  b 10 
  378:  b 9  a  9 
  379:  b 10 
  380:  b 7  a  7  a  8  a  9 
  381:  b 10 
  382:  b 9  a  9 
  383:  b 10 
  384:  b 8  a  8  a  9 
  385:  b 10 
  386:  b 9  a  9 
  387:  b 10 
  388:  b 6  a  6  a  7  a  8  a  9 
  389:  b 10 
  390:  b 9  a  9 
  391:  b 10 
  392:  b 8  a  8  a  9 
  393:  b 10 
  394:  b 9  a  9 
  395:  b 10 
  396:  b 7  a  7  a  8  a  9 
  397:  b 10 
  398:  b 9  a  9 
  399:  b 10 
  400:  b 8  a  8  a  9 
  401:  b 10 
  402:  b 9  a  9 
  403:  b 10 
  404:  b 3  a  3  a  4  a  5  a  6  a  7  a  8  a  9 
  405:  b 10 
  406:  b 9  a  9 
  407:  b 10 
  408:  b 8  a  8  a  9 
  409:  b 10 
  410:  b 9  a  9 
  411:  b 10 
  412:  b 7  a  7  a  8  a  9 
  413:  b 10 
  414:  b 9  a  9 
  415:  b 10 
  416:  b 8  a  8  a  9 
  417:  b 10 
  418:  b 9  a  9 
  419:  b 10 
  420:  b 6  a  6  a  7  a  8  a  9 
  421:  b 10 
  422:  b 9  a  9 
  423:  b 10 
  424:  b 8  a  8  a  9 
  425:  b 10 
  426:  b 9  a  9 
  427:  b 10 
  428:  b 7  a  7  a  8  a  9 
  429:  b 10 
  430:  b 9  a  9 
  431:  b 10 
  432:  b 8  a  8  a  9 
  433:  b 10 
  434:  b 9  a  9 
  435:  b 10 
  436:  b 5  a  5  a  6  a  7  a  8  a  9 
  437:  b 10 
  438:  b 9  a  9 
  439:  b 10 
  440:  b 8  a  8  a  9 
  441:  b 10 
  442:  b 9  a  9 
  443:  b 10 
  444:  b 7  a  7  a  8  a  9 
  445:  b 10 
  446:  b 9  a  9 
  447:  b 10 
  448:  b 8  a  8  a  9 
  449:  b 10 
  450:  b 9  a  9 
  451:  b 10 
  452:  b 6  a  6  a  7  a  8  a  9 
  453:  b 10 
  454:  b 9  a  9 
  455:  b 10 
  456:  b 8  a  8  a  9 
  457:  b 10 
  458:  b 9  a  9 
  459:  b 10 
  460:  b 7  a  7  a  8  a  9 
  461:  b 10 
  462:  b 9  a  9 
  463:  b 10 
  464:  b 8  a  8  a  9 
  465:  b 10 
  466:  b 9  a  9 
  467:  b 10 
  468:  b 4  a  4  a  5  a  6  a  7  a  8  a  9 
  469:  b 10 
  470:  b 9  a  9 
  471:  b 10 
  472:  b 8  a  8  a  9 
  473:  b 10 
  474:  b 9  a  9 
  475:  b 10 
  476:  b 7  a  7  a  8  a  9 
  477:  b 10 
  478:  b 9  a  9 
  479:  b 10 
  480:  b 8  a  8  a  9 
  481:  b 10 
  482:  b 9  a  9 
  483:  b 10 
  484:  b 6  a  6  a  7  a  8  a  9 
  485:  b 10 
  486:  b 9  a  9 
  487:  b 10 
  488:  b 8  a  8  a  9 
  489:  b 10 
  490:  b 9  a  9 
  491:  b 10 
  492:  b 7  a  7  a  8  a  9 
  493:  b 10 
  494:  b 9  a  9 
  495:  b 10 
  496:  b 8  a  8  a  9 
  497:  b 10 
  498:  b 9  a  9 
  499:  b 10 
  500:  b 5  a  5  a  6  a  7  a  8  a  9 
  501:  b 10 
  502:  b 9  a  9 
  503:  b 10 
  504:  b 8  a  8  a  9 
  505:  b 10 
  506:  b 9  a  9 
  507:  b 10 
  508:  b 7  a  7  a  8  a  9 
  509:  b 10 
  510:  b 9  a  9 
  511:  b 10 
  512:  b 8  a  8  a  9 
  513:  b 10 
  514:  b 9  a  9 
  515:  b 10 
  516:  b 6  a  6  a  7  a  8  a  9 
  517:  b 10 
  518:  b 9  a  9 
  519:  b 10 
  520:  b 8  a  8  a  9 
  521:  b 10 
  522:  b 9  a  9 
  523:  b 10 
  524:  b 7  a  7  a  8  a  9 
  525:  b 10 
  526:  b 9  a  9 
  527:  b 10 
  528:  b 8  a  8  a  9 
  529:  b 10 
  530:  b 9  a  9 
  531:  b 10 

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