ID:               24753
 User updated by:  robin at newloop dot com
 Reported By:      robin at newloop dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         HTTP related
 Operating System: Win XP Pro 2002 SP1
 PHP Version:      4.3.2
 New Comment:

have just tried this but seems to make no difference. 
Any ideas? It's IIS 5.1 if that helps.


Previous Comments:
------------------------------------------------------------------------

[2003-07-22 09:43:10] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



------------------------------------------------------------------------

[2003-07-22 09:32:23] robin at newloop dot com

Description:
------------
On requesting POST data using $_POST or $_REQUEST that 
is being sent using Macromedia Flash MX, the last 
character of the last request is missing. Work around 
is to send a dummy variable as the last request.

Reproduce code:
---------------
<?
$filePath = stripslashes($_REQUEST["cmsFilePath"]);
$fileDataTotal = stripslashes($_REQUEST["cmsFileDataTotal"]);
$fileData = " ";
for ($counter = 0; $counter < $fileDataTotal; $counter ++){
        $newPart = stripslashes($_REQUEST["cmsFileData".$counter]);
        $fileData = $fileData.$newPart;
}
$fileName = stripslashes($_REQUEST["cmsFileName"]);
$test = stripslashes($_REQUEST["cmstest"]);
$start = time();
while (time()<($start +5)) {
}
$tfile = $filePath."/".$fileName;
touch($tfile);
chmod($tfile, 0666);
$handle = fopen($tfile, "wb");
fwrite($handle, $fileData.$test);
fclose($handle);
?>

Expected result:
----------------
the $test variable should contain the string "hello" 

Actual result:
--------------
the $test variable actually contains "hell"
All other variables are ok.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24753&edit=1

Reply via email to