diff options
Diffstat (limited to 'ext/spl/tests/bug53071.phpt')
-rw-r--r-- | ext/spl/tests/bug53071.phpt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/spl/tests/bug53071.phpt b/ext/spl/tests/bug53071.phpt index 4a2450e201..9ab108cfd5 100644 --- a/ext/spl/tests/bug53071.phpt +++ b/ext/spl/tests/bug53071.phpt @@ -5,16 +5,16 @@ Bug #53071 (Usage of SPLObjectStorage defeats gc_collect_cycles) gc_enable(); class myClass { - public $member; + public $member; } function LimitedScope() { - $myA = new myClass(); - $myB = new SplObjectStorage(); - $myC = new myClass(); - $myC->member = $myA; // myC has a reference to myA - $myB->Attach($myC); // myB attaches myC - $myA->member = $myB; // myA has myB, comleting the cycle + $myA = new myClass(); + $myB = new SplObjectStorage(); + $myC = new myClass(); + $myC->member = $myA; // myC has a reference to myA + $myB->Attach($myC); // myB attaches myC + $myA->member = $myB; // myA has myB, comleting the cycle } LimitedScope(); var_dump(gc_collect_cycles()); |