1--TEST--
2request_parse_body() with multipart and unsupported Content-Type
3--INI--
4max_input_vars=1
5--ENV--
6REQUEST_METHOD=PUT
7--POST_RAW--
8Content-Type: application/json
9{"hello": "world"}
10--FILE--
11<?php
12
13try {
14    [$_POST, $_FILES] = request_parse_body();
15} catch (Throwable $e) {
16    echo get_class($e), ': ', $e->getMessage(), "\n";
17}
18
19var_dump($_POST, $_FILES);
20
21?>
22--EXPECT--
23InvalidArgumentException: Content-Type "application/json" is not supported
24array(0) {
25}
26array(0) {
27}
28