8000 bug #53712 [Mailer] Fix usage of stream_set_timeout in case of micros… · symfony/symfony@98435e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 98435e4

Browse files
bug #53712 [Mailer] Fix usage of stream_set_timeout in case of microseconds (aleksejs1)
This PR was submitted for the 6.4 branch but it was squashed and merged into the 5.4 branch instead. Discussion ---------- [Mailer] Fix usage of stream_set_timeout in case of microseconds | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #53705 | License | MIT Fix usage of stream_set_timeout() in case if stream timeout consist of second decimals. Commits ------- 8acd56d [Mailer] Fix usage of stream_set_timeout in case of microseconds
2 parents 4e6d1b0 + 8acd56d commit 98435e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Mailer/Transport/Smtp/Stream/SocketStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function initialize(): void
160160
}
161161

162162
stream_set_blocking($this->stream, true);
163-
stream_set_timeout($this->stream, $timeout);
163+
stream_set_timeout($this->stream, (int) $timeout, (int) (($timeout - (int) $timeout) * 1000000));
164164
$this->in = &$this->stream;
165165
$this->out = &$this->stream;
166166
}

0 commit comments

Comments
 (0)
0