Skip to content

Commit 32c6842

Browse files
committed
Backport test fix
Closes GH-3816.
1 parent a4acff3 commit 32c6842

File tree

1 file changed

+56
-56
lines changed

1 file changed

+56
-56
lines changed

tests/lang/operators/bitwiseShiftLeft_variationStr.phpt

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ foreach ($strVals as $strVal) {
1818
foreach($strVals as $otherVal) {
1919
echo "--- testing: '$strVal' << '$otherVal' ---\n";
2020
try {
21-
var_dump(strVal<<$otherVal);
21+
var_dump($strVal<<$otherVal);
2222
} catch (Throwable $e) {
2323
echo "Exception: " . $e->getMessage() . "\n";
2424
}
@@ -57,17 +57,17 @@ int(0)
5757
--- testing: '0' << 'a5.9' ---
5858
int(0)
5959
--- testing: '65' << '0' ---
60-
int(0)
60+
int(65)
6161
--- testing: '65' << '65' ---
6262
int(0)
6363
--- testing: '65' << '-44' ---
6464
Exception: Bit shift by negative number
6565
--- testing: '65' << '1.2' ---
66-
int(0)
66+
int(130)
6767
--- testing: '65' << '-7.7' ---
6868
Exception: Bit shift by negative number
6969
--- testing: '65' << 'abc' ---
70-
int(0)
70+
int(65)
7171
--- testing: '65' << '123abc' ---
7272
int(0)
7373
--- testing: '65' << '123e5' ---
@@ -81,21 +81,21 @@ int(0)
8181
--- testing: '65' << '123abc ' ---
8282
int(0)
8383
--- testing: '65' << '3.4a' ---
84-
int(0)
84+
int(520)
8585
--- testing: '65' << 'a5.9' ---
86-
int(0)
86+
int(65)
8787
--- testing: '-44' << '0' ---
88-
int(0)
88+
int(-44)
8989
--- testing: '-44' << '65' ---
9090
int(0)
9191
--- testing: '-44' << '-44' ---
9292
Exception: Bit shift by negative number
9393
--- testing: '-44' << '1.2' ---
94-
int(0)
94+
int(-88)
9595
--- testing: '-44' << '-7.7' ---
9696
Exception: Bit shift by negative number
9797
--- testing: '-44' << 'abc' ---
98-
int(0)
98+
int(-44)
9999
--- testing: '-44' << '123abc' ---
100100
int(0)
101101
--- testing: '-44' << '123e5' ---
@@ -109,21 +109,21 @@ int(0)
109109
--- testing: '-44' << '123abc ' ---
110110
int(0)
111111
--- testing: '-44' << '3.4a' ---
112-
int(0)
112+
int(-352)
113113
--- testing: '-44' << 'a5.9' ---
114-
int(0)
114+
int(-44)
115115
--- testing: '1.2' << '0' ---
116-
int(0)
116+
int(1)
117117
--- testing: '1.2' << '65' ---
118118
int(0)
119119
--- testing: '1.2' << '-44' ---
120120
Exception: Bit shift by negative number
121121
--- testing: '1.2' << '1.2' ---
122-
int(0)
122+
int(2)
123123
--- testing: '1.2' << '-7.7' ---
124124
Exception: Bit shift by negative number
125125
--- testing: '1.2' << 'abc' ---
126-
int(0)
126+
int(1)
127127
--- testing: '1.2' << '123abc' ---
128128
int(0)
129129
--- testing: '1.2' << '123e5' ---
@@ -137,21 +137,21 @@ int(0)
137137
--- testing: '1.2' << '123abc ' ---
138138
int(0)
139139
--- testing: '1.2' << '3.4a' ---
140-
int(0)
140+
int(8)
141141
--- testing: '1.2' << 'a5.9' ---
142-
int(0)
142+
int(1)
143143
--- testing: '-7.7' << '0' ---
144-
int(0)
144+
int(-7)
145145
--- testing: '-7.7' << '65' ---
146146
int(0)
147147
--- testing: '-7.7' << '-44' ---
148148
Exception: Bit shift by negative number
149149
--- testing: '-7.7' << '1.2' ---
150-
int(0)
150+
int(-14)
151151
--- testing: '-7.7' << '-7.7' ---
152152
Exception: Bit shift by negative number
153153
--- testing: '-7.7' << 'abc' ---
154-
int(0)
154+
int(-7)
155155
--- testing: '-7.7' << '123abc' ---
156156
int(0)
157157
--- testing: '-7.7' << '123e5' ---
@@ -165,9 +165,9 @@ int(0)
165165
--- testing: '-7.7' << '123abc ' ---
166166
int(0)
167167
--- testing: '-7.7' << '3.4a' ---
168-
int(0)
168+
int(-56)
169169
--- testing: '-7.7' << 'a5.9' ---
170-
int(0)
170+
int(-7)
171171
--- testing: 'abc' << '0' ---
172172
int(0)
173173
--- testing: 'abc' << '65' ---
@@ -197,17 +197,17 @@ int(0)
197197
--- testing: 'abc' << 'a5.9' ---
198198
int(0)
199199
--- testing: '123abc' << '0' ---
200-
int(0)
200+
int(123)
201201
--- testing: '123abc' << '65' ---
202202
int(0)
203203
--- testing: '123abc' << '-44' ---
204204
Exception: Bit shift by negative number
205205
--- testing: '123abc' << '1.2' ---
206-
int(0)
206+
int(246)
207207
--- testing: '123abc' << '-7.7' ---
208208
Exception: Bit shift by negative number
209209
--- testing: '123abc' << 'abc' ---
210-
int(0)
210+
int(123)
211211
--- testing: '123abc' << '123abc' ---
212212
int(0)
213213
--- testing: '123abc' << '123e5' ---
@@ -221,21 +221,21 @@ int(0)
221221
--- testing: '123abc' << '123abc ' ---
222222
int(0)
223223
--- testing: '123abc' << '3.4a' ---
224-
int(0)
224+
int(984)
225225
--- testing: '123abc' << 'a5.9' ---
226-
int(0)
226+
int(123)
227227
--- testing: '123e5' << '0' ---
228-
int(0)
228+
int(12300000)
229229
--- testing: '123e5' << '65' ---
230230
int(0)
231231
--- testing: '123e5' << '-44' ---
232232
Exception: Bit shift by negative number
233233
--- testing: '123e5' << '1.2' ---
234-
int(0)
234+
int(24600000)
235235
--- testing: '123e5' << '-7.7' ---
236236
Exception: Bit shift by negative number
237237
--- testing: '123e5' << 'abc' ---
238-
int(0)
238+
int(12300000)
239239
--- testing: '123e5' << '123abc' ---
240240
int(0)
241241
--- testing: '123e5' << '123e5' ---
@@ -249,21 +249,21 @@ int(0)
249249
--- testing: '123e5' << '123abc ' ---
250250
int(0)
251251
--- testing: '123e5' << '3.4a' ---
252-
int(0)
252+
int(98400000)
253253
--- testing: '123e5' << 'a5.9' ---
254-
int(0)
254+
int(12300000)
255255
--- testing: '123e5xyz' << '0' ---
256-
int(0)
256+
int(12300000)
257257
--- testing: '123e5xyz' << '65' ---
258258
int(0)
259259
--- testing: '123e5xyz' << '-44' ---
260260
Exception: Bit shift by negative number
261261
--- testing: '123e5xyz' << '1.2' ---
262-
int(0)
262+
int(24600000)
263263
--- testing: '123e5xyz' << '-7.7' ---
264264
Exception: Bit shift by negative number
265265
--- testing: '123e5xyz' << 'abc' ---
266-
int(0)
266+
int(12300000)
267267
--- testing: '123e5xyz' << '123abc' ---
268268
int(0)
269269
--- testing: '123e5xyz' << '123e5' ---
@@ -277,21 +277,21 @@ int(0)
277277
--- testing: '123e5xyz' << '123abc ' ---
278278
int(0)
279279
--- testing: '123e5xyz' << '3.4a' ---
280-
int(0)
280+
int(98400000)
281281
--- testing: '123e5xyz' << 'a5.9' ---
282-
int(0)
282+
int(12300000)
283283
--- testing: ' 123abc' << '0' ---
284-
int(0)
284+
int(123)
285285
--- testing: ' 123abc' << '65' ---
286286
int(0)
287287
--- testing: ' 123abc' << '-44' ---
288288
Exception: Bit shift by negative number
289289
--- testing: ' 123abc' << '1.2' ---
290-
int(0)
290+
int(246)
291291
--- testing: ' 123abc' << '-7.7' ---
292292
Exception: Bit shift by negative number
293293
--- testing: ' 123abc' << 'abc' ---
294-
int(0)
294+
int(123)
295295
--- testing: ' 123abc' << '123abc' ---
296296
int(0)
297297
--- testing: ' 123abc' << '123e5' ---
@@ -305,21 +305,21 @@ int(0)
305305
--- testing: ' 123abc' << '123abc ' ---
306306
int(0)
307307
--- testing: ' 123abc' << '3.4a' ---
308-
int(0)
308+
int(984)
309309
--- testing: ' 123abc' << 'a5.9' ---
310-
int(0)
310+
int(123)
311311
--- testing: '123 abc' << '0' ---
312-
int(0)
312+
int(123)
313313
--- testing: '123 abc' << '65' ---
314314
int(0)
315315
--- testing: '123 abc' << '-44' ---
316316
Exception: Bit shift by negative number
317317
--- testing: '123 abc' << '1.2' ---
318-
int(0)
318+
int(246)
319319
--- testing: '123 abc' << '-7.7' ---
320320
Exception: Bit shift by negative number
321321
--- testing: '123 abc' << 'abc' ---
322-
int(0)
322+
int(123)
323323
--- testing: '123 abc' << '123abc' ---
324324
int(0)
325325
--- testing: '123 abc' << '123e5' ---
@@ -333,21 +333,21 @@ int(0)
333333
--- testing: '123 abc' << '123abc ' ---
334334
int(0)
335335
--- testing: '123 abc' << '3.4a' ---
336-
int(0)
336+
int(984)
337337
--- testing: '123 abc' << 'a5.9' ---
338-
int(0)
338+
int(123)
339339
--- testing: '123abc ' << '0' ---
340-
int(0)
340+
int(123)
341341
--- testing: '123abc ' << '65' ---
342342
int(0)
343343
--- testing: '123abc ' << '-44' ---
344344
Exception: Bit shift by negative number
345345
--- testing: '123abc ' << '1.2' ---
346-
int(0)
346+
int(246)
347347
--- testing: '123abc ' << '-7.7' ---
348348
Exception: Bit shift by negative number
349349
--- testing: '123abc ' << 'abc' ---
350-
int(0)
350+
int(123)
351351
--- testing: '123abc ' << '123abc' ---
352352
int(0)
353353
--- testing: '123abc ' << '123e5' ---
@@ -361,21 +361,21 @@ int(0)
361361
--- testing: '123abc ' << '123abc ' ---
362362
int(0)
363363
--- testing: '123abc ' << '3.4a' ---
364-
int(0)
364+
int(984)
365365
--- testing: '123abc ' << 'a5.9' ---
366-
int(0)
366+
int(123)
367367
--- testing: '3.4a' << '0' ---
368-
int(0)
368+
int(3)
369369
--- testing: '3.4a' << '65' ---
370370
int(0)
371371
--- testing: '3.4a' << '-44' ---
372372
Exception: Bit shift by negative number
373373
--- testing: '3.4a' << '1.2' ---
374-
int(0)
374+
int(6)
375375
--- testing: '3.4a' << '-7.7' ---
376376
Exception: Bit shift by negative number
377377
--- testing: '3.4a' << 'abc' ---
378-
int(0)
378+
int(3)
379379
--- testing: '3.4a' << '123abc' ---
380380
int(0)
381381
--- testing: '3.4a' << '123e5' ---
@@ -389,9 +389,9 @@ int(0)
389389
--- testing: '3.4a' << '123abc ' ---
390390
int(0)
391391
--- testing: '3.4a' << '3.4a' ---
392-
int(0)
392+
int(24)
393393
--- testing: '3.4a' << 'a5.9' ---
394-
int(0)
394+
int(3)
395395
--- testing: 'a5.9' << '0' ---
396396
int(0)
397397
--- testing: 'a5.9' << '65' ---

0 commit comments

Comments
 (0)