#18764 [Fbk->NoF]: The last POST variable always has its last char missing
| From: | php-bugs at lists dot php dot net | Date: | Fri, 25 Oct 2002 06:00:12 +0000 |
| Subject: | #18764 [Fbk->NoF]: The last POST variable always has its last char missing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-23278@lists.php.net to get a copy of this message | ||
ID: 18764
Updated by: php-bugs@lists.php.net
Reported By: pasmal@zaz.net
-Status: Feedback
+Status: No Feedback
Bug Type: IIS related
Operating System: NT 4
PHP Version: 4.2.1
New Comment:
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2002-10-09 21:26:02] iliaa@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
------------------------------------------------------------------------
[2002-08-06 18:53:53] pasmal@zaz.net
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 this bug report at http://bugs.php.net/?id=18764&edit=1