laurent-rizer

Results 5 comments of laurent-rizer

I have the same issue, our script sometimes timeouts while reading next line. Since this occurs quite randomly for us, we added a `&& !feof($this->stream)` to the while condition, and...

@thin-k-design thx, I'll see if `feof` does change anything in the next days and if not I'll test your solution

@thin-k-design I went for the following which partially resolves the issue: ```php public function nextLine(): string { $line = ""; while (($next_char = fread($this->stream, 1)) !== false && $next_char !==...

Concerning `fgets` that was the case a few versions before

I have no clue Blame (https://github.com/Webklex/php-imap/blame/master/src/Connection/Protocols/ImapProtocol.php) gives the following commit: https://github.com/Webklex/php-imap/commit/f0fcdb728ed8285789e7a3d0cca96f7f93a30ec5 Which doesn't gives more information than "IMAP Connection debugging improved"