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

There is 1 diff reported by users for this test.

Count Diff
13 (100%)
058+ array(1) {
059+ [0]=>
060+ int(4)
061+ }
062+
063+ -- Iteration 8 --
069- -- Iteration 8 --
075+ -- Iteration 9 --
081- -- Iteration 9 --
087+ -- Iteration 10 --
093- -- Iteration 10 --
099+ -- Iteration 11 --
105- -- Iteration 11 --
111+ -- Iteration 12 --
112+ array(3) {
113+ [0]=>
114+ int(2)
115+ ["three"]=>
116+ int(3)
117+ [1]=>
118+ int(4)
119+ }
120+
121+ -- Iteration 13 --
117- -- Iteration 12 --
127- -- Iteration 13 --
133+ -- 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 --
143+ -- Iteration 15 --
155+ -- Iteration 16 --
156+
157+ Warning: array_slice() expects parameter 2 to be long, string given in %s/array_slice_variation2.php on line 83
158+ NULL
159+
160+ -- Iteration 17 --
161+
162+ Warning: array_slice() expects parameter 2 to be long, string given in %s/array_slice_variation2.php on line 83
163+ NULL
164+
165+ -- Iteration 18 --
166+
167+ Warning: array_slice() expects parameter 2 to be long, array given in %s/array_slice_variation2.php on line 83
168+ NULL
169+
170+ -- Iteration 19 --
171+
172+ Warning: array_slice() expects parameter 2 to be long, string given in %s/array_slice_variation2.php on line 83
173+ NULL
174+
175+ -- Iteration 20 --
176+
177+ Warning: array_slice() expects parameter 2 to be long, string given in %s/array_slice_variation2.php on line 83
178+ NULL
179+
180+ -- Iteration 21 --
181+
182+ Warning: array_slice() expects parameter 2 to be long, string given in %s/array_slice_variation2.php on line 83
183+ NULL
184+
185+ -- 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-
197+ -- Iteration 23 --
198+ array(4) {
199+ ["one"]=>
200+ int(1)
201+ [0]=>
202+ int(2)
203+ ["three"]=>
204+ int(3)
205+ [1]=>
206+ int(4)
207+ }
208+ 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