mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

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
22 lines
456 B
PHP
22 lines
456 B
PHP
--TEST--
|
|
rfc1867 missing boundary
|
|
--INI--
|
|
post_max_size=1024
|
|
--POST_RAW--
|
|
Content-Type: multipart/form-data
|
|
-----------------------------20896060251896012921717172737
|
|
Content-Disposition: form-data; name="foobar"
|
|
|
|
1
|
|
-----------------------------20896060251896012921717172737--
|
|
--FILE--
|
|
<?php
|
|
var_dump($_FILES);
|
|
var_dump($_POST);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: PHP Request Startup: Missing boundary in multipart/form-data POST data in %s
|
|
array(0) {
|
|
}
|
|
array(0) {
|
|
}
|