We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43b9343 commit c8f788cCopy full SHA for c8f788c
Connection.php
@@ -15,7 +15,7 @@ public function handleData($stream)
15
$this->emit('data', array($data, $this));
16
}
17
18
- if ('' === $data || false === $data || feof($stream)) {
+ if ('' === $data || false === $data || (is_resource($stream) && feof($stream))) {
19
$this->end();
20
21
0 commit comments