Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Mailer] Fix SMTP stream EOF handling on Windows by using feof() #59404

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
Jan 9, 2025

Conversation

skmedix
Copy link
Contributor

@skmedix skmedix commented Jan 7, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #59351
License MIT

Full explanation of this change here: #59351 (comment)
Help with tests would be appreciated.

@@ -84,7 +84,7 @@ public function readLine(): string
if ($metas['timed_out']) {
throw new TransportException(sprintf('Connection to "%s" timed out.', $this->getReadConnectionDescription()));
}
if ($metas['eof']) {
if (\feof($this->out)) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if (\feof($this->out)) {
if (feof($this->out)) {

Maybe we should also add a comment so that this is not changed back again in the future.

@nicolas-grekas
Copy link
Member

Thank you @skmedix.

@nicolas-grekas nicolas-grekas merged commit 351a2ec into symfony:6.4 Jan 9, 2025
1 check passed
@skmedix skmedix deleted the fix/59351 branch January 16, 2025 17:44
This was referenced Jan 29, 2025
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.

4 participants