ini_set(“memory_limit”) in PHP 5.3.3 is not working at all

前端 未结 6 1184
长发绾君心
长发绾君心 2020-11-28 10:57

I had this working before :

echo ini_get(\"memory_limit\").\"\\n\";
ini_set(\"memory_limit\",\"256M\");
echo ini_get(\"memory_limit\").\"\\n\";
6条回答
  •  猫巷女王i
    2020-11-28 11:29

    If you have the suhosin extension enabled, it can prevent scripts from setting the memory limit beyond what it started with or some defined cap.

    http://www.hardened-php.net/suhosin/configuration.html#suhosin.memory_limit

提交回复
热议问题