|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18764 The last POST variable always has its last char missing
Submitted: 2002-08-06 18:53 UTC Modified: 2002-10-25 01:00 UTC
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:2 (50.0%)
From: pasmal at zaz dot net Assigned:
Status: No Feedback Package: IIS related
PHP Version: 4.2.1 OS: NT 4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: pasmal at zaz dot net
New email:
PHP Version: OS:


 [2002-08-06 18:53 UTC] pasmal at zaz dot 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:

	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\">



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:;en-us;q203298

BTW Register globals is on.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-09 21:26 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-10-25 01:00 UTC] php-bugs at lists dot php dot net
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".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 21:01:31 2024 UTC