8000 [Mailer] Fix SMTP stream EOF handling on Windows by using feof() · symfony/symfony@66af27c · GitHub
[go: up one dir, main page]

Skip to content

Commit 66af27c

Browse files
committed
[Mailer] Fix SMTP stream EOF handling on Windows by using feof()
1 parent 86b9250 commit 66af27c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/Transport/Smtp/Stream/AbstractStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function readLine(): string
8484
if ($metas['timed_out']) {
8585
throw new TransportException(sprintf('Connection to "%s" timed out.', $this->getReadConnectionDescription()));
8686
}
87-
if ($metas['eof']) {
87+
if (\feof($this->out)) {
8888
throw new TransportException(sprintf('Connection to "%s" has been closed unexpectedly.', $this->getReadConnectionDescription()));
8989
}
9090
if (false === $line) {

0 commit comments

Comments
 (0)
0