Bug #15025: Copy of array is affected by reference
| From: | jimmy at harlindong dot com | Date: | Mon, 14 Jan 2002 03:18:55 +0000 |
| Subject: | Bug #15025: Copy of array is affected by reference | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-76960@lists.php.net to get a copy of this message | ||
From: jimmy@harlindong.com
Operating system: FreeBSD, Linux
PHP version: 4.1.1
PHP Bug Type: Scripting Engine problem
Bug description: Copy of array is affected by reference
You can guess / see from this simple script:
$a = array(5);
$b =& $a[0];
$c = $a;
echo $c[0];
$b = 1;
echo $c[0];
--
Edit bug report at: http://bugs.php.net/?id=15025&edit=1