ZF-12509: Zend_HTTP_Client can send a mal-formed GET request that causes PHP to hang for 10 seconds

Issue Type: Bug Created: 2013-01-17T23:44:10.000+0000 Last Updated: 2013-04-05T16:07:02.000+0000 Status: Closed Fix version(s): Reporter: Dagan Henderson (techdagan) Assignee: None Tags: - Zend_Http_Client

Related issues: Attachments:


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.


Posted by Ralph Schindler (ralph) on 2013-04-05T16:07:02.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit:

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.