8000 [Mailer] Improve error message when STARTTLS fails by nicolas-grekas · Pull Request #43238 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Mailer] Improve error message when STARTTLS fails #43238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

nicolas-grekas
Copy link
Member
Q A
Branch? 5.4
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

throw new TransportException('Unable to connect with STARTTLS: '.$msg);
});
try {
return stream_socket_enable_crypto($this->stream, true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you remove the (bool) cast. Is it expected ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the function returns int only when a non blocking stream is passes, which is never the case here and would be unsupported anyway

@fabpot
Copy link
Member
fabpot commented Sep 28, 2021

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 498284e into symfony:5.4 Sep 28, 2021
@nicolas-grekas nicolas-grekas deleted the mailer-cryptoe branch September 30, 2021 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0