blob: 0b5c35dc746ee8e30d5606626a46c774bc2b08a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--TEST--
Bug #63680 (Memleak in splfixedarray with cycle reference)
--INI--
zend.enable_gc=1
--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)
|