ID: 15025 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: Scripting Engine problem Operating System: FreeBSD, Linux PHP Version: 4.1.1 New Comment:
$c should not have been affected by the assignment to $b because $c should only be a copy to $a. What happened is the first echo shows 5 and after assignment to $b, the content of $c changes to 1 when it should stay as 5. Previous Comments: ------------------------------------------------------------------------ [2002-01-13 22:18:55] [EMAIL PROTECTED] 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 this bug report at http://bugs.php.net/?id=15025&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]