8000
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 f689d87 commit 44d5b57Copy full SHA for 44d5b57
src/Symfony/Component/Mailer/Transport/Smtp/Stream/AbstractStream.php
@@ -74,7 +74,7 @@ public function readLine(): string
74
return '';
75
}
76
77
- $line = fgets($this->out);
+ $line = @fgets($this->out);
78
if ('' === $line || false === $line) {
79
$metas = stream_get_meta_data($this->out);
80
if ($metas['timed_out']) {
@@ -83,6 +83,9 @@ public function readLine(): string
83
if ($metas['eof']) {
84
throw new TransportException(sprintf('Connection to "%s" has been closed unexpectedly.', $this->getReadConnectionDescription()));
85
86
+ if (false === $line) {
87
+ throw new TransportException(sprintf('Unable to read from connection to "%s": ', $this->getReadConnectionDescription()).error_get_last()['message']);
88
+ }
89
90
91
$this->debug .= sprintf('< %s', $line);
0 commit comments