summaryrefslogtreecommitdiff
path: root/tests/basic/rfc1867_post_max_size.phpt
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2008-09-08 09:24:45 +0000
committerArnaud Le Blanc <lbarnaud@php.net>2008-09-08 09:24:45 +0000
commitc6ad8c30792252b7766d1e60d07d9736b8c0b703 (patch)
treef07d483f6f7847579391b01926cec117d09bee23 /tests/basic/rfc1867_post_max_size.phpt
parent38af9b553575a2aadec5893ec380736c4077601f (diff)
downloadphp-git-c6ad8c30792252b7766d1e60d07d9736b8c0b703.tar.gz
Added tests for rfc1867 post handler
Diffstat (limited to 'tests/basic/rfc1867_post_max_size.phpt')
-rw-r--r--tests/basic/rfc1867_post_max_size.phpt26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/basic/rfc1867_post_max_size.phpt b/tests/basic/rfc1867_post_max_size.phpt
new file mode 100644
index 0000000000..5e40ccaf45
--- /dev/null
+++ b/tests/basic/rfc1867_post_max_size.phpt
@@ -0,0 +1,26 @@
+--TEST--
+rfc1867 post_max_size
+--INI--
+post_max_size=1
+error_reporting=E_ALL&~E_NOTICE
+comment=debug builds show some additional E_NOTICE errors
+--SKIPIF--
+<?php if (php_sapi_name()=='cli') die('skip'); ?>
+--POST_RAW--
+Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
+-----------------------------20896060251896012921717172737
+Content-Disposition: form-data; name="foobar"
+
+1
+-----------------------------20896060251896012921717172737--
+--FILE--
+<?php
+var_dump($_FILES);
+var_dump($_POST);
+?>
+--EXPECTF--
+Warning: POST Content-Length of %d bytes exceeds the limit of 1 bytes in %s
+array(0) {
+}
+array(0) {
+}