#27578 [NEW]: parse_str() quotes array keys when magic quotes are turned ON

From: Date: Fri, 12 Mar 2004 12:10:00 +0000
Subject: #27578 [NEW]: parse_str() quotes array keys when magic quotes are turned ON
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-56354@lists.php.net to get a copy of this message
From: honza dot malik at ecn dot cz Operating system: Linux PHP version: 4.3.4 PHP Bug Type: Strings related Bug description: parse_str() quotes array keys when magic quotes are turned ON Description: ------------ parse_str() quotes array keys when magic quotes are turned ON (it actually quotes also values, but it is probably (but unfortunatelly) desired behavior) Reproduce code: --------------- parse_str( 'a["key"]=something', $arr); print_r($arr); Expected result: ---------------- Array ( [a] => Array ( ["key"] => something ) ) or maybe Array ( [a] => Array ( [key] => something ) ) Actual result: -------------- Array ( [a] => Array ( [\"key\"] => something ) ) -- Edit bug report at http://bugs.php.net/?id=27578&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27578&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27578&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27578&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27578&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27578&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27578&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27578&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27578&r=support Expected behavior: http://bugs.php.net/fix.php?id=27578&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27578&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27578&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27578&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27578&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27578&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27578&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27578&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27578&r=float

« previous php.bugs (#56354) next »