PATH:
opt
/
alt
/
tests
/
alt-php55-pecl-weakref_0.2.6-1.el8
/
tests
--TEST-- WeakMap: unsetting --FILE-- <?php $wm = new WeakMap(); $o = new StdClass; class A { public function __destruct() { echo "Dead!\n"; } } $wm[$o] = new A; var_dump(count($wm)); unset($wm[$o]); var_dump(count($wm)); ?> ==END== --EXPECTF-- int(1) Dead! int(0) ==END==
[-] weakref_011.phpt
[edit]
[-] weakref_002.phpt
[edit]
[-] weakref_012.phpt
[edit]
[-] weakref_008.phpt
[edit]
[-] weakref_004.phpt
[edit]
[-] weakref_009.phpt
[edit]
[-] weakmap_001.phpt
[edit]
[-] weakref_010.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]