summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug63680.phpt
blob: 3a20c4bb17018d993b780e08044e251c3e5a904d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Bug #63680 (Memleak in splfixedarray with cycle reference)
--FILE--
<?php
function dummy() {
    $a = new SplFixedArray(1);
    $b = new SplFixedArray(1);
    $a[0] = $b;
    $b[0] = $a;
}

dummy();
var_dump(gc_collect_cycles());
?>
--EXPECT--
int(2)