Skip to content
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

Fix warning in SessionManager::destroy() for headers already sent and actual fix for trying to destroy non-existent session #80

Merged
merged 4 commits into from
Feb 29, 2024

Conversation

aleksip
Copy link
Contributor

@aleksip aleksip commented Feb 29, 2024

Fixes problem introduced by #79

#79 introduced a fix for trying to destroy non-existent session when headers were already sent. However fix inadvertently prevented valid attempts to destroy session when session is active but headers were already sent.

@aleksip aleksip changed the title Fix for early return from return from SessionManager::destroy() Fix for early return from SessionManager::destroy() Feb 29, 2024
@Xerkus Xerkus added the Bug Something isn't working label Feb 29, 2024
@Xerkus Xerkus changed the base branch from 2.20.x to 2.19.x February 29, 2024 16:49
@Xerkus Xerkus changed the title Fix for early return from SessionManager::destroy() Fix warning in SessionManager::destroy() for headers already sent and actual fix for trying to destroy non-existent session Feb 29, 2024
@Xerkus Xerkus added this to the 2.19.1 milestone Feb 29, 2024
aleksip and others added 2 commits February 29, 2024 21:28
Co-authored-by: Aleksei Khudiakov <[email protected]>
Signed-off-by: Aleksi Peebles <[email protected]>
Signed-off-by: Aleksi Peebles <[email protected]>
@Xerkus Xerkus merged commit cbcd9f7 into laminas:2.19.x Feb 29, 2024
11 checks passed
@Xerkus
Copy link
Member

Xerkus commented Feb 29, 2024

@aleksip thank you

@weierophinney
Copy link
Member

Very nice - and looks to be a more thorough solution. Nice work, everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants