ZF-11896: Unused variable $stream in Zend_Http_Client_Adapter_Socket

Issue Type: Bug Created: 2011-11-16T20:14:56.000+0000 Last Updated: 2011-11-21T20:55:40.000+0000 Status: Resolved Fix version(s): - 1.11.12 (22/Jun/12)

Reporter: John Flatness (zerocrates) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Http_Client

Related issues: Attachments:


Zend_Http_Client_Adapter_Socket::read() sets a variable $stream near the top of the method:

<pre class="highlight">
$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.


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:

Have you found an issue?

See the Overview section for more details.


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

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