Test: /ext/standard/tests/array/array_slice_variation2.phpt - Version 5.5.0    

There is 1 diff reported by users for this test.

Count Diff
2 (100%)
058+ array(0) {
059+ }
060+
061+ -- Iteration 8 --
069- -- Iteration 8 --
073+ -- Iteration 9 --
081- -- Iteration 9 --
085+ -- Iteration 10 --
093- -- Iteration 10 --
097+ -- Iteration 11 --
105- -- Iteration 11 --
109+ -- Iteration 12 --
110+ array(3) {
111+ [0]=>
112+ int(2)
113+ ["three"]=>
114+ int(3)
115+ [1]=>
116+ int(4)
117+ }
118+
119+ -- Iteration 13 --
117- -- Iteration 12 --
127- -- Iteration 13 --
131+ -- Iteration 14 --
139- -- Iteration 14 --
140- array(3) {
141- [0]=>
142- int(2)
143- ["three"]=>
144- int(3)
145- [1]=>
146- int(4)
147- }
148-
149- -- Iteration 15 --
141+ -- Iteration 15 --
153+ -- Iteration 16 --
154+
155+ Warning: array_slice() expects parameter 2 to be long, string given in %s/array_slice_variation2.php on line 83
156+ NULL
157+
158+ -- Iteration 17 --
159+
160+ Warning: array_slice() expects parameter 2 to be long, string given in %s/array_slice_variation2.php on line 83
161+ NULL
162+
163+ -- Iteration 18 --
164+
165+ Warning: array_slice() expects parameter 2 to be long, array given in %s/array_slice_variation2.php on line 83
166+ NULL
167+
168+ -- Iteration 19 --
169+
170+ Warning: array_slice() expects parameter 2 to be long, string given in %s/array_slice_variation2.php on line 83
171+ NULL
172+
173+ -- Iteration 20 --
174+
175+ Warning: array_slice() expects parameter 2 to be long, string given in %s/array_slice_variation2.php on line 83
176+ NULL
177+
178+ -- Iteration 21 --
179+
180+ Warning: array_slice() expects parameter 2 to be long, string given in %s/array_slice_variation2.php on line 83
181+ NULL
182+
183+ -- Iteration 22 --
161- -- Iteration 16 --
162-
163- Warning: array_slice() expects parameter 2 to be long, string given in %s on line %d
164- NULL
165-
166- -- Iteration 17 --
167-
168- Warning: array_slice() expects parameter 2 to be long, string given in %s on line %d
169- NULL
170-
171- -- Iteration 18 --
172-
195+ -- Iteration 23 --
196+ array(4) {
197+ ["one"]=>
198+ int(1)
199+ [0]=>
200+ int(2)
201+ ["three"]=>
202+ int(3)
203+ [1]=>
204+ int(4)
205+ }
206+ Done
173- Warning: array_slice() expects parameter 2 to be long, array given in %s on line %d
174- NULL
175-
176- -- Iteration 19 --
177-
178- Warning: array_slice() expects parameter 2 to be long, string given in %s on line %d
179- NULL
180-
181- -- Iteration 20 --
182-
183- Warning: array_slice() expects parameter 2 to be long, string given in %s on line %d
184- NULL
185-
186- -- Iteration 21 --
187-
188- Warning: array_slice() expects parameter 2 to be long, string given in %s on line %d
189- NULL
190-
191- -- Iteration 22 --
192- array(4) {
193- ["one"]=>
194- int(1)
195- [0]=>
196- int(2)
197- ["three"]=>
198- int(3)
199- [1]=>
200- int(4)
201- }
202-
203- -- Iteration 23 --
204- array(4) {
205- ["one"]=>
206- int(1)
207- [0]=>
208- int(2)
209- ["three"]=>
210- int(3)
211- [1]=>
212- int(4)
213- }
214- Done