I've set suhosin.perdir = 'p' in my ini file. I would now like to change suhosin ini settings on a per-folder basis.
The following all work (running phpinfo() inside the desired folder shows the changed values):
php_value suhosin.post.max_array_depth 100
php_value suhosin.post.max_array_index_length 128
php_value suhosin.post.max_name_length 128
php_value suhosin.post.max_value_length 2000000
php_value suhosin.post.max_totalname_length 512
php_value suhosin.post.max_vars 1000
But when I also add the .request settings (which I understand are an upper limit for the .post settings), they do not change:
php_value suhosin.request.max_array_depth 100
php_value suhosin.request.max_array_index_length 128
php_value suhosin.request.max_name_length 128
php_value suhosin.request.max_value_length 2000000
php_value suhosin.request.max_totalname_length 512
php_value suhosin.request.max_vars 1000
Do you have any idea if there is anything else I have to check/setup? Am I forgetting someting?
Thank you! Matei
Ok, I've finally found the solution. I was going to download the Suhosin code to take a look when I found this post, explaining that the perdir "p" directive only affects to the post variables:
If you want perdir options both per post and request, you need to edit your php.ini
or .htaccess
so the value for perdir is pr