php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48397 verification of Content-Length
Submitted: 2009-05-26 08:42 UTC Modified: 2014-04-30 22:50 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:0 of 1 (0.0%)
From: scm at apsag dot com Assigned:
Status: Open Package: *Web Server problem
PHP Version: Any OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: scm at apsag dot com
New email:
PHP Version: OS:

 

 [2009-05-26 08:42 UTC] scm at apsag dot com
Description:
------------
When data is posted by HTML, there's a single way to verify the content is complete: the content-length. But since PHP reinterpretes the incoming data, there's no way to verify the data in the $_POST variable reached the announced length. 
It would be a good idea to provide a superglobal variable that would flag an interrupted transmission.


Reproduce code:
---------------
any post code announcing more data than it really transmits and then closes the connection. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-04-30 22:50 UTC] levim@php.net
-Package: Feature/Change Request +Package: *Web Server problem -Operating System: any +Operating System: Irrelevant -PHP Version: 5.2.9 +PHP Version: Any
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC