diff options
Diffstat (limited to 'tests/lang/func_get_args.003.phpt')
-rw-r--r-- | tests/lang/func_get_args.003.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lang/func_get_args.003.phpt b/tests/lang/func_get_args.003.phpt new file mode 100644 index 0000000000..44faf7ebf8 --- /dev/null +++ b/tests/lang/func_get_args.003.phpt @@ -0,0 +1,11 @@ +--TEST-- +func_get_args() outside of a function declaration +--FILE-- +<?php + +var_dump(func_get_args()); + +?> +--EXPECTREGEX-- +Warning\: func_get_args\(\)\: Called from the global scope - no function context in \S* on line 3 +bool\(false\) |