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, NULL, null, "", 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, NULL)); 85var_dump(strcasecmp($str, "0")); 86 87 88echo "\n--- Testing simple and complex syntax strings ---\n"; 89$str = 'world'; 90 91/* Simple syntax */ 92var_dump(strcasecmp("Hello, world", "$str")); 93var_dump(strcasecmp("Hello, world'S", "$str'S")); 94var_dump(strcasecmp("Hello, worldS", "$strS")); 95 96/* String with curly braces, complex syntax */ 97var_dump(strcasecmp("Hello, worldS", "${str}S")); 98var_dump(strcasecmp("Hello, worldS", "{$str}S")); 99 100echo "\n--- Testing binary safe and binary chars ---\n"; 101var_dump(strcasecmp("Hello\0world", "Hello")); 102var_dump(strcasecmp("Hello\0world", "Helloworld")); 103var_dump(strcasecmp("\x0", "\0")); 104var_dump(strcasecmp("\000", "\0")); 105var_dump(strcasecmp("\x00", "")); 106var_dump(strcasecmp("\x00", NULL)); 107var_dump(strcasecmp("\000", NULL)); 108 109echo "\n--- Comparing long float values ---\n"; 110/* Here two different outputs, which depends on the rounding value 111 before converting to string. Here Precision = 12 */ 112var_dump(strcasecmp(10.55555555555555555555555555, 10.5555555556)); // int(0) 113var_dump(strcasecmp(10.55555555555555555555555555, 10.555555556)); // int(-1) 114var_dump(strcasecmp(10.55555555595555555555555555, 10.555555556)); // int(0) 115 116echo "Done\n"; 117?> 118--EXPECTF-- 119#### Basic and Possible operations #### 120*** comparing the strings in an 121Array 122( 123 [0] => a 124 [1] => A 125 [2] => � 126 [3] => � 127 [4] => 128) 129 130Iteration 0 131- strcasecmp of 'a' and 'a' is => int(0) 132- strcasecmp of 'a' and 'A' is => int(0) 133- strcasecmp of 'a' and '�' is => int(-%d) 134- strcasecmp of 'a' and '�' is => int(-%d) 135- strcasecmp of 'a' and '' is => int(%d) 136 137Iteration 1 138- strcasecmp of 'A' and 'a' is => int(0) 139- strcasecmp of 'A' and 'A' is => int(0) 140- strcasecmp of 'A' and '�' is => int(-%d) 141- strcasecmp of 'A' and '�' is => int(-%d) 142- strcasecmp of 'A' and '' is => int(%d) 143 144Iteration 2 145- strcasecmp of '�' and 'a' is => int(%d) 146- strcasecmp of '�' and 'A' is => int(%d) 147- strcasecmp of '�' and '�' is => int(0) 148- strcasecmp of '�' and '�' is => int(-%d) 149- strcasecmp of '�' and '' is => int(%d) 150 151Iteration 3 152- strcasecmp of '�' and 'a' is => int(%d) 153- strcasecmp of '�' and 'A' is => int(%d) 154- strcasecmp of '�' and '�' is => int(%d) 155- strcasecmp of '�' and '�' is => int(0) 156- strcasecmp of '�' and '' is => int(%d) 157 158Iteration 4 159- strcasecmp of '' and 'a' is => int(-%d) 160- strcasecmp of '' and 'A' is => int(-%d) 161- strcasecmp of '' and '�' is => int(-%d) 162- strcasecmp of '' and '�' is => int(-%d) 163- strcasecmp of '' and '' is => int(0) 164 165*** comparing the strings in an 166Array 167( 168 [0] => acc 169 [1] => Acc 170 [2] => aC 171 [3] => acCc 172 [4] => acd 173 [5] => ?acc 174 [6] => Acc! 175 [7] => $!acc 176 [8] => ;acc 177) 178 179Iteration 0 180- strcasecmp of 'acc' and 'acc' is => int(0) 181- strcasecmp of 'acc' and 'Acc' is => int(0) 182- strcasecmp of 'acc' and 'aC' is => int(%d) 183- strcasecmp of 'acc' and 'acCc' is => int(-%d) 184- strcasecmp of 'acc' and 'acd' is => int(-%d) 185- strcasecmp of 'acc' and '?acc' is => int(%d) 186- strcasecmp of 'acc' and 'Acc!' is => int(-%d) 187- strcasecmp of 'acc' and '$!acc' is => int(%d) 188- strcasecmp of 'acc' and ';acc' is => int(%d) 189 190Iteration 1 191- strcasecmp of 'Acc' and 'acc' is => int(0) 192- strcasecmp of 'Acc' and 'Acc' is => int(0) 193- strcasecmp of 'Acc' and 'aC' is => int(%d) 194- strcasecmp of 'Acc' and 'acCc' is => int(-%d) 195- strcasecmp of 'Acc' and 'acd' is => int(-%d) 196- strcasecmp of 'Acc' and '?acc' is => int(%d) 197- strcasecmp of 'Acc' and 'Acc!' is => int(-%d) 198- strcasecmp of 'Acc' and '$!acc' is => int(%d) 199- strcasecmp of 'Acc' and ';acc' is => int(%d) 200 201Iteration 2 202- strcasecmp of 'aC' and 'acc' is => int(-%d) 203- strcasecmp of 'aC' and 'Acc' is => int(-%d) 204- strcasecmp of 'aC' and 'aC' is => int(0) 205- strcasecmp of 'aC' and 'acCc' is => int(-%d) 206- strcasecmp of 'aC' and 'acd' is => int(-%d) 207- strcasecmp of 'aC' and '?acc' is => int(%d) 208- strcasecmp of 'aC' and 'Acc!' is => int(-%d) 209- strcasecmp of 'aC' and '$!acc' is => int(%d) 210- strcasecmp of 'aC' and ';acc' is => int(%d) 211 212Iteration 3 213- strcasecmp of 'acCc' and 'acc' is => int(%d) 214- strcasecmp of 'acCc' and 'Acc' is => int(%d) 215- strcasecmp of 'acCc' and 'aC' is => int(%d) 216- strcasecmp of 'acCc' and 'acCc' is => int(0) 217- strcasecmp of 'acCc' and 'acd' is => int(-%d) 218- strcasecmp of 'acCc' and '?acc' is => int(%d) 219- strcasecmp of 'acCc' and 'Acc!' is => int(%d) 220- strcasecmp of 'acCc' and '$!acc' is => int(%d) 221- strcasecmp of 'acCc' and ';acc' is => int(%d) 222 223Iteration 4 224- strcasecmp of 'acd' and 'acc' is => int(%d) 225- strcasecmp of 'acd' and 'Acc' is => int(%d) 226- strcasecmp of 'acd' and 'aC' is => int(%d) 227- strcasecmp of 'acd' and 'acCc' is => int(%d) 228- strcasecmp of 'acd' and 'acd' is => int(0) 229- strcasecmp of 'acd' and '?acc' is => int(%d) 230- strcasecmp of 'acd' and 'Acc!' is => int(%d) 231- strcasecmp of 'acd' and '$!acc' is => int(%d) 232- strcasecmp of 'acd' and ';acc' is => int(%d) 233 234Iteration 5 235- strcasecmp of '?acc' and 'acc' is => int(-%d) 236- strcasecmp of '?acc' and 'Acc' is => int(-%d) 237- strcasecmp of '?acc' and 'aC' is => int(-%d) 238- strcasecmp of '?acc' and 'acCc' is => int(-%d) 239- strcasecmp of '?acc' and 'acd' is => int(-%d) 240- strcasecmp of '?acc' and '?acc' is => int(0) 241- strcasecmp of '?acc' and 'Acc!' is => int(-%d) 242- strcasecmp of '?acc' and '$!acc' is => int(%d) 243- strcasecmp of '?acc' and ';acc' is => int(%d) 244 245Iteration 6 246- strcasecmp of 'Acc!' and 'acc' is => int(%d) 247- strcasecmp of 'Acc!' and 'Acc' is => int(%d) 248- strcasecmp of 'Acc!' and 'aC' is => int(%d) 249- strcasecmp of 'Acc!' and 'acCc' is => int(-%d) 250- strcasecmp of 'Acc!' and 'acd' is => int(-%d) 251- strcasecmp of 'Acc!' and '?acc' is => int(%d) 252- strcasecmp of 'Acc!' and 'Acc!' is => int(0) 253- strcasecmp of 'Acc!' and '$!acc' is => int(%d) 254- strcasecmp of 'Acc!' and ';acc' is => int(%d) 255 256Iteration 7 257- strcasecmp of '$!acc' and 'acc' is => int(-%d) 258- strcasecmp of '$!acc' and 'Acc' is => int(-%d) 259- strcasecmp of '$!acc' and 'aC' is => int(-%d) 260- strcasecmp of '$!acc' and 'acCc' is => int(-%d) 261- strcasecmp of '$!acc' and 'acd' is => int(-%d) 262- strcasecmp of '$!acc' and '?acc' is => int(-%d) 263- strcasecmp of '$!acc' and 'Acc!' is => int(-%d) 264- strcasecmp of '$!acc' and '$!acc' is => int(0) 265- strcasecmp of '$!acc' and ';acc' is => int(-%d) 266 267Iteration 8 268- strcasecmp of ';acc' and 'acc' is => int(-%d) 269- strcasecmp of ';acc' and 'Acc' is => int(-%d) 270- strcasecmp of ';acc' and 'aC' is => int(-%d) 271- strcasecmp of ';acc' and 'acCc' is => int(-%d) 272- strcasecmp of ';acc' and 'acd' is => int(-%d) 273- strcasecmp of ';acc' and '?acc' is => int(-%d) 274- strcasecmp of ';acc' and 'Acc!' is => int(-%d) 275- strcasecmp of ';acc' and '$!acc' is => int(%d) 276- strcasecmp of ';acc' and ';acc' is => int(0) 277 278*** comparing the strings in an 279Array 280( 281 [0] => 1 282 [1] => 0 283 [2] => 0 284 [3] => -1 285 [4] => -1 286 [5] => 287 [6] => 288 [7] => 289 [8] => 1 290 [9] => 1 291 [10] => 292 [11] => string 293) 294 295Iteration 0 296- strcasecmp of '1' and '1' is => int(0) 297- strcasecmp of '1' and '0' is => int(%d) 298- strcasecmp of '1' and '0' is => int(%d) 299- strcasecmp of '1' and '-1' is => int(%d) 300- strcasecmp of '1' and '-1' is => int(%d) 301- strcasecmp of '1' and '' is => int(%d) 302- strcasecmp of '1' and '' is => int(%d) 303- strcasecmp of '1' and '' is => int(%d) 304- strcasecmp of '1' and '1' is => int(0) 305- strcasecmp of '1' and '1' is => int(0) 306- strcasecmp of '1' and '' is => int(%d) 307- strcasecmp of '1' and 'string' is => int(-%d) 308 309Iteration 1 310- strcasecmp of '0' and '1' is => int(-%d) 311- strcasecmp of '0' and '0' is => int(0) 312- strcasecmp of '0' and '0' is => int(0) 313- strcasecmp of '0' and '-1' is => int(%d) 314- strcasecmp of '0' and '-1' is => int(%d) 315- strcasecmp of '0' and '' is => int(%d) 316- strcasecmp of '0' and '' is => int(%d) 317- strcasecmp of '0' and '' is => int(%d) 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 'string' is => int(-%d) 322 323Iteration 2 324- strcasecmp of '0' and '1' is => int(-%d) 325- strcasecmp of '0' and '0' is => int(0) 326- strcasecmp of '0' and '0' is => int(0) 327- strcasecmp of '0' and '-1' is => int(%d) 328- strcasecmp of '0' and '-1' is => int(%d) 329- strcasecmp of '0' and '' is => int(%d) 330- strcasecmp of '0' and '' is => int(%d) 331- strcasecmp of '0' and '' is => int(%d) 332- strcasecmp of '0' and '1' is => int(-%d) 333- strcasecmp of '0' and '1' is => int(-%d) 334- strcasecmp of '0' and '' is => int(%d) 335- strcasecmp of '0' and 'string' is => int(-%d) 336 337Iteration 3 338- strcasecmp of '-1' and '1' is => int(-%d) 339- strcasecmp of '-1' and '0' is => int(-%d) 340- strcasecmp of '-1' and '0' is => int(-%d) 341- strcasecmp of '-1' and '-1' is => int(0) 342- strcasecmp of '-1' and '-1' is => int(0) 343- strcasecmp of '-1' and '' is => int(%d) 344- strcasecmp of '-1' and '' is => int(%d) 345- strcasecmp of '-1' and '' is => int(%d) 346- strcasecmp of '-1' and '1' is => int(-%d) 347- strcasecmp of '-1' and '1' is => int(-%d) 348- strcasecmp of '-1' and '' is => int(%d) 349- strcasecmp of '-1' and 'string' is => int(-%d) 350 351Iteration 4 352- strcasecmp of '-1' and '1' is => int(-%d) 353- strcasecmp of '-1' and '0' is => int(-%d) 354- strcasecmp of '-1' and '0' is => int(-%d) 355- strcasecmp of '-1' and '-1' is => int(0) 356- strcasecmp of '-1' and '-1' is => int(0) 357- strcasecmp of '-1' and '' is => int(%d) 358- strcasecmp of '-1' and '' is => int(%d) 359- strcasecmp of '-1' and '' is => int(%d) 360- strcasecmp of '-1' and '1' is => int(-%d) 361- strcasecmp of '-1' and '1' is => int(-%d) 362- strcasecmp of '-1' and '' is => int(%d) 363- strcasecmp of '-1' and 'string' is => int(-%d) 364 365Iteration 5 366- strcasecmp of '' and '1' is => int(-%d) 367- strcasecmp of '' and '0' is => int(-%d) 368- strcasecmp of '' and '0' is => int(-%d) 369- strcasecmp of '' and '-1' is => int(-%d) 370- strcasecmp of '' and '-1' is => int(-%d) 371- strcasecmp of '' and '' is => int(0) 372- strcasecmp of '' and '' is => int(0) 373- strcasecmp of '' and '' is => int(0) 374- strcasecmp of '' and '1' is => int(-%d) 375- strcasecmp of '' and '1' is => int(-%d) 376- strcasecmp of '' and '' is => int(0) 377- strcasecmp of '' and 'string' is => int(-%d) 378 379Iteration 6 380- strcasecmp of '' and '1' is => int(-%d) 381- strcasecmp of '' and '0' is => int(-%d) 382- strcasecmp of '' and '0' is => int(-%d) 383- strcasecmp of '' and '-1' is => int(-%d) 384- strcasecmp of '' and '-1' is => int(-%d) 385- strcasecmp of '' and '' is => int(0) 386- strcasecmp of '' and '' is => int(0) 387- strcasecmp of '' and '' is => int(0) 388- strcasecmp of '' and '1' is => int(-%d) 389- strcasecmp of '' and '1' is => int(-%d) 390- strcasecmp of '' and '' is => int(0) 391- strcasecmp of '' and 'string' is => int(-%d) 392 393Iteration 7 394- strcasecmp of '' and '1' is => int(-%d) 395- strcasecmp of '' and '0' is => int(-%d) 396- strcasecmp of '' and '0' is => int(-%d) 397- strcasecmp of '' and '-1' is => int(-%d) 398- strcasecmp of '' and '-1' is => int(-%d) 399- strcasecmp of '' and '' is => int(0) 400- strcasecmp of '' and '' is => int(0) 401- strcasecmp of '' and '' is => int(0) 402- strcasecmp of '' and '1' is => int(-%d) 403- strcasecmp of '' and '1' is => int(-%d) 404- strcasecmp of '' and '' is => int(0) 405- strcasecmp of '' and 'string' is => int(-%d) 406 407Iteration 8 408- strcasecmp of '1' and '1' is => int(0) 409- strcasecmp of '1' and '0' is => int(%d) 410- strcasecmp of '1' and '0' is => int(%d) 411- strcasecmp of '1' and '-1' is => int(%d) 412- strcasecmp of '1' and '-1' is => int(%d) 413- strcasecmp of '1' and '' is => int(%d) 414- strcasecmp of '1' and '' is => int(%d) 415- strcasecmp of '1' and '' is => int(%d) 416- strcasecmp of '1' and '1' is => int(0) 417- strcasecmp of '1' and '1' is => int(0) 418- strcasecmp of '1' and '' is => int(%d) 419- strcasecmp of '1' and 'string' is => int(-%d) 420 421Iteration 9 422- strcasecmp of '1' and '1' is => int(0) 423- strcasecmp of '1' and '0' is => int(%d) 424- strcasecmp of '1' and '0' is => int(%d) 425- strcasecmp of '1' and '-1' is => int(%d) 426- strcasecmp of '1' and '-1' is => int(%d) 427- strcasecmp of '1' and '' is => int(%d) 428- strcasecmp of '1' and '' is => int(%d) 429- strcasecmp of '1' and '' is => int(%d) 430- strcasecmp of '1' and '1' is => int(0) 431- strcasecmp of '1' and '1' is => int(0) 432- strcasecmp of '1' and '' is => int(%d) 433- strcasecmp of '1' and 'string' is => int(-%d) 434 435Iteration 10 436- strcasecmp of '' and '1' is => int(-%d) 437- strcasecmp of '' and '0' is => int(-%d) 438- strcasecmp of '' and '0' is => int(-%d) 439- strcasecmp of '' and '-1' is => int(-%d) 440- strcasecmp of '' and '-1' is => int(-%d) 441- strcasecmp of '' and '' is => int(0) 442- strcasecmp of '' and '' is => int(0) 443- strcasecmp of '' and '' is => int(0) 444- strcasecmp of '' and '1' is => int(-%d) 445- strcasecmp of '' and '1' is => int(-%d) 446- strcasecmp of '' and '' is => int(0) 447- strcasecmp of '' and 'string' is => int(-%d) 448 449Iteration 11 450- strcasecmp of 'string' and '1' is => int(%d) 451- strcasecmp of 'string' and '0' is => int(%d) 452- strcasecmp of 'string' and '0' is => int(%d) 453- strcasecmp of 'string' and '-1' is => int(%d) 454- strcasecmp of 'string' and '-1' is => int(%d) 455- strcasecmp of 'string' and '' is => int(%d) 456- strcasecmp of 'string' and '' is => int(%d) 457- strcasecmp of 'string' and '' is => int(%d) 458- strcasecmp of 'string' and '1' is => int(%d) 459- strcasecmp of 'string' and '1' is => int(%d) 460- strcasecmp of 'string' and '' is => int(%d) 461- strcasecmp of 'string' and 'string' is => int(0) 462 463*** comparing the strings in an 464Array 465( 466 [0] => 10.5 467 [1] => 1.5 468 [2] => 9.5 469 [3] => 11.5 470 [4] => 100.5 471 [5] => 105 472 [6] => -10.5 473 [7] => 10 474 [8] => 0.5 475) 476 477Iteration 0 478- strcasecmp of '10.5' and '10.5' is => int(0) 479- strcasecmp of '10.5' and '1.5' is => int(%d) 480- strcasecmp of '10.5' and '9.5' is => int(-%d) 481- strcasecmp of '10.5' and '11.5' is => int(-%d) 482- strcasecmp of '10.5' and '100.5' is => int(-%d) 483- strcasecmp of '10.5' and '105' is => int(-%d) 484- strcasecmp of '10.5' and '-10.5' is => int(%d) 485- strcasecmp of '10.5' and '10' is => int(%d) 486- strcasecmp of '10.5' and '0.5' is => int(%d) 487 488Iteration 1 489- strcasecmp of '1.5' and '10.5' is => int(-%d) 490- strcasecmp of '1.5' and '1.5' is => int(0) 491- strcasecmp of '1.5' and '9.5' is => int(-%d) 492- strcasecmp of '1.5' and '11.5' is => int(-%d) 493- strcasecmp of '1.5' and '100.5' is => int(-%d) 494- strcasecmp of '1.5' and '105' is => int(-%d) 495- strcasecmp of '1.5' and '-10.5' is => int(%d) 496- strcasecmp of '1.5' and '10' is => int(-%d) 497- strcasecmp of '1.5' and '0.5' is => int(%d) 498 499Iteration 2 500- strcasecmp of '9.5' and '10.5' is => int(%d) 501- strcasecmp of '9.5' and '1.5' is => int(%d) 502- strcasecmp of '9.5' and '9.5' is => int(0) 503- strcasecmp of '9.5' and '11.5' is => int(%d) 504- strcasecmp of '9.5' and '100.5' is => int(%d) 505- strcasecmp of '9.5' and '105' is => int(%d) 506- strcasecmp of '9.5' and '-10.5' is => int(%d) 507- strcasecmp of '9.5' and '10' is => int(%d) 508- strcasecmp of '9.5' and '0.5' is => int(%d) 509 510Iteration 3 511- strcasecmp of '11.5' and '10.5' is => int(%d) 512- strcasecmp of '11.5' and '1.5' is => int(%d) 513- strcasecmp of '11.5' and '9.5' is => int(-%d) 514- strcasecmp of '11.5' and '11.5' is => int(0) 515- strcasecmp of '11.5' and '100.5' is => int(%d) 516- strcasecmp of '11.5' and '105' is => int(%d) 517- strcasecmp of '11.5' and '-10.5' is => int(%d) 518- strcasecmp of '11.5' and '10' is => int(%d) 519- strcasecmp of '11.5' and '0.5' is => int(%d) 520 521Iteration 4 522- strcasecmp of '100.5' and '10.5' is => int(%d) 523- strcasecmp of '100.5' and '1.5' is => int(%d) 524- strcasecmp of '100.5' and '9.5' is => int(-%d) 525- strcasecmp of '100.5' and '11.5' is => int(-%d) 526- strcasecmp of '100.5' and '100.5' is => int(0) 527- strcasecmp of '100.5' and '105' is => int(-%d) 528- strcasecmp of '100.5' and '-10.5' is => int(%d) 529- strcasecmp of '100.5' and '10' is => int(%d) 530- strcasecmp of '100.5' and '0.5' is => int(%d) 531 532Iteration 5 533- strcasecmp of '105' and '10.5' is => int(%d) 534- strcasecmp of '105' and '1.5' is => int(%d) 535- strcasecmp of '105' and '9.5' is => int(-%d) 536- strcasecmp of '105' and '11.5' is => int(-%d) 537- strcasecmp of '105' and '100.5' is => int(%d) 538- strcasecmp of '105' and '105' is => int(0) 539- strcasecmp of '105' and '-10.5' is => int(%d) 540- strcasecmp of '105' and '10' is => int(%d) 541- strcasecmp of '105' and '0.5' is => int(%d) 542 543Iteration 6 544- strcasecmp of '-10.5' and '10.5' is => int(-%d) 545- strcasecmp of '-10.5' and '1.5' is => int(-%d) 546- strcasecmp of '-10.5' and '9.5' is => int(-%d) 547- strcasecmp of '-10.5' and '11.5' is => int(-%d) 548- strcasecmp of '-10.5' and '100.5' is => int(-%d) 549- strcasecmp of '-10.5' and '105' is => int(-%d) 550- strcasecmp of '-10.5' and '-10.5' is => int(0) 551- strcasecmp of '-10.5' and '10' is => int(-%d) 552- strcasecmp of '-10.5' and '0.5' is => int(-%d) 553 554Iteration 7 555- strcasecmp of '10' and '10.5' is => int(-%d) 556- strcasecmp of '10' and '1.5' is => int(%d) 557- strcasecmp of '10' and '9.5' is => int(-%d) 558- strcasecmp of '10' and '11.5' is => int(-%d) 559- strcasecmp of '10' and '100.5' is => int(-%d) 560- strcasecmp of '10' and '105' is => int(-%d) 561- strcasecmp of '10' and '-10.5' is => int(%d) 562- strcasecmp of '10' and '10' is => int(0) 563- strcasecmp of '10' and '0.5' is => int(%d) 564 565Iteration 8 566- strcasecmp of '0.5' and '10.5' is => int(-%d) 567- strcasecmp of '0.5' and '1.5' is => int(-%d) 568- strcasecmp of '0.5' and '9.5' is => int(-%d) 569- strcasecmp of '0.5' and '11.5' is => int(-%d) 570- strcasecmp of '0.5' and '100.5' is => int(-%d) 571- strcasecmp of '0.5' and '105' is => int(-%d) 572- strcasecmp of '0.5' and '-10.5' is => int(%d) 573- strcasecmp of '0.5' and '10' is => int(-%d) 574- strcasecmp of '0.5' and '0.5' is => int(0) 575 576#### Testing miscellaneous inputs #### 577--- Testing objects --- 578int(-%d) 579 580--- Testing arrays --- 581int(%d) 582int(%d) 583 584--- Testing a longer and heredoc string --- 585int(0) 586int(-%d) 587int(%d) 588 589--- Testing a heredoc null string --- 590int(-%d) 591int(0) 592int(-%d) 593 594--- Testing simple and complex syntax strings --- 595int(-%d) 596int(-%d) 597 598Warning: Undefined variable $strS in %s on line %d 599int(%d) 600int(-%d) 601int(-%d) 602 603--- Testing binary safe and binary chars --- 604int(%d) 605int(-%d) 606int(0) 607int(0) 608int(%d) 609int(%d) 610int(%d) 611 612--- Comparing long float values --- 613int(0) 614int(-%d) 615int(0) 616Done 617