#23454 [NEW]: Combining GET and POST array values with register_globals=on and track_vars=on

From: Date: Fri, 02 May 2003 19:35:39 +0000
Subject: #23454 [NEW]: Combining GET and POST array values with register_globals=on and track_vars=on
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38954@lists.php.net to get a copy of this message
From: oregon at pobox dot com Operating system: Linux 2.4.9-31 PHP version: 4.3.1 PHP Bug Type: Arrays related Bug description: Combining GET and POST array values with register_globals=on and track_vars=on When both GET and POST variables are sent at the same time to the same array, the GET variables are not getting set correctly (with register_globals=on and track_vars=on). Example: <form action="bug?person[age]=12" method=post> <input type=text size=32 name=person[sname] </form> With register_globals=on and track_vars=on, the script should get both $person['age'] and $person['sname'], and this worked properly in earlier versions of PHP (at least up to 4.2.3). But as of 4.3.1, the POST variable is getting set but the GET variable is lost. This is causing properly written scripts to break under new versions of PHP. -- Edit bug report at http://bugs.php.net/?id=23454&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23454&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23454&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23454&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23454&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23454&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23454&r=support Expected behavior: http://bugs.php.net/fix.php?id=23454&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23454&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23454&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23454&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23454&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23454&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23454&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23454&r=gnused

« previous php.bugs (#38954) next »