Skip to content

Clean up SAPI POST readers - #24057

Open
NattyNarwhal wants to merge 5 commits into
php:masterfrom
NattyNarwhal:sapi-post-reader-cleanup
Open

NattyNarwhal wants to merge 5 commits into
php:masterfrom
NattyNarwhal:sapi-post-reader-cleanup

Conversation

@NattyNarwhal

Copy link
Copy Markdown
Member
  • Remove the "default POST reader" as there was only ever one and the indirection is pointless.
  • Move the default list of POST readers into the generic SAPI code and make it exported, so mbstring doesn't need a copy of it.
  • Put the treat data and input filter initialization into its single caller.
  • Fold php_content_types into the generic SAPI code.

There is only one of these; there's no point in the indirection here as
it is never overrode, and set very early in main.c. Move the default
post handling into the SAPI handling, and remove the pointless check if
a default POST reader exists.

This stuff was originally introduced in
98d95dd.
mbstring had a duplicate of this; remove some indirection and provide
this as a symbol so it can be switched back to w/o duplication.
All its contents have been folded elsewhere.

XXX: Perhaps php_std_post_handler belongs in php_variables.h?
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