diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2014-08-15 11:39:50 +0400 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2014-08-15 11:39:50 +0400 |
| commit | 3bd32efb3e2baaaac5b339ca51d9046aade1734f (patch) | |
| tree | 1c2ae017990d81bcb293d41be8251e9b5bb3b51f | |
| parent | 0d57a7bf34a52618c0b5d3679a522a818b5adcf3 (diff) | |
| download | php-git-3bd32efb3e2baaaac5b339ca51d9046aade1734f.tar.gz | |
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.
| -rw-r--r-- | tests/lang/func_get_arg.001.phpt | 4 | ||||
| -rw-r--r-- | tests/lang/func_get_args.004.phpt | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/lang/func_get_arg.001.phpt b/tests/lang/func_get_arg.001.phpt index b1bbb18699..00315b0ee0 100644 --- a/tests/lang/func_get_arg.001.phpt +++ b/tests/lang/func_get_arg.001.phpt @@ -1,5 +1,5 @@ --TEST-- -func_get_arg test +func_get_arg test (PHP7) --FILE-- <?php @@ -12,4 +12,4 @@ foo(2); echo "\n"; ?> --EXPECT-- -2
\ No newline at end of file +5
\ No newline at end of file diff --git a/tests/lang/func_get_args.004.phpt b/tests/lang/func_get_args.004.phpt index 84e3ebe5a2..384d99a818 100644 --- a/tests/lang/func_get_args.004.phpt +++ b/tests/lang/func_get_args.004.phpt @@ -1,5 +1,5 @@ --TEST-- -Pass same variable by ref and by value. +Pass same variable by ref and by value (PHP7). --FILE-- <?php function valRef($x, &$y) { @@ -42,7 +42,7 @@ array(2) { } array(2) { [0]=> - string(10) "original.a" + string(9) "changed.x" [1]=> string(9) "changed.y" } @@ -62,6 +62,6 @@ array(2) { [0]=> string(9) "changed.x" [1]=> - string(10) "original.b" + string(9) "changed.y" } -string(9) "changed.x"
\ No newline at end of file +string(9) "changed.x" |
