- Output for 8.2.30 - 8.2.32, 8.3.5 - 8.3.33, 8.4.9 - 8.4.24, 8.5.0 - 8.5.9
- == WEAKMAP WITH ENUM == Dumping the Map with an ENUM object(WeakMap)#8 (1) { [0]=> array(2) { ["key"]=> enum(WeekDay::Monday) ["value"]=> object(Foo)#9 (0) { } } } unsetting reference to ENUM's object Dumping the Map with an ENUM object(WeakMap)#8 (1) { [0]=> array(2) { ["key"]=> enum(WeekDay::Monday) ["value"]=> object(Foo)#9 (0) { } } } IT'STILL THERE ! == WEAKMAP WITH OBJECT == Dumping the Map with an OBJECT object(WeakMap)#10 (1) { [0]=> array(2) { ["key"]=> object(Bar)#8 (0) { } ["value"]=> object(Foo)#9 (0) { } } } unsetting the OBJECT Dumping the Map with an OBJECT object(WeakMap)#10 (0) { } IT'S GONE ! == SPLOBJECTSTORAGE WITH ENUM == Dumping the SPLOBJECTSTORAGE with an ENUM object(SplObjectStorage)#8 (1) { ["storage":"SplObjectStorage":private]=> array(1) { [0]=> array(2) { ["obj"]=> enum(WeekDay::Tuesday) ["inf"]=> object(Foo)#9 (0) { } } } } unsetting the ENUM Dumping the SPLOBJECTSTORAGE with an ENUM object(SplObjectStorage)#8 (1) { ["storage":"SplObjectStorage":private]=> array(1) { [0]=> array(2) { ["obj"]=> enum(WeekDay::Tuesday) ["inf"]=> object(Foo)#9 (0) { } } } } IT'STILL THERE ! == SPLOBJECTSTORAGE WITH OBJECT == Dumping the SPLOBJECTSTORAGE with an OBJECT object(SplObjectStorage)#11 (1) { ["storage":"SplObjectStorage":private]=> array(1) { [0]=> array(2) { ["obj"]=> object(Bar)#8 (0) { } ["inf"]=> object(Bar)#9 (0) { } } } } unsetting the OBJECT Dumping the SPLOBJECTSTORAGE with an OBJECT object(SplObjectStorage)#11 (1) { ["storage":"SplObjectStorage":private]=> array(1) { [0]=> array(2) { ["obj"]=> object(Bar)#8 (0) { } ["inf"]=> object(Bar)#9 (0) { } } } } IT'STILL THERE !
- Output for 8.1.34
- == WEAKMAP WITH ENUM == Dumping the Map with an ENUM object(WeakMap)#2 (1) { [0]=> array(2) { ["key"]=> enum(WeekDay::Monday) ["value"]=> object(Foo)#3 (0) { } } } unsetting reference to ENUM's object Dumping the Map with an ENUM object(WeakMap)#2 (1) { [0]=> array(2) { ["key"]=> enum(WeekDay::Monday) ["value"]=> object(Foo)#3 (0) { } } } IT'STILL THERE ! == WEAKMAP WITH OBJECT == Dumping the Map with an OBJECT object(WeakMap)#4 (1) { [0]=> array(2) { ["key"]=> object(Bar)#2 (0) { } ["value"]=> object(Foo)#3 (0) { } } } unsetting the OBJECT Dumping the Map with an OBJECT object(WeakMap)#4 (0) { } IT'S GONE ! == SPLOBJECTSTORAGE WITH ENUM == Dumping the SPLOBJECTSTORAGE with an ENUM object(SplObjectStorage)#3 (1) { ["storage":"SplObjectStorage":private]=> array(1) { [0]=> array(2) { ["obj"]=> enum(WeekDay::Tuesday) ["inf"]=> object(Foo)#5 (0) { } } } } unsetting the ENUM Dumping the SPLOBJECTSTORAGE with an ENUM object(SplObjectStorage)#3 (1) { ["storage":"SplObjectStorage":private]=> array(1) { [0]=> array(2) { ["obj"]=> enum(WeekDay::Tuesday) ["inf"]=> object(Foo)#5 (0) { } } } } IT'STILL THERE ! == SPLOBJECTSTORAGE WITH OBJECT == Dumping the SPLOBJECTSTORAGE with an OBJECT object(SplObjectStorage)#6 (1) { ["storage":"SplObjectStorage":private]=> array(1) { [0]=> array(2) { ["obj"]=> object(Bar)#3 (0) { } ["inf"]=> object(Bar)#5 (0) { } } } } unsetting the OBJECT Dumping the SPLOBJECTSTORAGE with an OBJECT object(SplObjectStorage)#6 (1) { ["storage":"SplObjectStorage":private]=> array(1) { [0]=> array(2) { ["obj"]=> object(Bar)#3 (0) { } ["inf"]=> object(Bar)#5 (0) { } } } } IT'STILL THERE !