cvs: php4 /tests/lang bug20993.phpt

From: Date: Fri, 13 Dec 2002 18:40:39 +0000
Subject: cvs: php4 /tests/lang bug20993.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-17212@lists.php.net to get a copy of this message
msopacua Fri Dec 13 13:40:39 2002 EDT Added files: /php4/tests/lang bug20993.phpt Log: Add testcase for bug #20993 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 (#17212) next »