0

In PHP 5.4 How much memory is allocated to a script, when we set memory_limit to -1 ?

Memory exhausted error will not come until all memory is exhausted .

But will this affect my other processes too? What is default memory allocated ? How it increases gradually ?

Would like to know how PHP Internals handling it, when we set memory_limit to -1.

  • memory_limit set to -1 means that it uses up all the memory it can use. And it will not stop running until your whole ram is exhausted. Basically, it kinda doesn't care about memory usage. – Example person Jan 13 '21 at 09:17
  • Why not write a script an see what happens? Which "other processes" are you talking about? – Nico Haase Jan 14 '21 at 21:32

0 Answers0