Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f689d87 commit 2e9669fCopy full SHA for 2e9669f
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()));
88
+ }
89
90
91
$this->debug .= sprintf('< %s', $line);
0 commit comments