How does php find possible roots?

when php performs garbage collection, it writes the garbage to the root buffer, and then determines the collection through the execution rules. Excuse me, the garbage here is the possible root. How does php determine the possible root?

Php
Jun.10,2022

in versions above php5.3, if you find that the refcount in a zval container is decreasing, but not to zero, PHP will put this value in the buffer as a suspicious object that may be junk.

Menu