From: [EMAIL PROTECTED] Operating system: win2000 adv server PHP version: 4.0.6 PHP Bug Type: Strings related Bug description: parse_str renames keys
When returning the results of parse_str() to an array, the key will be renamed if it contains a period. $str = "first=value&second[]=this+works&per.iod[]=another"; parse_str($str, $newArray); echo $newArray; /* prints "Array" */ echo $newArray['second']['0']; /* prints "this works" */ echo $newArray['per.iod']['0']; /* "Undefined index: per.iod " */ /* however...*/ echo $newArray['per_iod']['0']; /* prints "another" */ /* notice the array key has been renamed from per.iod to per_iod */ Glen -- Edit bug report at http://bugs.php.net/?id=16369&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=16369&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=16369&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=16369&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=16369&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=16369&r=support Expected behavior: http://bugs.php.net/fix.php?id=16369&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=16369&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=16369&r=submittedtwice
