Skip to content

request_parse_body: Clarify behavior when body already consumed#5504

Merged
kamil-tekiela merged 1 commit intophp:masterfrom
lacatoire:fix/gh-5270-request-parse-body-consumed
Apr 21, 2026
Merged

request_parse_body: Clarify behavior when body already consumed#5504
kamil-tekiela merged 1 commit intophp:masterfrom
lacatoire:fix/gh-5270-request-parse-body-consumed

Conversation

@lacatoire
Copy link
Copy Markdown
Member

@lacatoire lacatoire commented Apr 21, 2026

Alternative to #5412. When the body has already been read (e.g. via php://input), request_parse_body() deterministically returns empty data rather than "may no longer be available".

Fixes #5270 @kamil-tekiela

@kamil-tekiela kamil-tekiela merged commit c78af13 into php:master Apr 21, 2026
2 checks passed
@lacatoire lacatoire deleted the fix/gh-5270-request-parse-body-consumed branch April 21, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request_parse_body returns nothing when something has accessed php://input stream before it

2 participants