mirror of
https://github.com/php/php-src.git
synced 2024-09-29 22:06:09 +00:00
37b0dcc8e0
Enabling ZEND_DEBUG should not result in intrusive program behavior changes.
35 lines
793 B
PHP
35 lines
793 B
PHP
--TEST--
|
|
rfc1867 file_upload disabled
|
|
--INI--
|
|
file_uploads=0
|
|
--POST_RAW--
|
|
Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
|
|
-----------------------------20896060251896012921717172737
|
|
Content-Disposition: form-data; name="foo"
|
|
|
|
bar
|
|
-----------------------------20896060251896012921717172737
|
|
Content-Disposition: form-data; name="file1"; filename="file1.txt"
|
|
Content-Type: text/plain-file1
|
|
|
|
1
|
|
-----------------------------20896060251896012921717172737
|
|
Content-Disposition: form-data; name="bar"
|
|
|
|
foo
|
|
-----------------------------20896060251896012921717172737--
|
|
--FILE--
|
|
<?php
|
|
var_dump($_FILES);
|
|
var_dump($_POST);
|
|
?>
|
|
--EXPECTF--
|
|
array(0) {
|
|
}
|
|
array(2) {
|
|
[%u|b%"foo"]=>
|
|
%unicode|string%(3) "bar"
|
|
[%u|b%"bar"]=>
|
|
%unicode|string%(3) "foo"
|
|
}
|