Skip to content

session: fix some expectations for C session handlers - #23297

Merged
Girgias merged 1 commit into
php:masterfrom
Girgias:2026-08-session-handlers-expectations
Aug 15, 2026
Merged

session: fix some expectations for C session handlers#23297
Girgias merged 1 commit into
php:masterfrom
Girgias:2026-08-session-handlers-expectations

Conversation

@Girgias

@Girgias Girgias commented Aug 15, 2026

Copy link
Copy Markdown
Member

We explicitly say that mod_data will be not NULL for create_sid hooks and we violate this invariant if SessionHandler::open() is overwridden without calling the parent method.

At the same time add comments explaining the situation and fix some other potential footguns.

We *explicitly* say that mod_data will be not NULL for create_sid hooks and we violate this invariant if SessionHandler::open() is overwridden without calling the parent method.

At the same time add comments explaining the situation and fix some other potential footguns.
@Girgias
Girgias requested a review from jorgsowa as a code owner August 15, 2026 15:04
@Girgias
Girgias merged commit 61c2b72 into php:master Aug 15, 2026
18 checks passed
@Girgias
Girgias deleted the 2026-08-session-handlers-expectations branch August 15, 2026 15:54
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