a strange thing is on my testing server: I set max_input_vars
to just 100
and sent a huge request with over 100
elements
I used:
$num=count($_REQUEST, COUNT_RECURSIVE);
$max=ini_get('max_input_vars');
if($max - $num<50) {
die('Number of requests ('.$num.') near the maximum allowed value of max_input_vars:'.ini_get('max_input_vars'));
}
but I get the error
Number of requests
(90)
near the maximum allowed value of max_input_vars:100
why just 90? shouldnt it be 100 then or 99?
I get 240 vars in $_REQUEST if I set a higher limit, to be precise:
- $_GET: 1
- $_POST: 239
- $_COOKIE: 1