Re: Re: #19460 [NEW]: HTTP_POST_VARS trims 4 characters from left side of each field with array name
| From: | Wez Furlong | Date: | Wed, 18 Sep 2002 00:43:30 +0000 |
| Subject: | Re: Re: #19460 [NEW]: HTTP_POST_VARS trims 4 characters from left side of each field with array name | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-88368@lists.php.net to get a copy of this message | ||
You probably configured --enable-mbstr-enc-trans which had this issue
in 4.2.3; since you are probably not really using that functionality
(because if you really knew what it does, you wouldn't have enabled it!),
remove the option and reconfigure.
IIRC, Yasuo fixed this in the branch (and in HEAD).
--Wez.
On 18/09/02, nicos@php.net wrote:
> Yes I got the same bug.
> <khalil@paksys.com> a écrit dans le message de news:
> bug-19460@bugs.php.net...
> > From: khalil@paksys.com
> > Operating system: Linux 2.4.9-34 (RedHat 7.2)
> > PHP version: 4.2.3
> > PHP Bug Type: Apache2 related
> > Bug description: HTTP_POST_VARS trims 4 characters from left side of each
> field with array name
> >
> > After 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/