1--TEST--
2Self-referencing map entry GC - 011
3--FILE--
4<?php
5
6class K {}
7class V { public $k; }
8
9$m = new WeakMap();
10$k = new K;
11$v = new V;
12$v->k = $k;
13$m[$k] = $v;
14
15$m2 = $m;
16unset($m2, $k, $v);
17
18gc_collect_cycles();
19
20var_dump($m);
21
22?>
23--EXPECT--
24object(WeakMap)#1 (0) {
25}
26