php-src/tests/lang/025.phpt
Stig Bakken 315f4f5658 @PHP 3 regression testing framework re-born (Stig)
Took the old PHP 3 regression testing framework and rewrote it in PHP.
Should work on both Windows and UNIX, however I have not tested it on
Windows.  See tests/README for how to write tests.  Added the PHP 3
tests and converted most of them.
2000-08-27 19:46:06 +00:00

542 lines
6.5 KiB
PHP

--TEST--
Mean recursion test
--POST--
--GET--
--FILE--
<?php
old_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 a 9
b 10
b 8 a 8 a 9
b 10
b 9 a 9
b 10
b 4 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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