Skip to content

Commit e80cbef

Browse files
committed
These tests fail unless max_input_vars and/or max_file_uploads is set high enough
1 parent e16ec62 commit e80cbef

11 files changed

Lines changed: 13 additions & 0 deletions

tests/basic/022.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Cookies test#1
3+
--INI--
4+
max_input_vars=1000
35
--COOKIE--
46
cookie1=val1 ; cookie2=val2%20; cookie3=val 3.; cookie 4= value 4 %3B; cookie1=bogus; %20cookie1=ignore;+cookie1=ignore;cookie1;cookie 5=%20 value; cookie%206=þæö;cookie+7=;$cookie.8;cookie-9=1;;;- & % $cookie 10=10
57
--FILE--

tests/basic/023.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Cookies test#2
3+
--INI--
4+
max_input_vars=1000
35
--COOKIE--
46
c o o k i e=value; c o o k i e= v a l u e ;;c%20o+o k+i%20e=v;name="value","value",UEhQIQ==;UEhQIQ==foo
57
--FILE--

tests/basic/024.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Test HTTP_RAW_POST_DATA creation
33
--INI--
44
always_populate_raw_post_data=1
5+
max_input_vars=1000
56
--POST--
67
a=ABC&y=XYZ&c[]=1&c[]=2&c[a]=3
78
--FILE--

tests/basic/027.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Handling of max_input_nesting_level being reached
44
always_populate_raw_post_data=0
55
display_errors=0
66
max_input_nesting_level=10
7+
max_input_vars=1000
78
track_errors=1
89
log_errors=0
910
--POST--

tests/basic/028.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
RFC1867 character quotting
33
--INI--
44
file_uploads=1
5+
max_input_vars=1000
56
--POST_RAW--
67
Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
78
-----------------------------20896060251896012921717172737

tests/basic/bug55500.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Bug #55500 (Corrupted $_FILES indices lead to security concern)
44
file_uploads=1
55
error_reporting=E_ALL&~E_NOTICE
66
upload_max_filesize=1024
7+
max_file_uploads=10
78
--POST_RAW--
89
Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
910
-----------------------------20896060251896012921717172737

tests/basic/rfc1867_anonymous_upload.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ file_uploads=1
55
error_reporting=E_ALL&~E_NOTICE
66
comment=debug builds show some additional E_NOTICE errors
77
upload_max_filesize=1024
8+
max_file_uploads=10
89
--POST_RAW--
910
Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
1011
-----------------------------20896060251896012921717172737

tests/basic/rfc1867_array_upload.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ file_uploads=1
55
error_reporting=E_ALL&~E_NOTICE
66
comment=debug builds show some additional E_NOTICE errors
77
upload_max_filesize=1024
8+
max_file_uploads=10
89
--POST_RAW--
910
Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
1011
-----------------------------20896060251896012921717172737

tests/basic/rfc1867_empty_upload.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ file_uploads=1
55
error_reporting=E_ALL&~E_NOTICE
66
comment=debug builds show some additional E_NOTICE errors
77
upload_max_filesize=1024
8+
max_file_uploads=10
89
--POST_RAW--
910
Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
1011
-----------------------------20896060251896012921717172737

tests/basic/rfc1867_max_file_size.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ file_uploads=1
55
error_reporting=E_ALL&~E_NOTICE
66
comment=debug builds show some additional E_NOTICE errors
77
upload_max_filesize=1024
8+
max_file_uploads=10
89
--POST_RAW--
910
Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
1011
-----------------------------20896060251896012921717172737

0 commit comments

Comments
 (0)