Suhosin and maximum $_POST variables limit

I had a problem of more than 200 $_POST variables in one of my php scripts. Something was limiting the script not to process more than 200 in the $_POST array.

After unsuccessfully trying to find some info about how to change it in php.ini or apache.conf I found a solution using Suhosin:

You simply add the following to your php.ini file after loading the suhosin module:

[suhosin] = 2000
suhosin.request.max_vars = 2000

That’s easy now 🙂

Update: remember to restart Apache after making these changes.

This entry was posted in Web and tagged , , , , , . Bookmark the permalink.

2 Responses to Suhosin and maximum $_POST variables limit

  1. Will says:

    This was the first thing that came up on my google search for this problem. The solution was simple and worked without a hitch. Thanks a lot for posting this.

    *don’t forget to restart apache


    Tenho procurado por parentes, meu avô chegou no Brasil em 1928, minha família é a única com esse sobrenome nesse país.
    Seu nome era Joseph Zanievicz nascido em fevereiro de 1907.

Leave a Reply

Your email address will not be published. Required fields are marked *