Lines Matching refs:map
6 $map = new WeakMap;
8 // This is doing to be inserted into the map and immediately removed again
9 $map[new stdClass] = 1;
10 var_dump($map);
13 $map[$obj] = 2;
14 var_dump($map);
17 var_dump($map);
21 $map[$obj] = new class {
30 var_dump($map);
32 echo "\nDestroying map with live object:\n";
34 $map[$obj] = 3;
35 unset($map);
39 $map = new WeakMap;
42 $map[$obj] = 4;
44 var_dump($map);
46 var_dump($map);
49 $map = new WeakMap;
51 $map[$obj] = $obj;
53 var_dump($map);
54 unset($map);
56 echo "\nStoring map in itself:\n";
57 $map = new WeakMap;
58 $map[$map] = $map;
59 var_dump($map);
60 unset($map);
86 Destroying map with live object:
119 Storing map in itself: