1--TEST--
2request_parse_body() with multipart and missing boundary
3--ENV--
4REQUEST_METHOD=PUT
5--POST_RAW--
6Content-Type: multipart/form-data
7empty
8--FILE--
9<?php
10
11$stream = fopen('php://memory','r+');
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--
23RequestParseBodyException: Missing boundary in multipart/form-data POST data
24array(0) {
25}
26array(0) {
27}
28