From: [EMAIL PROTECTED]
Operating system: Win2K / IIS
PHP version: 4.3.0
PHP Bug Type: Feature/Change Request
Bug description: overriding of GET and POST variables
The what some people consider a feature of having a same named form element
only keeping the last item is data lost to me.
The array method (foo.php?a[]=1&a[]=2&a[]=3
) is not peferable to have the html templates cross compatible.
There needs to be a mechanism to access these items. With keeping the
status quo for the people that like this effect, why not create another
global which is a hash of a hash so the duplicated named items are lost.
Currently I have written a class to do this all but getting access to
multipart variables seems to be harder. (especially when also doing file
uploading)
eg:
foo.php?a=1&a=2&a=3&b=ten&c=eleven
$_GET_HASH["a"] = array("1","2","3")
$_GET_HASH["b"] = "ten"
$_GET_HASH["c"] = "eleven"
same effect if a form had been posted
$_POST_HASH["a"] = array("1","2","3")
$_POST_HASH["b"] = "ten"
$_POST_HASH["c"] = "eleven"
with $_FILES still accessable like normal
--
Edit bug report at http://bugs.php.net/?id=21577&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21577&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21577&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21577&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21577&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21577&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21577&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21577&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21577&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21577&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21577&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21577&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21577&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21577&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21577&r=gnused