summaryrefslogtreecommitdiff
path: root/tests/lang/func_get_arg.003.phpt
blob: 4ef996767411fa5082093561c46c388d3dfc556a (plain)
1
2
3
4
5
6
7
8
9
10
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)