xref: /PHP-5.6/tests/lang/func_get_arg.003.phpt (revision 775389cd)
1--TEST--
2func_get_arg outside of a function declaration
3--FILE--
4<?php
5
6var_dump (func_get_arg(0));
7
8?>
9--EXPECTF--
10Warning: func_get_arg():  Called from the global scope - no function context in %s on line %d
11bool(false)
12