Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

No exception from Swift_Transport_AbstractSmtpTransport::__destruct #856

Closed
wants to merge 2 commits into from

Conversation

mzstic
Copy link
Contributor

@mzstic mzstic commented Jan 13, 2017

Destructor should not throw any error because it leads to fatal error which cannot be handled.

When stream became invalid (broken pipe etc.), I was unable to terminate application without error.
And as it is stated here little bit down: http://au2.php.net/__construct

Attempting to throw an exception from a destructor (called in the time of script termination) causes a fatal error.

Destructor should not throw any error because it leads to fatal error which cannot be handled.
@mzstic
Copy link
Contributor Author

mzstic commented Jan 13, 2017

This will resolve following issue: #819

@fabpot
Copy link
Member

fabpot commented Feb 13, 2017

Thank you @mzstic.

@fabpot fabpot closed this Feb 13, 2017
fabpot added a commit that referenced this pull request Feb 13, 2017
…estruct (mzstic)

This PR was squashed before being merged into the 5.x branch (closes #856).

Discussion
----------

No exception from Swift_Transport_AbstractSmtpTransport::__destruct

Destructor should not throw any error because it leads to fatal error which cannot be handled.

When stream became invalid (broken pipe etc.), I was unable to terminate application without error.
And as it is stated here little bit down: http://au2.php.net/__construct
> Attempting to throw an exception from a destructor (called in the time of script termination) causes a fatal error.

Commits
-------

9df19dd No exception from Swift_Transport_AbstractSmtpTransport::__destruct
makasim pushed a commit to formapro-forks/swiftmailer that referenced this pull request Jul 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants