File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/Symfony/Component/Mailer/Transport/Smtp/Stream Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,10 @@ public function readLine(): string
80
80
81
81
$ line = @fgets ($ this ->out );
82
82
if ('' === $ line || false === $ line ) {
83
- $ metas = stream_get_meta_data ($ this ->out );
84
- if ($ metas ['timed_out ' ]) {
83
+ if (stream_get_meta_data ($ this ->out )['timed_out ' ]) {
85
84
throw new TransportException (sprintf ('Connection to "%s" timed out. ' , $ this ->getReadConnectionDescription ()));
86
85
}
87
- if ($ metas [ ' eof ' ]) {
86
+ if (feof ( $ this -> out )) { // don't use " eof" metadata, it's not accurate on Windows
88
87
throw new TransportException (sprintf ('Connection to "%s" has been closed unexpectedly. ' , $ this ->getReadConnectionDescription ()));
89
88
}
90
89
if (false === $ line ) {
You can’t perform that action at this time.
0 commit comments