1--TEST--
2Self-referencing map entry GC - 015
3--FILE--
4<?php
5
6class Value {
7    public function __construct() {
8    }
9}
10
11$map = new WeakMap();
12$obj = new Value();
13$map[$obj] = [$obj, $map];
14$ref = WeakReference::create($map);
15
16$map = null;
17
18gc_collect_cycles();
19
20var_dump($ref->get());
21
22?>
23--EXPECT--
24NULL
25