diff options
Diffstat (limited to 'tests/lang/008.phpt')
-rw-r--r-- | tests/lang/008.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/lang/008.phpt b/tests/lang/008.phpt new file mode 100644 index 0000000..d335e6f --- /dev/null +++ b/tests/lang/008.phpt @@ -0,0 +1,18 @@ +--TEST-- +Testing recursive function +--FILE-- +<?php + +function Test() +{ + static $a=1; + echo "$a "; + $a++; + if($a<10): Test(); endif; +} + +Test(); + +?> +--EXPECT-- +1 2 3 4 5 6 7 8 9 |