diff options
Diffstat (limited to 'ext/spl/tests/bug63680.phpt')
| -rw-r--r-- | ext/spl/tests/bug63680.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/spl/tests/bug63680.phpt b/ext/spl/tests/bug63680.phpt new file mode 100644 index 000000000..3a20c4bb1 --- /dev/null +++ b/ext/spl/tests/bug63680.phpt @@ -0,0 +1,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) |
