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
8080
8181 $ line = @fgets ($ this ->out );
8282 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 ' ]) {
8584 throw new TransportException (sprintf ('Connection to "%s" timed out. ' , $ this ->getReadConnectionDescription ()));
8685 }
87- if ($ metas [ ' eof ' ]) {
86+ if (feof ( $ this -> out )) { // don't use " eof" metadata, it's not accurate on Windows
8887 throw new TransportException (sprintf ('Connection to "%s" has been closed unexpectedly. ' , $ this ->getReadConnectionDescription ()));
8988 }
9089 if (false === $ line ) {
You can’t perform that action at this time.
0 commit comments