I need to temporarily increase memory_limit on my Debian Jessie server. And no, I cannot make my script use less memory, as it is not my script and I really need to run it. Setting memory_limit and suhosin.memory_limit in php.ini does not have any effect.
Is there any other solution apart from recompiling PHP?
Is your script running in CLI or HTTP? Are you sure if you changed settings in php.ini correctly?