I
I
Ilya Plotnikov2011-09-13 12:37:28
PHP
Ilya Plotnikov, 2011-09-13 12:37:28

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

4 answer(s)
I
Igor, 2011-09-13
@shanker

In addition, about circular references, I can recommend not to forget to use unset on variables that are no longer needed

S
Sergey Beresnev, 2011-09-13
@sectus

It leaks when circular references are used. Here, any search engine can show a bunch of examples in this regard.

T
trueneutral, 2011-09-13
@trueneutral

Often leaks due to leaks in extensions.

I
Ilya Plotnikov, 2011-09-13
@ilyaplot

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 question

Ask a Question

731 491 924 answers to any question