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.

2
  • 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. Commented Jan 13, 2021 at 9:17
  • Why not write a script an see what happens? Which "other processes" are you talking about? Commented Jan 14, 2021 at 21:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.