diff options
Diffstat (limited to 'tests/lang/func_get_arg.002.phpt')
| -rw-r--r-- | tests/lang/func_get_arg.002.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/lang/func_get_arg.002.phpt b/tests/lang/func_get_arg.002.phpt new file mode 100644 index 0000000000..6ab4f95719 --- /dev/null +++ b/tests/lang/func_get_arg.002.phpt @@ -0,0 +1,19 @@ +--TEST-- +func_get_arg with variable number of args +--FILE-- +<?php + +function foo($a) +{ + $b = func_get_arg(1); + var_dump($b); + $b++; + var_dump(func_get_arg(1)); + +} +foo(2, 3); +echo "\n"; +?> +--EXPECT-- +int(3) +int(3) |
