#18764 [NEW]: The last POST variable always has its last char missing
| From: | pasmal at zaz dot net | Date: | Tue, 06 Aug 2002 22:53:54 +0000 |
| Subject: | #18764 [NEW]: The last POST variable always has its last char missing | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-16100@lists.php.net to get a copy of this message | ||
From: pasmal@zaz.net
Operating system: NT 4
PHP version: 4.2.1
PHP Bug Type: Variables related
Bug description: The last POST variable always has its last char missing
The problem occurs with IIS 4 (NT 4, All SP) using the CGI version of PHP
4.2.1. Whenever a form is submitted using the post method, the last POST
variable submitted loses its last character of content.
The below code reproduces the problem:
<?php
echo "
<form method=\"post\" action=\"$PHP_SELF\">
<input type=\"text\" name=\"textOne\" value=\"Test 123\">
<input type=\"text\" name=\"textTwo\" value=\"Test 123\">
<input type=\"text\" name=\"textThree\" value=\"Test 123\">
<input type=\"submit\" name=\"SubmitButton\" value=\"Test Post
Bug\">
</form>";
phpinfo();
?>
In this casee, $_POST['textOne'] would return "Test 123",
$_POST['textTwo'] would return "Test 123", and $_POST['textThree']
would
return "Test 12" -- missing the final 3.
The same code on IIS 5 doesn't produce the problem however I have run
older PHP (4.0.6?) on NT 4 about 4-6months back without this problem. Not
sure if this MSKB article is relevant:
http://support.microsoft.com/default.aspx?scid=kb;en-us;q203298
BTW Register globals is on.
--
Edit bug report at http://bugs.php.net/?id=18764&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18764&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18764&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18764&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18764&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18764&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18764&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18764&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18764&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18764&r=globals