mirror of
https://github.com/php/php-src.git
synced 2024-10-02 23:36:16 +00:00
16 lines
234 B
Plaintext
16 lines
234 B
Plaintext
|
--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)
|