File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/Symfony/Component/Mailer/Transport/Smtp/Stream Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ public function readLine(): string
77
77
return '' ;
78
78
}
79
79
80
- $ line = fgets ($ this ->out );
80
+ $ line = @ fgets ($ this ->out );
81
81
if ('' === $ line || false === $ line ) {
82
82
$ metas = stream_get_meta_data ($ this ->out );
83
83
if ($ metas ['timed_out ' ]) {
@@ -86,6 +86,9 @@ public function readLine(): string
86
86
if ($ metas ['eof ' ]) {
87
87
throw new TransportException (sprintf ('Connection to "%s" has been closed unexpectedly. ' , $ this ->getReadConnectionDescription ()));
88
88
}
89
+ if (false === $ line ) {
90
+ throw new TransportException (sprintf ('Unable to read from connection to "%s". ' , $ this ->getReadConnectionDescription ()));
91
+ }
89
92
}
90
93
91
94
$ this ->debug .= sprintf ('< %s ' , $ line );
You can’t perform that action at this time.
0 commit comments