ZF-9206: Zend_Http_Client throws a warning, when using 'php://output' as destination stream.
Description
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}
Comments
Posted by François-Xavier MAURICARD (fxmauricard) on 2010-02-18T06:50:10.000+0000
Here is a patch for fixing this issue.
We simply test if the stream is seekable before doing the call to rewind().
Posted by François-Xavier MAURICARD (fxmauricard) on 2010-12-21T01:27:55.000+0000
As I've attached a patch fixing the issue and nothing was done, is this issue will be fixed or not?
Posted by Enrico Zimuel (zimuel) on 2011-08-01T13:03:13.000+0000
Solved in trunk + unit test (commit 24336)
Posted by Enrico Zimuel (zimuel) on 2011-08-01T13:05:26.000+0000
Solved in branches/release-1.11 (commit 24337)