Skip to content

ext/session: code cleanup and minor refactoring#21467

Open
thg2k wants to merge 6 commits intophp:masterfrom
thg2k:pr/session_cleanup_1
Open

ext/session: code cleanup and minor refactoring#21467
thg2k wants to merge 6 commits intophp:masterfrom
thg2k:pr/session_cleanup_1

Conversation

@thg2k
Copy link
Contributor

@thg2k thg2k commented Mar 18, 2026

No description provided.

@Girgias
Copy link
Member

Girgias commented Mar 18, 2026

CI is failling but I'm in favour of those consistency fixes. I was recently again looking at setting up clang format and clang tidy on an individual extension basis.

@thg2k
Copy link
Contributor Author

thg2k commented Mar 18, 2026

CI is failling

My bad, I redid the changes from a local branch and did not test it. I'll fix it right away!

@thg2k thg2k force-pushed the pr/session_cleanup_1 branch from 9d133e0 to 355d08a Compare March 18, 2026 13:34
@thg2k
Copy link
Contributor Author

thg2k commented Mar 18, 2026

@Girgias CI is green, please let me know if you manage to review it, in particular the changes to OnUpdateSidBits and OnUpdateSessionGcProbability.

I find the strategy to return early on failure and leave the success case for last to be much more readable, if you are in favor I have more like that to submit.

Also how do you stand on the space after cast? (int)foo => (int) foo

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.

3 participants