PATH:
opt
/
alt
/
tests
/
alt-php72-pecl-weakref_0.3.3-1.el8
/
tests
--TEST-- Weakref: acquire/release usage --FILE-- <?php $o = new StdClass; $wr = new WeakRef($o); $wr->acquire(); $wr->acquire(); var_dump($wr->valid(), $wr->get()); unset($o); $wr->release(); var_dump($wr->valid(), $wr->get()); $wr->release(); var_dump($wr->valid(), $wr->get()); ?> ==END== --EXPECTF-- bool(true) object(stdClass)#1 (0) { } bool(true) object(stdClass)#1 (0) { } bool(false) NULL ==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]