[php] PHP : settings memory_limits > 1024M does not work

For bads reasons I need to set memory_limits higher than 1G for a directory, but on my PHP 5.2.17 on Lenny server when I put for example 2048M I get only the php.ini default value (256M).

PHP run as an apache module, phpinfo give us (for the directory)

memory_limit    1024M   256M
suhosin.memory_limit    0   0

Is there a limitation due to apache module, or PHP conf? I know the server only have 4G of RAM, it's just a special script.

This question is related to php memory-limit

The answer is