#19460 [Com]: HTTP_POST_VARS trims 4 characters from left side of each field with array name

From: Date: Wed, 18 Sep 2002 14:38:23 +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-19640@lists.php.net to get a copy of this message
ID: 19460 Comment by: thomas@deliduka.com Reported By: khalil@paksys.com Status: Closed Bug Type: Apache2 related Operating System: Linux 2.4.9-34 (RedHat 7.2) PHP Version: 4.2.3 New Comment: 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? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#19640) next »