From:             [EMAIL PROTECTED]
Operating system: Windows NT
PHP version:      4CVS-2002-11-26 (dev)
PHP Bug Type:     Apache related
Bug description:  long POST fields get truncated

Long (>~3k) POSTED fields get truncated

Following test produces correct results (twice the same length) on Linux +
Apache + PHP, Windows NT + IIS + PHP,
but NOT on Windows NT + Apache + PHP.
In last case, back in PHP the length appears to be 4374
bytes. Making the fieldname longer or shorter affects
this length, adding more fields doesn't.

This behaviour looks very much like reported bug #18961,
which is closed. Today, I downloaded, the what I think is,  the latest
version (4.4.0-dev). But problem still exists.

The apache server I use is Apache: 1.3.19.0.0a delivered with Oracle
Application Server 1.0.2.2.2a .

My test file:

<?php
  if(isset($_POST['data1']))
  {
        echo "<html><body>Data length: " . strlen($_POST['data1']) .
"</body></html>";
        return;
  }
?>
<html>
<body>
<?php echo "<form name='form' action='$PHP_SELF' method='post'>"; ?>

<input name="data1" type="hidden" id="data1"/>
</form>
<script language="JavaScript">
   var data = document.getElementById("data1");

   data.value = "<?php echo str_pad('', 6000, 'x'); ?>";
   alert("Datalength: " + data.value.length);
   form.submit();
</script>
</body>
</html>

Thanks,

   - Douwe Koops
-- 
Edit bug report at http://bugs.php.net/?id=20643&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20643&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20643&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20643&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20643&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20643&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20643&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20643&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20643&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20643&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20643&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20643&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20643&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20643&r=isapi

Reply via email to