Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.10.1
-
Fix Version/s: 1.11.10
-
Component/s: Zend_Http_Client
-
Labels:None
-
Tags:
Description
When using setStream() method of Zend_Http_Client for redirecting the output to 'php://output', a warning is thrown :
Warning: rewind() [function.rewind]: stream does not support seeking in ...\library\Zend\Http\Client.php on line 998
Here is the sample code :
$httpClient = new Zend_Http_Client();
$httpClient->setUri($myUri);
$httpClient->setMethod(Zend_Http_Client::GET);
$httpClient->setStream('php://output')->request();
Here is a patch for fixing this issue.
We simply test if the stream is seekable before doing the call to rewind().