0

I am attempting to use ini_set("memory_limit", "256M"); to set the memory limit to 256M for my script, but it doesn't seem to work.
echo ini_get("memory_limit");
gives me 128M which is the default.
Using ini_set to change the max execution time does when tested the same way.

Having already found this question I checked the suhosin.ini and php.ini files. Suhosin caps it at 2048M though php.ini limits that to 512.
I am not running into either of those caps, and there is another script in the same directory running with a memory limit of 512MB, so there isn't anything in the .htaccess. Is there somewhere else I should be checking?

Community
  • 1
  • 1
Isaac
  • 625
  • 1
  • 12
  • 30

0 Answers0