For bad reasons I need to set memory_limits higher than 1 GB for a directory, but on my PHP 5.2.17 on a Debian 5.0 (Lenny) server when I use, for example, 2048M, I get only the php.ini default value (256M).
PHP runs as an Apache module, and phpinfo gives us (for the directory):
memory_limit 1024M 256M
suhosin.memory_limit 0 0
Is there a limitation due to an Apache module, or the PHP configuration? I know the server only has 4 GB of RAM. It's just a special script.