PATH:
opt
/
alt
/
tests
/
alt-php71-pecl-weakref_0.3.3-1.el8
/
tests
--TEST-- WeakMap: cloning --FILE-- <?php $a = new StdClass; $b = new StdClass; $c = new StdClass; $d = new StdClass; $e = new StdClass; $wm1 = new WeakMap; $wm1[$a] = $b; $wm1[$c] = $b; $wm1[$d] = $b; $wm2 = clone $wm1; $wm1[$e] = $b; unset($a); var_dump($wm1->count()); var_dump($wm2->count()); ?> ==END== --EXPECTF-- int(3) int(2) ==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]