Answer the question
In order to leave comments, you need to log in
Memory leak in PHP?
The question is addressed to PHP connoisseurs. In what cases does PHP leak?
Would it be acceptable to store temporary data in class instances permanently?
I am writing a constantly running demon.
Answer the question
In order to leave comments, you need to log in
In addition, about circular references, I can recommend not to forget to use unset on variables that are no longer needed
It leaks when circular references are used. Here, any search engine can show a bunch of examples in this regard.
Thanks for answers. For some reason, I thought that in PHP there are more situations in which a leak occurs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question