cvs: php4(PHP_4_3) /tests/lang bug20993.phpt

From: Date: Fri, 13 Dec 2002 18:46:15 +0000
Subject: cvs: php4(PHP_4_3) /tests/lang bug20993.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-17213@lists.php.net to get a copy of this message
msopacua Fri Dec 13 13:46:15 2002 EDT Added files: (Branch: PHP_4_3) /php4/tests/lang bug20993.phpt Log: MFH Index: php4/tests/lang/bug20993.phpt +++ php4/tests/lang/bug20993.phpt --TEST-- Bug #20993 (referenced array key, makes array global) --FILE-- <?php $a = array(1); $b = array(1); $ref =& $a[0]; echo $a[0], ' -b ', $b[0], ' -r ', $ref, "\n"; changeVal($a); echo $a[0], ' -b ', $b[0], ' -r ', $ref, "\n"; changeVal($b); echo $a[0], ' -b ', $b[0], ' -r ', $ref, "\n"; function changeVal($arr) { $arr[0] = 2; } ?> --EXPECT-- 1 -b 1 -r 1 1 -b 1 -r 1 1 -b 1 -r 1

« previous php.cvs (#17213) next »