ZF-11896: Unused variable $stream in Zend_Http_Client_Adapter_Socket
Description
{{Zend_Http_Client_Adapter_Socket::read()}} sets a variable {{$stream}} near the top of the method:
$stream = !empty($this->config['stream']);
{{$stream}} is never used in the method; the actual logic that depends on whether or not streaming is being used checks against {{$this->out_stream}}.
Comments
Posted by Adam Lundrigan (adamlundrigan) on 2011-11-21T16:56:03.000+0000
Fixed in trunk r24557 Merged to release-1.11 in r24558
Posted by Adam Lundrigan (adamlundrigan) on 2011-11-21T20:55:40.000+0000
ZF2 Pull Request: https://github.com/zendframework/zf2/pull/623