summaryrefslogtreecommitdiff
path: root/tests/lang/func_get_arg.004.phpt
blob: 5afe4c95eba0d4692057cc9e32ad21d98dc1edf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
func_get_arg on non-existent arg
--FILE--
<?php

function foo($a)
{
	var_dump(func_get_arg(2));	
}
foo(2, 3);
echo "\n";

?>
--EXPECTF--
Warning: func_get_arg():  Argument 2 not passed to function in %s on line %d
bool(false)