summaryrefslogtreecommitdiff
path: root/tests/lang/func_get_arg.004.phpt
blob: 6d0ab20a4efd99719ff5cccf912e90261a2ed9ba (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)