1--TEST--
2request_parse_body() with urlencoded
3--ENV--
4REQUEST_METHOD=PUT
5--POST_RAW--
6Content-Type: application/x-www-form-urlencoded
7foo=foo&bar[]=1&bar[]=2
8--FILE--
9<?php
10
11[$_POST, $_FILES] = request_parse_body();
12
13var_dump($_POST, $_FILES);
14
15?>
16--CLEAN--
17<?php
18$file_path = __DIR__ . '/put_multipart_uploaded_file.txt';
19@unlink($file_path);
20?>
21--EXPECT--
22array(2) {
23  ["foo"]=>
24  string(3) "foo"
25  ["bar"]=>
26  array(2) {
27    [0]=>
28    string(1) "1"
29    [1]=>
30    string(1) "2"
31  }
32}
33array(0) {
34}
35