php-src/tests/lang/func_get_arg.001.phpt
Dmitry Stogov 3bd32efb3e Behavoir of func_get_arg() and func_get_args() was changed in PHP7.
Now they show current values of variables corresponded to passed arguments instead of originally passed values.
2014-08-15 11:39:50 +04:00

15 lines
139 B
PHP

--TEST--
func_get_arg test (PHP7)
--FILE--
<?php
function foo($a)
{
$a=5;
echo func_get_arg(0);
}
foo(2);
echo "\n";
?>
--EXPECT--
5