php-src/ext/spl/tests/bug63680.phpt
2013-08-02 12:00:48 -04:00

19 lines
285 B
PHP

--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)