#19460 [Com]: HTTP_POST_VARS trims 4 characters from left side of each field with array name
| From: | lamart at nikoli dot net | Date: | Wed, 16 Oct 2002 05:10:36 +0000 |
| Subject: | #19460 [Com]: HTTP_POST_VARS trims 4 characters from left side of each field with array name | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-22543@lists.php.net to get a copy of this message | ||
ID: 19460
Comment by: lamart@nikoli.net
Reported By: khalil@paksys.com
Status: Closed
Bug Type: mbstring related
Operating System: Linux 2.4.9-34 (RedHat 7.2)
PHP Version: 4.2.3
New Comment:
What does it mean "This has been fixed in CVS"? Do I need to get a new
copy of cvs? If so, where do I get it? Or is CVS a place where I can
get a new copy of php? If so, where is this "cvs"? More info. needed.
Previous Comments:
------------------------------------------------------------------------
[2002-09-18 09:45:05] wez@php.net
The issue was with the --enable-mbstr-enc-trans configure
option; remove it from your configure line and rebuild and
the problem goes away.
This has been fixed in CVS.
(Reclassifying)
------------------------------------------------------------------------
[2002-09-18 09:38:23] thomas@deliduka.com
Is this the bug report which my report (19476) was set
bogus for?
This says it's apache 2 related, I'm running 1.3.26. Was
this, in fact, fixed then?
------------------------------------------------------------------------
[2002-09-17 21:06:22] yohgaki@php.net
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
------------------------------------------------------------------------
[2002-09-17 19:12:22] khalil@paksys.com
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/
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19460&edit=1