1--TEST--
2strcasecmp() function
3--INI--
4precision = 12
5--FILE--
6<?php
7/* Compares two strings in case-insensitive manner */
8
9echo "#### Basic and Possible operations ####";
10/* creating an array of strings to be compared */
11$arrays = array(
12           array("a", 'A', chr(128), chr(255), chr(256)),
13           array("acc", "Acc", 'aC', "acCc", 'acd', "?acc", 'Acc!', "$!acc", ";acc"),
14           array("1", "0", 0, "-1", -1, "", TRUE, true, FALSE, "string"),
15           array(10.5, 1.5, 9.5, 11.5, 100.5, 10.5E1, -10.5, 10, 0.5)
16          );
17
18/* loop through to go each and every element in an array
19    and comparing the elements with one and other */
20foreach($arrays as $str1_arr){
21  echo "\n*** comparing the strings in an \n";
22  print_r($str1_arr);
23  for ($i=0; $i<count($str1_arr); $i++){
24    echo "\nIteration $i\n";
25    for($j=0; $j<count($str1_arr); $j++){
26      echo "- strcasecmp of '$str1_arr[$i]' and '$str1_arr[$j]' is => ";
27      var_dump(strcasecmp($str1_arr[$i], $str1_arr[$j]));
28    }
29  }
30}
31
32
33
34echo "\n#### Testing miscellaneous inputs ####\n";
35
36echo "--- Testing objects ---\n";
37/* we get "Recoverable fatal error: saying Object of class could not be converted
38   to string" by default when an object is passed instead of string.
39The error can be  avoided by choosing the __toString magix method as follows: */
40
41class string1 {
42  function __toString() {
43    return "Hello, world";
44  }
45}
46$obj_string1 = new string1;
47
48class string2 {
49  function __toString() {
50    return "hello, world\0";
51  }
52}
53$obj_string2 = new string2;
54
55var_dump(strcasecmp("$obj_string1", "$obj_string2"));
56
57
58echo "\n--- Testing arrays ---\n";
59$str_arr = array("hello", "?world", "!$%**()%**[][[[&@#~!");
60var_dump(strcasecmp("hello?world,!$%**()%**[][[[&@#~!", "$str_arr[1]"));
61var_dump(strcasecmp("hello?world,!$%**()%**[][[[&@#~!", "$str_arr[2]"));
62
63
64echo "\n--- Testing a longer and heredoc string ---\n";
65$string = <<<EOD
66abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
67abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
68abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
69abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
70abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
71abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
72abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
73@#$%^&**&^%$#@!~:())))((((&&&**%$###@@@!!!~~~~@###$%^&*
74abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz0123456789
75EOD;
76var_dump(strcasecmp($string, $string));
77var_dump(strcasecmp($string, "xyz0123456789"));
78var_dump(strcasecmp($string, "&&&"));
79
80echo "\n--- Testing a heredoc null string ---\n";
81$str = <<<EOD
82EOD;
83var_dump(strcasecmp($str, "\0"));
84var_dump(strcasecmp($str, "0"));
85
86
87echo "\n--- Testing simple and complex syntax strings ---\n";
88$str = 'world';
89
90/* Simple syntax */
91var_dump(strcasecmp("Hello, world", "$str"));
92var_dump(strcasecmp("Hello, world'S", "$str'S"));
93var_dump(strcasecmp("Hello, worldS", "$strS"));
94
95/* String with curly braces, complex syntax */
96var_dump(strcasecmp("Hello, worldS", "${str}S"));
97var_dump(strcasecmp("Hello, worldS", "{$str}S"));
98
99echo "\n--- Testing binary safe and binary chars ---\n";
100var_dump(strcasecmp("Hello\0world", "Hello"));
101var_dump(strcasecmp("Hello\0world", "Helloworld"));
102var_dump(strcasecmp("\x0", "\0"));
103var_dump(strcasecmp("\000", "\0"));
104var_dump(strcasecmp("\x00", ""));
105
106echo "\n--- Comparing long float values ---\n";
107/* Here two different outputs, which depends on the rounding value
108   before converting to string. Here Precision = 12  */
109var_dump(strcasecmp(10.55555555555555555555555555, 10.5555555556));   // int(0)
110var_dump(strcasecmp(10.55555555555555555555555555, 10.555555556));    // int(-1)
111var_dump(strcasecmp(10.55555555595555555555555555, 10.555555556));    // int(0)
112
113echo "Done\n";
114?>
115--EXPECTF--
116#### Basic and Possible operations ####
117*** comparing the strings in an
118Array
119(
120    [0] => a
121    [1] => A
122    [2] => �
123    [3] => �
124    [4] => %0
125)
126
127Iteration 0
128- strcasecmp of 'a' and 'a' is => int(0)
129- strcasecmp of 'a' and 'A' is => int(0)
130- strcasecmp of 'a' and '�' is => int(-%d)
131- strcasecmp of 'a' and '�' is => int(-%d)
132- strcasecmp of 'a' and '%0' is => int(%d)
133
134Iteration 1
135- strcasecmp of 'A' and 'a' is => int(0)
136- strcasecmp of 'A' and 'A' is => int(0)
137- strcasecmp of 'A' and '�' is => int(-%d)
138- strcasecmp of 'A' and '�' is => int(-%d)
139- strcasecmp of 'A' and '%0' is => int(%d)
140
141Iteration 2
142- strcasecmp of '�' and 'a' is => int(%d)
143- strcasecmp of '�' and 'A' is => int(%d)
144- strcasecmp of '�' and '�' is => int(0)
145- strcasecmp of '�' and '�' is => int(-%d)
146- strcasecmp of '�' and '%0' is => int(%d)
147
148Iteration 3
149- strcasecmp of '�' and 'a' is => int(%d)
150- strcasecmp of '�' and 'A' is => int(%d)
151- strcasecmp of '�' and '�' is => int(%d)
152- strcasecmp of '�' and '�' is => int(0)
153- strcasecmp of '�' and '%0' is => int(%d)
154
155Iteration 4
156- strcasecmp of '%0' and 'a' is => int(-%d)
157- strcasecmp of '%0' and 'A' is => int(-%d)
158- strcasecmp of '%0' and '�' is => int(-%d)
159- strcasecmp of '%0' and '�' is => int(-%d)
160- strcasecmp of '%0' and '%0' is => int(0)
161
162*** comparing the strings in an
163Array
164(
165    [0] => acc
166    [1] => Acc
167    [2] => aC
168    [3] => acCc
169    [4] => acd
170    [5] => ?acc
171    [6] => Acc!
172    [7] => $!acc
173    [8] => ;acc
174)
175
176Iteration 0
177- strcasecmp of 'acc' and 'acc' is => int(0)
178- strcasecmp of 'acc' and 'Acc' is => int(0)
179- strcasecmp of 'acc' and 'aC' is => int(%d)
180- strcasecmp of 'acc' and 'acCc' is => int(-%d)
181- strcasecmp of 'acc' and 'acd' is => int(-%d)
182- strcasecmp of 'acc' and '?acc' is => int(%d)
183- strcasecmp of 'acc' and 'Acc!' is => int(-%d)
184- strcasecmp of 'acc' and '$!acc' is => int(%d)
185- strcasecmp of 'acc' and ';acc' is => int(%d)
186
187Iteration 1
188- strcasecmp of 'Acc' and 'acc' is => int(0)
189- strcasecmp of 'Acc' and 'Acc' is => int(0)
190- strcasecmp of 'Acc' and 'aC' is => int(%d)
191- strcasecmp of 'Acc' and 'acCc' is => int(-%d)
192- strcasecmp of 'Acc' and 'acd' is => int(-%d)
193- strcasecmp of 'Acc' and '?acc' is => int(%d)
194- strcasecmp of 'Acc' and 'Acc!' is => int(-%d)
195- strcasecmp of 'Acc' and '$!acc' is => int(%d)
196- strcasecmp of 'Acc' and ';acc' is => int(%d)
197
198Iteration 2
199- strcasecmp of 'aC' and 'acc' is => int(-%d)
200- strcasecmp of 'aC' and 'Acc' is => int(-%d)
201- strcasecmp of 'aC' and 'aC' is => int(0)
202- strcasecmp of 'aC' and 'acCc' is => int(-%d)
203- strcasecmp of 'aC' and 'acd' is => int(-%d)
204- strcasecmp of 'aC' and '?acc' is => int(%d)
205- strcasecmp of 'aC' and 'Acc!' is => int(-%d)
206- strcasecmp of 'aC' and '$!acc' is => int(%d)
207- strcasecmp of 'aC' and ';acc' is => int(%d)
208
209Iteration 3
210- strcasecmp of 'acCc' and 'acc' is => int(%d)
211- strcasecmp of 'acCc' and 'Acc' is => int(%d)
212- strcasecmp of 'acCc' and 'aC' is => int(%d)
213- strcasecmp of 'acCc' and 'acCc' is => int(0)
214- strcasecmp of 'acCc' and 'acd' is => int(-%d)
215- strcasecmp of 'acCc' and '?acc' is => int(%d)
216- strcasecmp of 'acCc' and 'Acc!' is => int(%d)
217- strcasecmp of 'acCc' and '$!acc' is => int(%d)
218- strcasecmp of 'acCc' and ';acc' is => int(%d)
219
220Iteration 4
221- strcasecmp of 'acd' and 'acc' is => int(%d)
222- strcasecmp of 'acd' and 'Acc' is => int(%d)
223- strcasecmp of 'acd' and 'aC' is => int(%d)
224- strcasecmp of 'acd' and 'acCc' is => int(%d)
225- strcasecmp of 'acd' and 'acd' is => int(0)
226- strcasecmp of 'acd' and '?acc' is => int(%d)
227- strcasecmp of 'acd' and 'Acc!' is => int(%d)
228- strcasecmp of 'acd' and '$!acc' is => int(%d)
229- strcasecmp of 'acd' and ';acc' is => int(%d)
230
231Iteration 5
232- strcasecmp of '?acc' and 'acc' is => int(-%d)
233- strcasecmp of '?acc' and 'Acc' is => int(-%d)
234- strcasecmp of '?acc' and 'aC' is => int(-%d)
235- strcasecmp of '?acc' and 'acCc' is => int(-%d)
236- strcasecmp of '?acc' and 'acd' is => int(-%d)
237- strcasecmp of '?acc' and '?acc' is => int(0)
238- strcasecmp of '?acc' and 'Acc!' is => int(-%d)
239- strcasecmp of '?acc' and '$!acc' is => int(%d)
240- strcasecmp of '?acc' and ';acc' is => int(%d)
241
242Iteration 6
243- strcasecmp of 'Acc!' and 'acc' is => int(%d)
244- strcasecmp of 'Acc!' and 'Acc' is => int(%d)
245- strcasecmp of 'Acc!' and 'aC' is => int(%d)
246- strcasecmp of 'Acc!' and 'acCc' is => int(-%d)
247- strcasecmp of 'Acc!' and 'acd' is => int(-%d)
248- strcasecmp of 'Acc!' and '?acc' is => int(%d)
249- strcasecmp of 'Acc!' and 'Acc!' is => int(0)
250- strcasecmp of 'Acc!' and '$!acc' is => int(%d)
251- strcasecmp of 'Acc!' and ';acc' is => int(%d)
252
253Iteration 7
254- strcasecmp of '$!acc' and 'acc' is => int(-%d)
255- strcasecmp of '$!acc' and 'Acc' is => int(-%d)
256- strcasecmp of '$!acc' and 'aC' is => int(-%d)
257- strcasecmp of '$!acc' and 'acCc' is => int(-%d)
258- strcasecmp of '$!acc' and 'acd' is => int(-%d)
259- strcasecmp of '$!acc' and '?acc' is => int(-%d)
260- strcasecmp of '$!acc' and 'Acc!' is => int(-%d)
261- strcasecmp of '$!acc' and '$!acc' is => int(0)
262- strcasecmp of '$!acc' and ';acc' is => int(-%d)
263
264Iteration 8
265- strcasecmp of ';acc' and 'acc' is => int(-%d)
266- strcasecmp of ';acc' and 'Acc' is => int(-%d)
267- strcasecmp of ';acc' and 'aC' is => int(-%d)
268- strcasecmp of ';acc' and 'acCc' is => int(-%d)
269- strcasecmp of ';acc' and 'acd' is => int(-%d)
270- strcasecmp of ';acc' and '?acc' is => int(-%d)
271- strcasecmp of ';acc' and 'Acc!' is => int(-%d)
272- strcasecmp of ';acc' and '$!acc' is => int(%d)
273- strcasecmp of ';acc' and ';acc' is => int(0)
274
275*** comparing the strings in an
276Array
277(
278    [0] => 1
279    [1] => 0
280    [2] => 0
281    [3] => -1
282    [4] => -1
283    [5] =>
284    [6] => 1
285    [7] => 1
286    [8] =>
287    [9] => string
288)
289
290Iteration 0
291- strcasecmp of '1' and '1' is => int(0)
292- strcasecmp of '1' and '0' is => int(%d)
293- strcasecmp of '1' and '0' is => int(%d)
294- strcasecmp of '1' and '-1' is => int(%d)
295- strcasecmp of '1' and '-1' is => int(%d)
296- strcasecmp of '1' and '' is => int(%d)
297- strcasecmp of '1' and '1' is => int(0)
298- strcasecmp of '1' and '1' is => int(0)
299- strcasecmp of '1' and '' is => int(%d)
300- strcasecmp of '1' and 'string' is => int(-%d)
301
302Iteration 1
303- strcasecmp of '0' and '1' is => int(-%d)
304- strcasecmp of '0' and '0' is => int(0)
305- strcasecmp of '0' and '0' is => int(0)
306- strcasecmp of '0' and '-1' is => int(%d)
307- strcasecmp of '0' and '-1' is => int(%d)
308- strcasecmp of '0' and '' is => int(%d)
309- strcasecmp of '0' and '1' is => int(-%d)
310- strcasecmp of '0' and '1' is => int(-%d)
311- strcasecmp of '0' and '' is => int(%d)
312- strcasecmp of '0' and 'string' is => int(-%d)
313
314Iteration 2
315- strcasecmp of '0' and '1' is => int(-%d)
316- strcasecmp of '0' and '0' is => int(0)
317- strcasecmp of '0' and '0' is => int(0)
318- strcasecmp of '0' and '-1' is => int(%d)
319- strcasecmp of '0' and '-1' is => int(%d)
320- strcasecmp of '0' and '' is => int(%d)
321- strcasecmp of '0' and '1' is => int(-%d)
322- strcasecmp of '0' and '1' is => int(-%d)
323- strcasecmp of '0' and '' is => int(%d)
324- strcasecmp of '0' and 'string' is => int(-%d)
325
326Iteration 3
327- strcasecmp of '-1' and '1' is => int(-%d)
328- strcasecmp of '-1' and '0' is => int(-%d)
329- strcasecmp of '-1' and '0' is => int(-%d)
330- strcasecmp of '-1' and '-1' is => int(0)
331- strcasecmp of '-1' and '-1' is => int(0)
332- strcasecmp of '-1' and '' is => int(%d)
333- strcasecmp of '-1' and '1' is => int(-%d)
334- strcasecmp of '-1' and '1' is => int(-%d)
335- strcasecmp of '-1' and '' is => int(%d)
336- strcasecmp of '-1' and 'string' is => int(-%d)
337
338Iteration 4
339- strcasecmp of '-1' and '1' is => int(-%d)
340- strcasecmp of '-1' and '0' is => int(-%d)
341- strcasecmp of '-1' and '0' is => int(-%d)
342- strcasecmp of '-1' and '-1' is => int(0)
343- strcasecmp of '-1' and '-1' is => int(0)
344- strcasecmp of '-1' and '' is => int(%d)
345- strcasecmp of '-1' and '1' is => int(-%d)
346- strcasecmp of '-1' and '1' is => int(-%d)
347- strcasecmp of '-1' and '' is => int(%d)
348- strcasecmp of '-1' and 'string' is => int(-%d)
349
350Iteration 5
351- strcasecmp of '' and '1' is => int(-%d)
352- strcasecmp of '' and '0' is => int(-%d)
353- strcasecmp of '' and '0' is => int(-%d)
354- strcasecmp of '' and '-1' is => int(-%d)
355- strcasecmp of '' and '-1' is => int(-%d)
356- strcasecmp of '' and '' is => int(0)
357- strcasecmp of '' and '1' is => int(-%d)
358- strcasecmp of '' and '1' is => int(-%d)
359- strcasecmp of '' and '' is => int(0)
360- strcasecmp of '' and 'string' is => int(-%d)
361
362Iteration 6
363- strcasecmp of '1' and '1' is => int(0)
364- strcasecmp of '1' and '0' is => int(%d)
365- strcasecmp of '1' and '0' is => int(%d)
366- strcasecmp of '1' and '-1' is => int(%d)
367- strcasecmp of '1' and '-1' is => int(%d)
368- strcasecmp of '1' and '' is => int(%d)
369- strcasecmp of '1' and '1' is => int(0)
370- strcasecmp of '1' and '1' is => int(0)
371- strcasecmp of '1' and '' is => int(%d)
372- strcasecmp of '1' and 'string' is => int(-%d)
373
374Iteration 7
375- strcasecmp of '1' and '1' is => int(0)
376- strcasecmp of '1' and '0' is => int(%d)
377- strcasecmp of '1' and '0' is => int(%d)
378- strcasecmp of '1' and '-1' is => int(%d)
379- strcasecmp of '1' and '-1' is => int(%d)
380- strcasecmp of '1' and '' is => int(%d)
381- strcasecmp of '1' and '1' is => int(0)
382- strcasecmp of '1' and '1' is => int(0)
383- strcasecmp of '1' and '' is => int(%d)
384- strcasecmp of '1' and 'string' is => int(-%d)
385
386Iteration 8
387- strcasecmp of '' and '1' is => int(-%d)
388- strcasecmp of '' and '0' is => int(-%d)
389- strcasecmp of '' and '0' is => int(-%d)
390- strcasecmp of '' and '-1' is => int(-%d)
391- strcasecmp of '' and '-1' is => int(-%d)
392- strcasecmp of '' and '' is => int(0)
393- strcasecmp of '' and '1' is => int(-%d)
394- strcasecmp of '' and '1' is => int(-%d)
395- strcasecmp of '' and '' is => int(0)
396- strcasecmp of '' and 'string' is => int(-%d)
397
398Iteration 9
399- strcasecmp of 'string' and '1' is => int(%d)
400- strcasecmp of 'string' and '0' is => int(%d)
401- strcasecmp of 'string' and '0' is => int(%d)
402- strcasecmp of 'string' and '-1' is => int(%d)
403- strcasecmp of 'string' and '-1' is => int(%d)
404- strcasecmp of 'string' and '' is => int(%d)
405- strcasecmp of 'string' and '1' is => int(%d)
406- strcasecmp of 'string' and '1' is => int(%d)
407- strcasecmp of 'string' and '' is => int(%d)
408- strcasecmp of 'string' and 'string' is => int(0)
409
410*** comparing the strings in an
411Array
412(
413    [0] => 10.5
414    [1] => 1.5
415    [2] => 9.5
416    [3] => 11.5
417    [4] => 100.5
418    [5] => 105
419    [6] => -10.5
420    [7] => 10
421    [8] => 0.5
422)
423
424Iteration 0
425- strcasecmp of '10.5' and '10.5' is => int(0)
426- strcasecmp of '10.5' and '1.5' is => int(%d)
427- strcasecmp of '10.5' and '9.5' is => int(-%d)
428- strcasecmp of '10.5' and '11.5' is => int(-%d)
429- strcasecmp of '10.5' and '100.5' is => int(-%d)
430- strcasecmp of '10.5' and '105' is => int(-%d)
431- strcasecmp of '10.5' and '-10.5' is => int(%d)
432- strcasecmp of '10.5' and '10' is => int(%d)
433- strcasecmp of '10.5' and '0.5' is => int(%d)
434
435Iteration 1
436- strcasecmp of '1.5' and '10.5' is => int(-%d)
437- strcasecmp of '1.5' and '1.5' is => int(0)
438- strcasecmp of '1.5' and '9.5' is => int(-%d)
439- strcasecmp of '1.5' and '11.5' is => int(-%d)
440- strcasecmp of '1.5' and '100.5' is => int(-%d)
441- strcasecmp of '1.5' and '105' is => int(-%d)
442- strcasecmp of '1.5' and '-10.5' is => int(%d)
443- strcasecmp of '1.5' and '10' is => int(-%d)
444- strcasecmp of '1.5' and '0.5' is => int(%d)
445
446Iteration 2
447- strcasecmp of '9.5' and '10.5' is => int(%d)
448- strcasecmp of '9.5' and '1.5' is => int(%d)
449- strcasecmp of '9.5' and '9.5' is => int(0)
450- strcasecmp of '9.5' and '11.5' is => int(%d)
451- strcasecmp of '9.5' and '100.5' is => int(%d)
452- strcasecmp of '9.5' and '105' is => int(%d)
453- strcasecmp of '9.5' and '-10.5' is => int(%d)
454- strcasecmp of '9.5' and '10' is => int(%d)
455- strcasecmp of '9.5' and '0.5' is => int(%d)
456
457Iteration 3
458- strcasecmp of '11.5' and '10.5' is => int(%d)
459- strcasecmp of '11.5' and '1.5' is => int(%d)
460- strcasecmp of '11.5' and '9.5' is => int(-%d)
461- strcasecmp of '11.5' and '11.5' is => int(0)
462- strcasecmp of '11.5' and '100.5' is => int(%d)
463- strcasecmp of '11.5' and '105' is => int(%d)
464- strcasecmp of '11.5' and '-10.5' is => int(%d)
465- strcasecmp of '11.5' and '10' is => int(%d)
466- strcasecmp of '11.5' and '0.5' is => int(%d)
467
468Iteration 4
469- strcasecmp of '100.5' and '10.5' is => int(%d)
470- strcasecmp of '100.5' and '1.5' is => int(%d)
471- strcasecmp of '100.5' and '9.5' is => int(-%d)
472- strcasecmp of '100.5' and '11.5' is => int(-%d)
473- strcasecmp of '100.5' and '100.5' is => int(0)
474- strcasecmp of '100.5' and '105' is => int(-%d)
475- strcasecmp of '100.5' and '-10.5' is => int(%d)
476- strcasecmp of '100.5' and '10' is => int(%d)
477- strcasecmp of '100.5' and '0.5' is => int(%d)
478
479Iteration 5
480- strcasecmp of '105' and '10.5' is => int(%d)
481- strcasecmp of '105' and '1.5' is => int(%d)
482- strcasecmp of '105' and '9.5' is => int(-%d)
483- strcasecmp of '105' and '11.5' is => int(-%d)
484- strcasecmp of '105' and '100.5' is => int(%d)
485- strcasecmp of '105' and '105' is => int(0)
486- strcasecmp of '105' and '-10.5' is => int(%d)
487- strcasecmp of '105' and '10' is => int(%d)
488- strcasecmp of '105' and '0.5' is => int(%d)
489
490Iteration 6
491- strcasecmp of '-10.5' and '10.5' is => int(-%d)
492- strcasecmp of '-10.5' and '1.5' is => int(-%d)
493- strcasecmp of '-10.5' and '9.5' is => int(-%d)
494- strcasecmp of '-10.5' and '11.5' is => int(-%d)
495- strcasecmp of '-10.5' and '100.5' is => int(-%d)
496- strcasecmp of '-10.5' and '105' is => int(-%d)
497- strcasecmp of '-10.5' and '-10.5' is => int(0)
498- strcasecmp of '-10.5' and '10' is => int(-%d)
499- strcasecmp of '-10.5' and '0.5' is => int(-%d)
500
501Iteration 7
502- strcasecmp of '10' and '10.5' is => int(-%d)
503- strcasecmp of '10' and '1.5' is => int(%d)
504- strcasecmp of '10' and '9.5' is => int(-%d)
505- strcasecmp of '10' and '11.5' is => int(-%d)
506- strcasecmp of '10' and '100.5' is => int(-%d)
507- strcasecmp of '10' and '105' is => int(-%d)
508- strcasecmp of '10' and '-10.5' is => int(%d)
509- strcasecmp of '10' and '10' is => int(0)
510- strcasecmp of '10' and '0.5' is => int(%d)
511
512Iteration 8
513- strcasecmp of '0.5' and '10.5' is => int(-%d)
514- strcasecmp of '0.5' and '1.5' is => int(-%d)
515- strcasecmp of '0.5' and '9.5' is => int(-%d)
516- strcasecmp of '0.5' and '11.5' is => int(-%d)
517- strcasecmp of '0.5' and '100.5' is => int(-%d)
518- strcasecmp of '0.5' and '105' is => int(-%d)
519- strcasecmp of '0.5' and '-10.5' is => int(%d)
520- strcasecmp of '0.5' and '10' is => int(-%d)
521- strcasecmp of '0.5' and '0.5' is => int(0)
522
523#### Testing miscellaneous inputs ####
524--- Testing objects ---
525int(-%d)
526
527--- Testing arrays ---
528int(%d)
529int(%d)
530
531--- Testing a longer and heredoc string ---
532int(0)
533int(-%d)
534int(%d)
535
536--- Testing a heredoc null string ---
537int(-%d)
538int(-%d)
539
540--- Testing simple and complex syntax strings ---
541int(-%d)
542int(-%d)
543
544Warning: Undefined variable $strS in %s on line %d
545int(%d)
546int(-%d)
547int(-%d)
548
549--- Testing binary safe and binary chars ---
550int(%d)
551int(-%d)
552int(0)
553int(0)
554int(%d)
555
556--- Comparing long float values ---
557int(0)
558int(-%d)
559int(0)
560Done
561