summaryrefslogtreecommitdiff
path: root/tests/lang/func_num_args.003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/func_num_args.003.phpt')
-rw-r--r--tests/lang/func_num_args.003.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/lang/func_num_args.003.phpt b/tests/lang/func_num_args.003.phpt
new file mode 100644
index 0000000..7cf1229
--- /dev/null
+++ b/tests/lang/func_num_args.003.phpt
@@ -0,0 +1,12 @@
+--TEST--
+func_num_args() outside of a function declaration
+--FILE--
+<?php
+
+var_dump(func_num_args());
+
+?>
+--EXPECTF--
+
+Warning: func_num_args(): Called from the global scope - no function context in %s on line %d
+int(-1) \ No newline at end of file