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

前端 未结 6 1192
长发绾君心
长发绾君心 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条回答
  •  余生分开走
    2020-11-28 11:34

    Works for me, has nothing to do with PHP 5.3. Just like many such options it cannot be overriden via ini_set() when safe_mode is enabled. Check your updated php.ini (and better yet: change the memory_limit there too).

提交回复
热议问题