From 8acd56d88f53dcd3413e208aa0e9d8ce69fef776 Mon Sep 17 00:00:00 2001 From: Aleksejs Date: Wed, 31 Jan 2024 18:10:58 +0200 Subject: [PATCH] [Mailer] Fix usage of stream_set_timeout in case of microseconds --- .../Component/Mailer/Transport/Smtp/Stream/SocketStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Mailer/Transport/Smtp/Stream/SocketStream.php b/src/Symfony/Component/Mailer/Transport/Smtp/Stream/SocketStream.php index 368fbd28c3375..e2db2487578fc 100644 --- a/src/Symfony/Component/Mailer/Transport/Smtp/Stream/SocketStream.php +++ b/src/Symfony/Component/Mailer/Transport/Smtp/Stream/SocketStream.php @@ -160,7 +160,7 @@ public function initialize(): void } stream_set_blocking($this->stream, true); - stream_set_timeout($this->stream, $timeout); + stream_set_timeout($this->stream, (int) $timeout, (int) (($timeout - (int) $timeout) * 1000000)); $this->in = &$this->stream; $this->out = &$this->stream; }