Test: /ext/spl/tests/observer_006.phpt - Version 7.4.6-dev    

There is 1 diff reported by users for this test.

Count Diff
3 (100%)
004+ object(MyStorage)#1 (1) { 004- object(MyStorage)#%d (2) { 007+ } 008+ string(156) "O:9:"MyStorage":2:{i:0;a:4:{i:0;O:9:"TestClass":1:{s:4:"test";i:1;}i:1;s:3:"foo";i:2;O:9:"TestClass":1:{s:4:"test";i:2;}i:3;i:42;}i:1;a:1:{s:3:"bla";i:26;}}" 009+ ===UNSERIALIZE=== 010+ int(2) 011+ int(1) 012+ int(2) 013+ object(MyStorage)#4 (1) { 014+ ["bla"]=> 015+ int(26) 016+ } 017+ ===UNSERIALIZE2=== 018+ object(MyStorage)#11 (1) { 019+ ["bla"]=> 020+ int(26) 021+ } 022+ int(1) 023+ object(TestClass)#3 (1) { 024+ ["test"]=> 025+ int(2) 007- ["storage":"SplObjectStorage":private]=> 008- array(2) { 009- ["%s"]=> 010- array(2) { 011- ["obj"]=> 012- object(TestClass)#%d (1) { 013- ["test"]=> 014- int(1) 015- } 016- ["inf"]=> 017- string(3) "foo" 018- } 019- ["%s"]=> 020- array(2) { 021- ["obj"]=> 022- object(TestClass)#%d (1) { 023- ["test"]=> 024- int(2) 025- } 026- ["inf"]=> 027- int(42) 028- } 029- } 027+ int(42) 029+ ===UNSERIALIZE3=== 030+ object(MyStorage)#11 (1) { 032- ===UNSERIALIZE=== 033- int(2) 034- int(1) 035- int(2) 036- object(MyStorage)#%d (2) { 033+ } 034+ int(2) 035+ object(TestClass)#7 (1) { 036+ ["test"]=> 037+ int(3) 038+ } 039+ ===UNSERIALIZE4=== 040+ object(MyStorage)#8 (1) { 041+ ["bla"]=> 042+ int(26) 043+ } 044+ ===DONE=== 039- ["storage":"SplObjectStorage":private]=> 040- array(2) { 041- ["%s"]=> 042- array(2) { 043- ["obj"]=> 044- object(TestClass)#%d (1) { 045- ["test"]=> 046- int(1) 047- } 048- ["inf"]=> 049- string(3) "foo" 050- } 051- ["%s"]=> 052- array(2) { 053- ["obj"]=> 054- object(TestClass)#%d (1) { 055- ["test"]=> 056- int(2) 057- } 058- ["inf"]=> 059- int(42) 060- } 061- } 062- } 063- ===UNSERIALIZE2=== 064- object(MyStorage)#%d (2) { 065- ["bla"]=> 066- int(26) 067- ["storage":"SplObjectStorage":private]=> 068- array(4) { 069- ["%s"]=> 070- array(2) { 071- ["obj"]=> 072- object(TestClass)#%d (1) { 073- ["test"]=> 074- int(1) 075- } 076- ["inf"]=> 077- string(3) "foo" 078- } 079- ["%s"]=> 080- array(2) { 081- ["obj"]=> 082- object(TestClass)#%d (1) { 083- ["test"]=> 084- int(2) 085- } 086- ["inf"]=> 087- int(42) 088- } 089- ["%s"]=> 090- array(2) { 091- ["obj"]=> 092- object(TestClass)#%d (1) { 093- ["test"]=> 094- int(3) 095- } 096- ["inf"]=> 097- object(stdClass)#%d (0) { 098- } 099- } 100- ["%s"]=> 101- array(2) { 102- ["obj"]=> 103- object(TestClass)#%d (1) { 104- ["test"]=> 105- int(4) 106- } 107- ["inf"]=> 108- object(TestClass)#%d (1) { 109- ["test"]=> 110- int(5) 111- } 112- } 113- } 114- } 115- int(1) 116- object(TestClass)#%d (1) { 117- ["test"]=> 118- int(2) 119- } 120- int(42) 121- string(3) "bar" 122- ===UNSERIALIZE3=== 123- object(MyStorage)#%d (2) { 124- ["bla"]=> 125- int(26) 126- ["storage":"SplObjectStorage":private]=> 127- array(4) { 128- ["%s"]=> 129- array(2) { 130- ["obj"]=> 131- object(TestClass)#%d (1) { 132- ["test"]=> 133- int(1) 134- } 135- ["inf"]=> 136- string(3) "foo" 137- } 138- ["%s"]=> 139- array(2) { 140- ["obj"]=> 141- object(TestClass)#%d (1) { 142- ["test"]=> 143- int(2) 144- } 145- ["inf"]=> 146- string(3) "bar" 147- } 148- ["%s"]=> 149- array(2) { 150- ["obj"]=> 151- object(TestClass)#%d (1) { 152- ["test"]=> 153- int(3) 154- } 155- ["inf"]=> 156- object(stdClass)#%d (0) { 157- } 158- } 159- ["%s"]=> 160- array(2) { 161- ["obj"]=> 162- object(TestClass)#%d (1) { 163- ["test"]=> 164- int(4) 165- } 166- ["inf"]=> 167- object(TestClass)#%d (1) { 168- ["test"]=> 169- int(5) 170- } 171- } 172- } 173- } 174- int(2) 175- object(TestClass)#7 (1) { 176- ["test"]=> 177- int(3) 178- } 179- ===UNSERIALIZE4=== 180- object(MyStorage)#%d (2) { 181- ["bla"]=> 182- int(26) 183- ["storage":"SplObjectStorage":private]=> 184- array(4) { 185- ["%s"]=> 186- array(2) { 187- ["obj"]=> 188- object(TestClass)#%d (1) { 189- ["test"]=> 190- int(1) 191- } 192- ["inf"]=> 193- string(3) "foo" 194- } 195- ["%s"]=> 196- array(2) { 197- ["obj"]=> 198- object(TestClass)#%d (1) { 199- ["test"]=> 200- int(2) 201- } 202- ["inf"]=> 203- string(3) "bar" 204- } 205- ["%s"]=> 206- array(2) { 207- ["obj"]=> 208- object(TestClass)#%d (1) { 209- ["test"]=> 210- int(3) 211- } 212- ["inf"]=> 213- string(8) "replaced" 214- } 215- ["%s"]=> 216- array(2) { 217- ["obj"]=> 218- object(TestClass)#%d (1) { 219- ["test"]=> 220- int(4) 221- } 222- ["inf"]=> 223- object(TestClass)#%d (1) { 224- ["test"]=> 225- int(5) 226- } 227- } 228- } 229- } 230- ===DONE===