php.net |  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
Votes:4
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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:

<?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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-09 21:26 UTC] 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-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-2021 The PHP Group
All rights reserved.
Last updated: Sat Sep 18 13:03:38 2021 UTC