Skip to content

ext/session: Preserve exceptions thrown by create_sid() - #23854

Open
iliaal wants to merge 1 commit into
php:PHP-8.4from
iliaal:fix/session-create-sid-exception-84
Open

iliaal wants to merge 1 commit into
php:PHP-8.4from
iliaal:fix/session-create-sid-exception-84

Conversation

@iliaal

@iliaal iliaal commented Sep 23, 2026

Copy link
Copy Markdown
Member

User-defined create_sid() exceptions were replaced by misleading return-value validation errors. Preserve pending exceptions, including those raised while destroying an invalid return value. Follow-up to #23847.

Do not replace pending exceptions with return-value validation errors in
the user handler adapter, including exceptions raised while destroying
invalid return values. This preserves the original exception for
session_start(), session_create_id(), and session_regenerate_id().
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.

1 participant