import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-array / 005.php.expectf
blob874ffb36cbb1a7791a181175d92dafc0fca72ebb
1 *** Testing Error Conditions ***
2 HipHop Warning: %a
3 NULL
4 HipHop Warning: %a
5 NULL
6 HipHop Warning: %a
7 NULL
8 HipHop Warning: %a
9 NULL
10 NULL
12 *** Testing with various array inputs ***
14 -- Input Array for Iteration 1 is -- 
15 Array
19 Output after shift is :
20 NULL
22 -- Input Array for Iteration 2 is -- 
23 Array
25     [0] => 1
26     [1] => 2
27     [2] => 3
28     [3] => 4
29     [4] => 5
30     [5] => 6
31     [6] => 7
32     [7] => 8
33     [8] => 9
36 Output after shift is :
37 int(1)
39 -- Input Array for Iteration 3 is -- 
40 Array
42     [0] => One
43     [1] => _Two
44     [2] => Three
45     [3] => Four
46     [4] => Five
49 Output after shift is :
50 string(3) "One"
52 -- Input Array for Iteration 4 is -- 
53 Array
55     [0] => 6
56     [1] => six
57     [2] => 7
58     [3] => seven
59     [4] => 8
60     [5] => eight
61     [6] => 9
62     [7] => nine
65 Output after shift is :
66 int(6)
68 -- Input Array for Iteration 5 is -- 
69 Array
71     [a] => aaa
72     [A] => AAA
73     [c] => ccc
74     [d] => ddd
75     [e] => eee
78 Output after shift is :
79 string(3) "aaa"
81 -- Input Array for Iteration 6 is -- 
82 Array
84     [1] => one
85     [2] => two
86     [3] => three
87     [4] => four
88     [5] => five
91 Output after shift is :
92 string(3) "one"
94 -- Input Array for Iteration 7 is -- 
95 Array
97     [1] => one
98     [2] => two
99     [3] => 7
100     [4] => four
101     [5] => five
104 Output after shift is :
105 string(3) "one"
107 -- Input Array for Iteration 8 is -- 
108 Array
110     [f] => fff
111     [1] => one
112     [4] => 6
113     [] => 3
114     [2] => float
115     [F] => FFF
116     [blank] => 
117     [3] => 3.7
118     [5] => Five
119     [6] => 8.6
120     [4name] => jonny
121     [a] => 
124 Output after shift is :
125 string(3) "fff"
127 -- Input Array for Iteration 9 is -- 
128 Array
130     [0] => 12
131     [1] => name
132     [2] => age
133     [3] => 45
136 Output after shift is :
137 int(12)
139 -- Input Array for Iteration 10 is -- 
140 Array
142     [0] => Array
143         (
144             [0] => oNe
145             [1] => tWo
146             [2] => 4
147         )
149     [1] => Array
150         (
151             [0] => 10
152             [1] => 20
153             [2] => 30
154             [3] => 40
155             [4] => 50
156         )
158     [2] => Array
159         (
160         )
164 Output after shift is :
165 array(3) {
166   [0]=>
167   string(3) "oNe"
168   [1]=>
169   string(3) "tWo"
170   [2]=>
171   int(4)
174 -- Input Array for Iteration 11 is -- 
175 Array
177     [one] => 2
178     [three] => 3
179     [0] => 3
180     [1] => 4
181     [3] => 33
182     [4] => 44
183     [5] => 57
184     [6] => 6
185     [5.4] => 554
186     [5.7] => 557
189 Output after shift is :
190 int(2)
192 *** Checking for internal array pointer being reset when shift is called ***
194 Current Element is : int(1)
196 Next Element is : int(2)
198 Next Element is : int(3)
200 shifted Element is : int(1)
202 Current Element after shift operation is: int(2)
203 Done