ZF-9206: Zend_Http_Client throws a warning, when using 'php://output' as destination stream.


When using setStream() method of Zend_Http_Client for redirecting the output to 'php://output', a warning is thrown : {quote} Warning: rewind() [function.rewind]: stream does not support seeking in ...\library\Zend\Http\Client.php on line 998 {quote}

Here is the sample code : {quote} {{$httpClient = new Zend_Http_Client();}} {{$httpClient->setUri($myUri);}} {{$httpClient->setMethod(Zend_Http_Client::GET);}} {{$httpClient->setStream('php://output')->request();}} {quote}


Here is a patch for fixing this issue.

We simply test if the stream is seekable before doing the call to rewind().

As I've attached a patch fixing the issue and nothing was done, is this issue will be fixed or not?

Solved in trunk + unit test (commit 24336)

Solved in branches/release-1.11 (commit 24337)