Re: #19460 [NEW]: HTTP_POST_VARS trims 4 characters from left side of each field with array name
| From: | Yasuo Ohgaki | Date: | Wed, 18 Sep 2002 02:02:36 +0000 |
| Subject: | Re: #19460 [NEW]: HTTP_POST_VARS trims 4 characters from left side of each field with array name | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-88367@lists.php.net to get a copy of this message | ||
This is fixed in both 4.2.0-dev and 4.3.0-dev weeks ago.
--
Yasuo Ohgaki
nicos@php.net wrote:
Yes I got the same bug. -- Nicos - CHAILLAN Nicolas nicos@php.net www.WorldAKT.com - H?ergement de sites Internet <khalil@paksys.com> a ?rit dans le message de news: bug-19460@bugs.php.net...field with array nameFrom: khalil@paksys.comOperating system: Linux 2.4.9-34 (RedHat 7.2)PHP version: 4.2.3 PHP Bug Type: Apache2 relatedBug description: HTTP_POST_VARS trims 4 characters from left side of eachAfter submitting a form, HTTP_POST_VARS trims 4 characters from left side of each field in a form which has name as an array. Example: <?php echo "my[1]: " . $my[1] . "<br />"; echo "my[2]: " . $my[2] . "<br />"; echo "my[3]: " . $my[3] . "<br />"; echo "my4: " . $my4 . "<br />"; echo "my5: " . $my5 . "<br />"; ?> <form action="1.php" name="name" method="post"> <input type="text" name="my[1]" value='1234567890'> <input type="text" name="my[2]" value='abcdefghijklmnop'> <input type="text" name="my[3]" value='a1b2c3d4e5f6g7'> <input type="text" name="my4" value='abcdefghijklmnop'> <input type="text" name="my5" value='http://www.msn.com/'> <input type=submit name=submit value=Submit /> </form> The OUTPUT I got: my[1]: 567890 my[2]: efghijklmnop my[3]: c3d4e5f6g7 my4: abcdefghijklmnop my5: http://www.msn.com/ -- Edit bug report at http://bugs.php.net/?id=19460&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19460&r=trysnapshotFixed in CVS: http://bugs.php.net/fix.php?id=19460&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19460&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19460&r=needtraceTry newer version: http://bugs.php.net/fix.php?id=19460&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19460&r=support Expected behavior: http://bugs.php.net/fix.php?id=19460&r=notwrongNot enough info: http://bugs.php.net/fix.php?id=19460&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19460&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19460&r=globals