-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Don't call session_start() when PHP session is still or already open. #31286
Don't call session_start() when PHP session is still or already open. #31286
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense 👍
#28695 was an older alternative, not sure which is best |
No idea 😕 |
I've been trying to figure out why we actually need the
@rotdrop Did you have any reasoning to go with the session_write_close instead of dropping the start_session? |
|
No as the session_start would reopen it for writing. |
Both perform a similar goal, this one seems more clean. |
/rebase |
Is this still a thing after 9e1d431? |
Yes, that linked commit only reduced one common case where a session would be opened for writing. This might still occur later in the code path. |
/rebase |
@rotdrop Can you maybe rebase your PR so we trigger CI again and can get this merged? |
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
ffdb4d2
to
45ec432
Compare
Signed-off-by: Claus-Justus Heine himself@claus-justus-heine.de
See #31248