1--TEST--
2request_parse_body() with multipart and invalid boundary
3--ENV--
4REQUEST_METHOD=PUT
5--POST_RAW--
6Content-Type: multipart/form-data; boundary="foobar
7empty
8--FILE--
9<?php
10
11try {
12    [$_POST, $_FILES] = request_parse_body();
13} catch (Throwable $e) {
14    echo get_class($e), ': ', $e->getMessage(), "\n";
15}
16
17var_dump($_POST, $_FILES);
18
19?>
20--EXPECT--
21RequestParseBodyException: Invalid boundary in multipart/form-data POST data
22array(0) {
23}
24array(0) {
25}
26