1--TEST-- 2request_parse_body() with multipart and exceeding max files 3--INI-- 4max_file_uploads=1 5--ENV-- 6REQUEST_METHOD=PUT 7--POST_RAW-- 8Content-Type: multipart/form-data; boundary=---------------------------84000087610663814162942123332 9-----------------------------84000087610663814162942123332 10Content-Disposition: form-data; name="file1"; filename="file1.txt" 11Content-Type: text/plain 12 13file data 14-----------------------------84000087610663814162942123332 15Content-Disposition: form-data; name="file2"; filename="file2.txt" 16Content-Type: text/plain 17 18file data 19-----------------------------84000087610663814162942123332-- 20--FILE-- 21<?php 22 23try { 24 [$_POST, $_FILES] = request_parse_body(); 25} catch (Throwable $e) { 26 echo get_class($e), ': ', $e->getMessage(), "\n"; 27} 28 29var_dump($_POST, $_FILES); 30 31?> 32--EXPECT-- 33RequestParseBodyException: Maximum number of allowable file uploads has been exceeded 34array(0) { 35} 36array(0) { 37} 38