mirror of
https://github.com/php/php-src.git
synced 2025-01-26 05:34:32 +08:00
19 lines
285 B
PHP
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)
|