diff options
Diffstat (limited to 'tests/testfunc')
-rw-r--r-- | tests/testfunc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/tests/testfunc b/tests/testfunc new file mode 100644 index 0000000000..6c4775e54f --- /dev/null +++ b/tests/testfunc @@ -0,0 +1,36 @@ +<? +function foo() +{ + $i=0; + + if ($i) { + $a = "zeev"; + } else { + $b = "andi"; + } +} + + +function bar() +{ + foo(); +} + +for ($i=0; $i<1000; $i++) { + bar(); +} + + +for ($i=0; $i<10; $i++) { + bar(); +} + +print "Got here... + +"; + +$a = 7; + +$a = 5; + +print "Got here...\n\n";
\ No newline at end of file |