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

There is 1 diff reported by users for this test.

Count Diff
1 (100%)
001+ int(1)
001- int(2)
003- int(2)
007+ array(1) {
008- array(2) {
016+ int(42)
017- string(3) "foo"
018+ }
019+ }
020+ string(92) "C:9:"MyStorage":71:{x:i:1;O:9:"TestClass":1:{s:4:"test";i:1;},i:42;;m:a:1:{s:3:"bla";i:26;}}"
021+ ===UNSERIALIZE===
022+ int(1)
023+ int(1)
024+ object(MyStorage)#3 (2) {
025+ ["bla"]=>
026+ int(26)
027+ ["storage":"SplObjectStorage":private]=>
028+ array(1) {
029+ ["0000000029e970ca000000007877744f"]=>
030+ array(2) {
031+ ["obj"]=>
032+ object(TestClass)#4 (1) {
033+ ["test"]=>
034+ int(1)
035+ }
036+ ["inf"]=>
037+ int(42)
038+ }
039+ }
040+ }
041+ ===UNSERIALIZE2===
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- }
030- }
031- string(%d) "%s"
032- ===UNSERIALIZE===
033- int(2)
034- int(1)
035- int(2)
040- array(2) {
046+ array(1) {
049- string(3) "foo"
050- }
051- ["%s"]=>
052- array(2) {
053- ["obj"]=>
056- int(2)
057+ int(5)
058- ["inf"]=>
059- int(42)
062+ int(1)
063+ NULL
064+ NULL
065+ NULL
066+ ===UNSERIALIZE3===
063- ===UNSERIALIZE2===
068- array(4) {
071+ array(1) {
077- string(3) "foo"
078- }
079- ["%s"]=>
080- array(2) {
081- ["obj"]=>
082+ int(5)
084- int(2)
085+ }
086+ }
087+ int(2)
088+ NULL
089+
090+ Warning: SplObjectStorage::attach() expects parameter 1 to be object, null given in %s/observer_006.php on line 70
091+ ===UNSERIALIZE4===
092+ object(MyStorage)#5 (2) {
093+ ["bla"]=>
094+ int(26)
095+ ["storage":"SplObjectStorage":private]=>
096+ array(1) {
086- ["inf"]=>
087- int(42)
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- }
102+ int(1)
105- int(4)
112+ ===DONE===
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===