Skip to content

Commit e467a79

Browse files
committed
Added max_input_vars directive to prevent attacks based on hash collisions
1 parent 4dfd69e commit e467a79

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

UPGRADING

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ UPGRADE NOTES - PHP 5.4
7575
- safe_mode_protected_env_vars
7676
- zend.ze1_compatibility_mode
7777

78+
- the following new directives were added
79+
80+
- max_input_vars - specifies how many GET/POST/COOKIE input variables may be
81+
accepted. default value 1000.
7882

7983
=============================
8084
2. Reserved words and classes

php.ini-development

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@ max_input_time = 60
397397
; http://php.net/max-input-nesting-level
398398
;max_input_nesting_level = 64
399399

400+
; How many GET/POST/COOKIE input variables may be accepted
401+
; max_input_vars = 1000
402+
400403
; Maximum amount of memory a script may consume (128MB)
401404
; http://php.net/memory-limit
402405
memory_limit = 128M

php.ini-production

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,9 @@ max_input_time = 60
397397
; http://php.net/max-input-nesting-level
398398
;max_input_nesting_level = 64
399399

400+
; How many GET/POST/COOKIE input variables may be accepted
401+
; max_input_vars = 1000
402+
400403
; Maximum amount of memory a script may consume (128MB)
401404
; http://php.net/memory-limit
402405
memory_limit = 128M

0 commit comments

Comments
 (0)