#18764 [Opn->Fbk]: The last POST variable always has its last char missing

From: Date: Thu, 10 Oct 2002 02:26:03 +0000
Subject: #18764 [Opn->Fbk]: The last POST variable always has its last char missing
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-22004@lists.php.net to get a copy of this message
ID: 18764 Updated by: iliaa@php.net Reported By: pasmal@zaz.net -Status: Open +Status: Feedback Bug Type: IIS related Operating System: NT 4 PHP Version: 4.2.1 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#22004) next »