Skip to content

Commit

Permalink
Added max_input_vars directive to prevent attacks based on hash colli…
Browse files Browse the repository at this point in the history
…sions
  • Loading branch information
dstogov committed Dec 15, 2011
1 parent 4dfd69e commit e467a79
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ UPGRADE NOTES - PHP 5.4
- safe_mode_protected_env_vars
- zend.ze1_compatibility_mode

- the following new directives were added

- max_input_vars - specifies how many GET/POST/COOKIE input variables may be
accepted. default value 1000.

=============================
2. Reserved words and classes
Expand Down
3 changes: 3 additions & 0 deletions php.ini-development
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ max_input_time = 60
; http://php.net/max-input-nesting-level
;max_input_nesting_level = 64

; How many GET/POST/COOKIE input variables may be accepted
; max_input_vars = 1000

; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 128M
Expand Down
3 changes: 3 additions & 0 deletions php.ini-production
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ max_input_time = 60
; http://php.net/max-input-nesting-level
;max_input_nesting_level = 64

; How many GET/POST/COOKIE input variables may be accepted
; max_input_vars = 1000

; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 128M
Expand Down

0 comments on commit e467a79

Please sign in to comment.