summaryrefslogtreecommitdiff
path: root/tests/lang/func_num_args.002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/func_num_args.002.phpt')
-rw-r--r--tests/lang/func_num_args.002.phpt14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/lang/func_num_args.002.phpt b/tests/lang/func_num_args.002.phpt
new file mode 100644
index 0000000..bfb8f7c
--- /dev/null
+++ b/tests/lang/func_num_args.002.phpt
@@ -0,0 +1,14 @@
+--TEST--
+func_num_args with variable number of args
+--FILE--
+<?php
+
+function foo($a)
+{
+ var_dump(func_num_args());
+}
+foo(1, 2, 3);
+
+?>
+--EXPECT--
+int(3) \ No newline at end of file