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.
There was an error while loading. Please reload this page.
1 parent 0cd0c49 commit b49f580Copy full SHA for b49f580
1 file changed
src/Symfony/Component/Mailer/Transport/Smtp/Stream/AbstractStream.php
@@ -77,7 +77,7 @@ public function readLine(): string
77
return '';
78
}
79
80
- $line = fgets($this->out);
+ $line = @fgets($this->out);
81
if ('' === $line || false === $line) {
82
$metas = stream_get_meta_data($this->out);
83
if ($metas['timed_out']) {
@@ -86,6 +86,9 @@ public function readLine(): string
86
if ($metas['eof']) {
87
throw new TransportException(sprintf('Connection to "%s" has been closed unexpectedly.', $this->getReadConnectionDescription()));
88
89
+ if (false === $line) {
90
+ throw new TransportException(sprintf('Unable to read from connection to "%s".', $this->getReadConnectionDescription()));
91
+ }
92
93
94
$this->debug .= sprintf('< %s', $line);
0 commit comments