Skip to content


Zend_HTTP_Client can send a mal-formed GET request that causes PHP to hang for 10 seconds #49

zfbot opened this Issue · 1 comment

1 participant


Jira Information

Original Issue: ZF-12509
Issue Type: Bug
Reporter: Dagan Henderson
Created: 01/17/13
Components: Zend_Http_Client


At least some versions of PHP have a bug that causes scripts to hang for 10 seconds after calling file_get_contents('php://input') for a request with a content-length header value that exceeds the actual content length. (see This bug is present in the most current PHP package on Ubuntu 12.04.1 LTS.

Using Zend_Http_Client, if setRawData() called on a request that is not a POST, PUT or DELETE request, a content-length header will be inserted by _prepareHeaders() but the content will not be included in the request, thus triggering a 10 second delay in the server processing the request.


This issue was ported from the ZF2 Jira Issue Tracker at

Known GitHub users mentioned in the original message or comment:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.