summaryrefslogtreecommitdiff
path: root/tests/lang/func_get_arg.003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/func_get_arg.003.phpt')
-rw-r--r--tests/lang/func_get_arg.003.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lang/func_get_arg.003.phpt b/tests/lang/func_get_arg.003.phpt
new file mode 100644
index 0000000..4ef9967
--- /dev/null
+++ b/tests/lang/func_get_arg.003.phpt
@@ -0,0 +1,11 @@
+--TEST--
+func_get_arg outside of a function declaration
+--FILE--
+<?php
+
+var_dump (func_get_arg(0));
+
+?>
+--EXPECTF--
+Warning: func_get_arg(): Called from the global scope - no function context in %s on line %d
+bool(false)