mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
ef2608925c
alternative-syntax testfile.
534 lines
6.5 KiB
PHP
534 lines
6.5 KiB
PHP
--TEST--
|
|
Mean recursion test
|
|
--POST--
|
|
--GET--
|
|
--FILE--
|
|
<?php
|
|
function RekTest ($nr) {
|
|
echo " $nr ";
|
|
$j=$nr+1;
|
|
while ($j < 10) {
|
|
echo " a ";
|
|
RekTest($j);
|
|
$j++;
|
|
echo " b $j ";
|
|
}
|
|
echo "\n";
|
|
}
|
|
|
|
RekTest(0);
|
|
?>
|
|
--EXPECT--
|
|
0 a 1 a 2 a 3 a 4 a 5 a 6 a 7 a 8 a 9
|
|
b 10
|
|
b 9 a 9
|
|
b 10
|
|
b 8 a 8 a 9
|
|
b 10
|
|
b 9 a 9
|
|
b 10
|
|
b 7 a 7 a 8 a 9
|
|
b 10
|
|
b 9 a 9
|
|
b 10
|
|
b 8 a 8 a 9
|
|
b 10
|
|
b 9 a 9
|
|
b 10
|
|
b 6 a 6 a 7 a 8 a 9
|
|
b 10
|
|
b 9 a 9
|
|
b 10
|
|
b 8 a 8 a 9
|
|
b 10
|
|
b 9 a 9
|
|
b 10
|
|
b 7 a 7 a 8 a 9
|
|
b 10
|
|
b 9 a 9
|
|
b 10
|
|
b 8 a 8 a 9
|
|
b 10
|
|
b 9 a 9
|
|
b 10
|
|
b 5 a 5 a 6 a 7 a 8 a 9
|
|
b 10
|
|
b 9 a 9
|
|
b 10
|
|
b 8 a 8 a 9
|
|
b 10
|
|
b 9 a 9
|
|
b 10
|
|
b 7 a 7 a 8 a 9
|
|
b 10
|
|
b 9 a 9
|
|
b 10
|
|
b 8 a 8 a 9
|
|
b 10
|
|
b 9 a 9
|
|
b 10
|
|
b 6 a 6 a 7 a 8 a 9
|
|
b 10
|
|
b 9 a 9
|
|
b 10
|
|
b 8 a 8 a 9
|
|
b 10
|
|
b 9 a 9
|
|
b 10
|
|
b 7 a 7 a 8 a 9
|
|
b 10
|
|
b 9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