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 68eaf30 commit 0ddfbddCopy full SHA for 0ddfbdd
src/Connection/Protocols/ImapProtocol.php
@@ -108,7 +108,7 @@ public function nextLine(): string {
108
while (($next_char = fread($this->stream, 1)) !== false && $next_char !== "\n") {
109
$line .= $next_char;
110
}
111
- if ($line === "") {
+ if ($line === "" && $next_char === false) {
112
throw new RuntimeException('empty response');
113
114
if ($this->debug) echo "<< ".$line."\n";
0 commit comments