In perl this will cause recursive reference :
$a = \$a;
And $a's reference count will never come to 0 again...
Does PHP has similar issue?
If not,how does PHP gc handles it?
As of PHP 5.3.0, PHP's Garbage collector can and will collect graphs of objects that contain cycles.
See PHP: Collecting Cycles
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With