I had this working before :
echo ini_get("memory_limit")."
";
ini_set("memory_limit","256M");
echo ini_get("memory_limit")."
";
That would input this :
32M
256M
on a php script executed by command line.
I updated from 5.2 to 5.3, and from now, this directive is not working at all : this gives me :
32M
32M
and then make my script fail with a fatal Error...
I checked the php documentation, and googled it, and I didn't find anywhere that "memory_limit" had been deprecated.
Does anyone have a solution?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…