Bug #18103: Incorrect behavior of multi-dimensional Array

From: Date: Tue, 02 Jul 2002 03:26:11 +0000
Subject: Bug #18103: Incorrect behavior of multi-dimensional Array
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-12753@lists.php.net to get a copy of this message
From: stephung@mosp.net Operating system: ALL PHP version: 4.2.1 PHP Bug Type: Arrays related Bug description: Incorrect behavior of multi-dimensional Array The following code: $test['foo'] = "abc"; $test['foo']['bar'] = "123"; echo $test['foo']; // Output "1bc" The output is "1bc". IMO, "abc" would be the only semantically correct output, although "Array" is also acceptable, which means value "abc" is replaced by array( 'bar' => "123"). The actual output "1bc" is definietly not correct. This happens on all versions of PHP. -- Edit bug report at http://bugs.php.net/?id=18103&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18103&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18103&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18103&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18103&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18103&r=support Expected behavior: http://bugs.php.net/fix.php?id=18103&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18103&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18103&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18103&r=globals

« previous php.bugs (#12753) next »