Skip to content

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

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

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

Conversation

@iliaal

@iliaal iliaal commented Sep 22, 2026

Copy link
Copy Markdown
Owner

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 php#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().
@iliaal

iliaal commented Sep 23, 2026

Copy link
Copy Markdown
Owner Author

Submitted upstream as php#23854.

@iliaal iliaal closed this Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant