#22104 [NEW]: problem with adding value to multiplie dimensional arrays

From: Date: Fri, 07 Feb 2003 07:04:09 +0000
Subject: #22104 [NEW]: problem with adding value to multiplie dimensional arrays
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32370@lists.php.net to get a copy of this message
From: canholms@hotmail.com Operating system: Windows PHP version: 4.3.0 PHP Bug Type: Arrays related Bug description: problem with adding value to multiplie dimensional arrays foreach($array[0] as $key => $value) { $array[1]=1; } This will change the value on $array[0] too, i can't explain it more. I tested with serialize and the value on the variable gets very strange... -- Edit bug report at http://bugs.php.net/?id=22104&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22104&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22104&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22104&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22104&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22104&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22104&r=support Expected behavior: http://bugs.php.net/fix.php?id=22104&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22104&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22104&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22104&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22104&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22104&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22104&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22104&r=gnused

« previous php.bugs (#32370) next »