xref: /PHP-7.2/ext/spl/tests/bug63680.phpt (revision e55f08a5)
1--TEST--
2Bug #63680 (Memleak in splfixedarray with cycle reference)
3--INI--
4zend.enable_gc=1
5--FILE--
6<?php
7function dummy() {
8    $a = new SplFixedArray(1);
9    $b = new SplFixedArray(1);
10    $a[0] = $b;
11    $b[0] = $a;
12}
13
14dummy();
15var_dump(gc_collect_cycles());
16?>
17--EXPECT--
18int(2)
19