PATH:
opt
/
alt
/
tests
/
alt-php70-pecl-weakref_0.3.3-1.el8
/
tests
--TEST-- WeakMap: test detach on unset --FILE-- <?php $a = new StdClass; $b = new StdClass; $c = new StdClass; $d = new StdClass; $wm = new WeakMap; $wm[$a] = $b; $wm[$c] = $b; $wm[$d] = $b; foreach($wm as $k => $v) { var_dump($k); var_dump($v); } unset($a); foreach($wm as $k => $v) { var_dump($k); var_dump($v); } ?> ==END== --EXPECTF-- object(stdClass)#1 (0) { } object(stdClass)#2 (0) { } object(stdClass)#3 (0) { } object(stdClass)#2 (0) { } object(stdClass)#4 (0) { } object(stdClass)#2 (0) { } object(stdClass)#3 (0) { } object(stdClass)#2 (0) { } object(stdClass)#4 (0) { } object(stdClass)#2 (0) { } ==END==
[-] weakmap_004.phpt
[edit]
[-] weakref_011.phpt
[edit]
[-] weakref_002.phpt
[edit]
[-] weakref_012.phpt
[edit]
[-] weakref_007.phpt
[edit]
[-] weakref_008.phpt
[edit]
[-] weakref_004.phpt
[edit]
[-] weakref_009.phpt
[edit]
[-] weakmap_005.phpt
[edit]
[-] weakmap_001.phpt
[edit]
[-] weakref_010.phpt
[edit]
[-] weakref_013.phpt
[edit]
[-] weakref_001.phpt
[edit]
[-] weakref_003.phpt
[edit]
[-] weakref_005.phpt
[edit]
[-] weakmap_002.phpt
[edit]
[-] weakmap_003.phpt
[edit]
[-] weakref_006.phpt
[edit]
[+]
..
[-] weakref_014.phpt
[edit]