mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
cd66fcc68b
RFC: https://wiki.php.net/rfc/rfc1867-non-post This function allows populating the $_POST and $_FILES globals for non-post requests. This avoids manual parsing of RFC1867 requests. Fixes #55815 Closes GH-11472
24 lines
515 B
PHP
24 lines
515 B
PHP
--TEST--
|
|
rfc1867 garbled mime headers
|
|
--INI--
|
|
file_uploads=1
|
|
upload_max_filesize=1024
|
|
--POST_RAW--
|
|
Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
|
|
-----------------------------20896060251896012921717172737
|
|
Content-Disposition: form-data
|
|
|
|
|
|
-----------------------------20896060251896012921717172737--
|
|
--FILE--
|
|
<?php
|
|
var_dump($_FILES);
|
|
var_dump($_POST);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: PHP Request Startup: File Upload Mime headers garbled in %s
|
|
array(0) {
|
|
}
|
|
array(0) {
|
|
}
|