Skip to content

Commit c78af13

Browse files
authored
request_parse_body: Clarify behavior when body already consumed (#5504)
Fixes #5270
1 parent 7ac16ce commit c78af13

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

reference/network/functions/request-parse-body.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@
3737

3838
<caution>
3939
<simpara>
40+
The request body can only be consumed once.
4041
<function>request_parse_body</function> consumes the request body without
4142
buffering it to the <literal>php://input</literal> stream.
43+
Conversely, if the body has already been read (e.g. via
44+
<literal>php://input</literal>), <function>request_parse_body</function>
45+
will return empty data.
4246
</simpara>
4347
</caution>
4448
</refsect1>

0 commit comments

Comments
 (0)