Skip to content

ext/session: Add tests for session_regenerate_id() write/destroy failure paths#22687

Open
jorgsowa wants to merge 1 commit into
php:masterfrom
jorgsowa:session-regenerate-id-tests
Open

ext/session: Add tests for session_regenerate_id() write/destroy failure paths#22687
jorgsowa wants to merge 1 commit into
php:masterfrom
jorgsowa:session-regenerate-id-tests

Conversation

@jorgsowa

Copy link
Copy Markdown
Contributor

Covers FAILURE branches where a userland save handler's write() or destroy() returns false during session_regenerate_id(), which should warn and return false while leaving the current session ID unchanged.

Covers the previously untested FAILURE branches where a userland
save handler's write() or destroy() returns false during
session_regenerate_id(), which should warn and return false while
leaving the current session ID untouched.
@jorgsowa
jorgsowa force-pushed the session-regenerate-id-tests branch from 0f97356 to 30f5e21 Compare July 18, 2026 21:10
@LamentXU123

Copy link
Copy Markdown
Member

@Girgias Can you please take a quick look at these tests? This looks fine but I am not familiar with the session extension :)

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.

2 participants