-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Comparing changes
Open a pull request
base repository: php/php-src
base: master
head repository: NattyNarwhal/php-src
compare: session-sapi-api
- 8 commits
- 3 files changed
- 1 contributor
Commits on Jul 21, 2025
-
Add SAPI_HEADER_DELETE_PREFIX operation
The session ext currently munges into the linked list of headers itself, because the delete header API is given the key for headers to delete. The session ext wants to use a prefix past the colon separator, for i.e. "Set-Cookie: PHPSESSID=", to eliminate only the specific cookie rather than all cookies. This changes the SAPI code to add a new header op to take a prefix instead. Call sites are yet unchanged. Also fix some whitespace.
Configuration menu - View commit details
-
Copy full SHA for e7c3bf7 - Browse repository at this point
Copy the full SHA e7c3bf7View commit details -
Simplify cookie setting code in ext/session
Use the modern SAPI header ops API, including the remove prefix op we just added.
Configuration menu - View commit details
-
Copy full SHA for afc1c24 - Browse repository at this point
Copy the full SHA afc1c24View commit details -
[ci skip] Remove redundant and unnecessary comment
The purpose of this is clear, and after refactoring, the special case is no longer there, so it has no value.
Configuration menu - View commit details
-
Copy full SHA for c636d66 - Browse repository at this point
Copy the full SHA c636d66View commit details -
Un-deprecate simple add/replace header API, use it
Suggestion from Jakub.
Configuration menu - View commit details
-
Copy full SHA for 8a2713f - Browse repository at this point
Copy the full SHA 8a2713fView commit details -
Restore the optimization removing session cookies had
I don't think this needs to be special cased with the parameter.
Configuration menu - View commit details
-
Copy full SHA for f263bf1 - Browse repository at this point
Copy the full SHA f263bf1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 284132a - Browse repository at this point
Copy the full SHA 284132aView commit details -
It may be better to use spaces in here instead.
Configuration menu - View commit details
-
Copy full SHA for 926fa17 - Browse repository at this point
Copy the full SHA 926fa17View commit details -
Configuration menu - View commit details
-
Copy full SHA for e2b3ce7 - Browse repository at this point
Copy the full SHA e2b3ce7View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...session-sapi-api