[GIT-PULLS] [php-src] PR #23297: session: fix some expectations for C session handlers

[email protected] (Girgias)
Newsgroups php.git-pulls
Message-ID <[email protected]>
Pull Request: https://github.com/php/php-src/pull/23297
Author: Girgias

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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.