1--TEST-- 2Test fscanf() function: usage variations - float formats with float values 3--FILE-- 4<?php 5 6/* 7 Prototype: mixed fscanf ( resource $handle, string $format [, mixed &$...] ); 8 Description: Parses input from a file according to a format 9*/ 10 11/* Test fscanf() to scan different float values using different format types */ 12 13$file_path = dirname(__FILE__); 14 15echo "*** Test fscanf(): different float format types with different float values ***\n"; 16 17// create a file 18$filename = "$file_path/fscanf_variation8.tmp"; 19$file_handle = fopen($filename, "w"); 20if($file_handle == false) 21 exit("Error:failed to open file $filename"); 22 23// different valid float vlaues 24$valid_floats = array( 25-2147483649, // float value 26 2147483648, // float value 27 -0x80000001, // float value, beyond max negative int 28 0x800000001, // float value, beyond max positive int 29 020000000001, // float value, beyond max positive int 30 -020000000001, // float value, beyond max negative int 31 0.0, 32 -0.1, 33 10.0000000000000000005, 34 10.5e+5, 35 1e5, 36 -1e5, 37 1e-5, 38 -1e-5, 39 1e+5, 40 -1e+5, 41 1E5, 42 -1E5, 43 1E+5, 44 -1E+5, 45 1E-5, 46 -1E-5, 47 .5e+7, 48 -.5e+7, 49 .6e-19, 50 -.6e-19, 51 .05E+44, 52 -.05E+44, 53 .0034E-30, 54 -.0034E-30 55); 56 57// various float formats 58$float_formats = array( "%f", 59 "%hf", "%lf", "%Lf", 60 " %f", "%f ", "% f", 61 "\t%f", "\n%f", "%4f", 62 "%30f", "%[0-9]", "%*f", 63 ); 64 65$counter = 1; 66 67// writing to the file 68foreach($valid_floats as $float_value) { 69 @fprintf($file_handle, $float_value); 70 @fprintf($file_handle, "\n"); 71} 72// closing the file 73fclose($file_handle); 74 75// opening the file for reading 76$file_handle = fopen($filename, "r"); 77if($file_handle == false) { 78 exit("Error:failed to open file $filename"); 79} 80 81$counter = 1; 82// reading the values from file using different float formats 83foreach($float_formats as $float_format) { 84 // rewind the file so that for every foreach iteration the file pointer starts from bof 85 rewind($file_handle); 86 echo "\n-- iteration $counter --\n"; 87 while( !feof($file_handle) ) { 88 var_dump( fscanf($file_handle,$float_format) ); 89 } 90 $counter++; 91} 92 93echo "\n*** Done ***"; 94?> 95--CLEAN-- 96<?php 97$file_path = dirname(__FILE__); 98$filename = "$file_path/fscanf_variation8.tmp"; 99unlink($filename); 100?> 101--EXPECTF-- 102*** Test fscanf(): different float format types with different float values *** 103 104-- iteration 1 -- 105array(1) { 106 [0]=> 107 float(-2147483649) 108} 109array(1) { 110 [0]=> 111 float(2147483648) 112} 113array(1) { 114 [0]=> 115 float(-2147483649) 116} 117array(1) { 118 [0]=> 119 float(34359738369) 120} 121array(1) { 122 [0]=> 123 float(2147483649) 124} 125array(1) { 126 [0]=> 127 float(-2147483649) 128} 129array(1) { 130 [0]=> 131 float(0) 132} 133array(1) { 134 [0]=> 135 float(-0.1) 136} 137array(1) { 138 [0]=> 139 float(10) 140} 141array(1) { 142 [0]=> 143 float(1050000) 144} 145array(1) { 146 [0]=> 147 float(100000) 148} 149array(1) { 150 [0]=> 151 float(-100000) 152} 153array(1) { 154 [0]=> 155 float(1.0E-5) 156} 157array(1) { 158 [0]=> 159 float(-1.0E-5) 160} 161array(1) { 162 [0]=> 163 float(100000) 164} 165array(1) { 166 [0]=> 167 float(-100000) 168} 169array(1) { 170 [0]=> 171 float(100000) 172} 173array(1) { 174 [0]=> 175 float(-100000) 176} 177array(1) { 178 [0]=> 179 float(100000) 180} 181array(1) { 182 [0]=> 183 float(-100000) 184} 185array(1) { 186 [0]=> 187 float(1.0E-5) 188} 189array(1) { 190 [0]=> 191 float(-1.0E-5) 192} 193array(1) { 194 [0]=> 195 float(5000000) 196} 197array(1) { 198 [0]=> 199 float(-5000000) 200} 201array(1) { 202 [0]=> 203 float(6.0E-20) 204} 205array(1) { 206 [0]=> 207 float(-6.0E-20) 208} 209array(1) { 210 [0]=> 211 float(5.0E+42) 212} 213array(1) { 214 [0]=> 215 float(-5.0E+42) 216} 217array(1) { 218 [0]=> 219 float(3.4E-33) 220} 221array(1) { 222 [0]=> 223 float(-3.4E-33) 224} 225bool(false) 226 227-- iteration 2 -- 228array(1) { 229 [0]=> 230 float(-2147483649) 231} 232array(1) { 233 [0]=> 234 float(2147483648) 235} 236array(1) { 237 [0]=> 238 float(-2147483649) 239} 240array(1) { 241 [0]=> 242 float(34359738369) 243} 244array(1) { 245 [0]=> 246 float(2147483649) 247} 248array(1) { 249 [0]=> 250 float(-2147483649) 251} 252array(1) { 253 [0]=> 254 float(0) 255} 256array(1) { 257 [0]=> 258 float(-0.1) 259} 260array(1) { 261 [0]=> 262 float(10) 263} 264array(1) { 265 [0]=> 266 float(1050000) 267} 268array(1) { 269 [0]=> 270 float(100000) 271} 272array(1) { 273 [0]=> 274 float(-100000) 275} 276array(1) { 277 [0]=> 278 float(1.0E-5) 279} 280array(1) { 281 [0]=> 282 float(-1.0E-5) 283} 284array(1) { 285 [0]=> 286 float(100000) 287} 288array(1) { 289 [0]=> 290 float(-100000) 291} 292array(1) { 293 [0]=> 294 float(100000) 295} 296array(1) { 297 [0]=> 298 float(-100000) 299} 300array(1) { 301 [0]=> 302 float(100000) 303} 304array(1) { 305 [0]=> 306 float(-100000) 307} 308array(1) { 309 [0]=> 310 float(1.0E-5) 311} 312array(1) { 313 [0]=> 314 float(-1.0E-5) 315} 316array(1) { 317 [0]=> 318 float(5000000) 319} 320array(1) { 321 [0]=> 322 float(-5000000) 323} 324array(1) { 325 [0]=> 326 float(6.0E-20) 327} 328array(1) { 329 [0]=> 330 float(-6.0E-20) 331} 332array(1) { 333 [0]=> 334 float(5.0E+42) 335} 336array(1) { 337 [0]=> 338 float(-5.0E+42) 339} 340array(1) { 341 [0]=> 342 float(3.4E-33) 343} 344array(1) { 345 [0]=> 346 float(-3.4E-33) 347} 348bool(false) 349 350-- iteration 3 -- 351array(1) { 352 [0]=> 353 float(-2147483649) 354} 355array(1) { 356 [0]=> 357 float(2147483648) 358} 359array(1) { 360 [0]=> 361 float(-2147483649) 362} 363array(1) { 364 [0]=> 365 float(34359738369) 366} 367array(1) { 368 [0]=> 369 float(2147483649) 370} 371array(1) { 372 [0]=> 373 float(-2147483649) 374} 375array(1) { 376 [0]=> 377 float(0) 378} 379array(1) { 380 [0]=> 381 float(-0.1) 382} 383array(1) { 384 [0]=> 385 float(10) 386} 387array(1) { 388 [0]=> 389 float(1050000) 390} 391array(1) { 392 [0]=> 393 float(100000) 394} 395array(1) { 396 [0]=> 397 float(-100000) 398} 399array(1) { 400 [0]=> 401 float(1.0E-5) 402} 403array(1) { 404 [0]=> 405 float(-1.0E-5) 406} 407array(1) { 408 [0]=> 409 float(100000) 410} 411array(1) { 412 [0]=> 413 float(-100000) 414} 415array(1) { 416 [0]=> 417 float(100000) 418} 419array(1) { 420 [0]=> 421 float(-100000) 422} 423array(1) { 424 [0]=> 425 float(100000) 426} 427array(1) { 428 [0]=> 429 float(-100000) 430} 431array(1) { 432 [0]=> 433 float(1.0E-5) 434} 435array(1) { 436 [0]=> 437 float(-1.0E-5) 438} 439array(1) { 440 [0]=> 441 float(5000000) 442} 443array(1) { 444 [0]=> 445 float(-5000000) 446} 447array(1) { 448 [0]=> 449 float(6.0E-20) 450} 451array(1) { 452 [0]=> 453 float(-6.0E-20) 454} 455array(1) { 456 [0]=> 457 float(5.0E+42) 458} 459array(1) { 460 [0]=> 461 float(-5.0E+42) 462} 463array(1) { 464 [0]=> 465 float(3.4E-33) 466} 467array(1) { 468 [0]=> 469 float(-3.4E-33) 470} 471bool(false) 472 473-- iteration 4 -- 474array(1) { 475 [0]=> 476 float(-2147483649) 477} 478array(1) { 479 [0]=> 480 float(2147483648) 481} 482array(1) { 483 [0]=> 484 float(-2147483649) 485} 486array(1) { 487 [0]=> 488 float(34359738369) 489} 490array(1) { 491 [0]=> 492 float(2147483649) 493} 494array(1) { 495 [0]=> 496 float(-2147483649) 497} 498array(1) { 499 [0]=> 500 float(0) 501} 502array(1) { 503 [0]=> 504 float(-0.1) 505} 506array(1) { 507 [0]=> 508 float(10) 509} 510array(1) { 511 [0]=> 512 float(1050000) 513} 514array(1) { 515 [0]=> 516 float(100000) 517} 518array(1) { 519 [0]=> 520 float(-100000) 521} 522array(1) { 523 [0]=> 524 float(1.0E-5) 525} 526array(1) { 527 [0]=> 528 float(-1.0E-5) 529} 530array(1) { 531 [0]=> 532 float(100000) 533} 534array(1) { 535 [0]=> 536 float(-100000) 537} 538array(1) { 539 [0]=> 540 float(100000) 541} 542array(1) { 543 [0]=> 544 float(-100000) 545} 546array(1) { 547 [0]=> 548 float(100000) 549} 550array(1) { 551 [0]=> 552 float(-100000) 553} 554array(1) { 555 [0]=> 556 float(1.0E-5) 557} 558array(1) { 559 [0]=> 560 float(-1.0E-5) 561} 562array(1) { 563 [0]=> 564 float(5000000) 565} 566array(1) { 567 [0]=> 568 float(-5000000) 569} 570array(1) { 571 [0]=> 572 float(6.0E-20) 573} 574array(1) { 575 [0]=> 576 float(-6.0E-20) 577} 578array(1) { 579 [0]=> 580 float(5.0E+42) 581} 582array(1) { 583 [0]=> 584 float(-5.0E+42) 585} 586array(1) { 587 [0]=> 588 float(3.4E-33) 589} 590array(1) { 591 [0]=> 592 float(-3.4E-33) 593} 594bool(false) 595 596-- iteration 5 -- 597array(1) { 598 [0]=> 599 float(-2147483649) 600} 601array(1) { 602 [0]=> 603 float(2147483648) 604} 605array(1) { 606 [0]=> 607 float(-2147483649) 608} 609array(1) { 610 [0]=> 611 float(34359738369) 612} 613array(1) { 614 [0]=> 615 float(2147483649) 616} 617array(1) { 618 [0]=> 619 float(-2147483649) 620} 621array(1) { 622 [0]=> 623 float(0) 624} 625array(1) { 626 [0]=> 627 float(-0.1) 628} 629array(1) { 630 [0]=> 631 float(10) 632} 633array(1) { 634 [0]=> 635 float(1050000) 636} 637array(1) { 638 [0]=> 639 float(100000) 640} 641array(1) { 642 [0]=> 643 float(-100000) 644} 645array(1) { 646 [0]=> 647 float(1.0E-5) 648} 649array(1) { 650 [0]=> 651 float(-1.0E-5) 652} 653array(1) { 654 [0]=> 655 float(100000) 656} 657array(1) { 658 [0]=> 659 float(-100000) 660} 661array(1) { 662 [0]=> 663 float(100000) 664} 665array(1) { 666 [0]=> 667 float(-100000) 668} 669array(1) { 670 [0]=> 671 float(100000) 672} 673array(1) { 674 [0]=> 675 float(-100000) 676} 677array(1) { 678 [0]=> 679 float(1.0E-5) 680} 681array(1) { 682 [0]=> 683 float(-1.0E-5) 684} 685array(1) { 686 [0]=> 687 float(5000000) 688} 689array(1) { 690 [0]=> 691 float(-5000000) 692} 693array(1) { 694 [0]=> 695 float(6.0E-20) 696} 697array(1) { 698 [0]=> 699 float(-6.0E-20) 700} 701array(1) { 702 [0]=> 703 float(5.0E+42) 704} 705array(1) { 706 [0]=> 707 float(-5.0E+42) 708} 709array(1) { 710 [0]=> 711 float(3.4E-33) 712} 713array(1) { 714 [0]=> 715 float(-3.4E-33) 716} 717bool(false) 718 719-- iteration 6 -- 720array(1) { 721 [0]=> 722 float(-2147483649) 723} 724array(1) { 725 [0]=> 726 float(2147483648) 727} 728array(1) { 729 [0]=> 730 float(-2147483649) 731} 732array(1) { 733 [0]=> 734 float(34359738369) 735} 736array(1) { 737 [0]=> 738 float(2147483649) 739} 740array(1) { 741 [0]=> 742 float(-2147483649) 743} 744array(1) { 745 [0]=> 746 float(0) 747} 748array(1) { 749 [0]=> 750 float(-0.1) 751} 752array(1) { 753 [0]=> 754 float(10) 755} 756array(1) { 757 [0]=> 758 float(1050000) 759} 760array(1) { 761 [0]=> 762 float(100000) 763} 764array(1) { 765 [0]=> 766 float(-100000) 767} 768array(1) { 769 [0]=> 770 float(1.0E-5) 771} 772array(1) { 773 [0]=> 774 float(-1.0E-5) 775} 776array(1) { 777 [0]=> 778 float(100000) 779} 780array(1) { 781 [0]=> 782 float(-100000) 783} 784array(1) { 785 [0]=> 786 float(100000) 787} 788array(1) { 789 [0]=> 790 float(-100000) 791} 792array(1) { 793 [0]=> 794 float(100000) 795} 796array(1) { 797 [0]=> 798 float(-100000) 799} 800array(1) { 801 [0]=> 802 float(1.0E-5) 803} 804array(1) { 805 [0]=> 806 float(-1.0E-5) 807} 808array(1) { 809 [0]=> 810 float(5000000) 811} 812array(1) { 813 [0]=> 814 float(-5000000) 815} 816array(1) { 817 [0]=> 818 float(6.0E-20) 819} 820array(1) { 821 [0]=> 822 float(-6.0E-20) 823} 824array(1) { 825 [0]=> 826 float(5.0E+42) 827} 828array(1) { 829 [0]=> 830 float(-5.0E+42) 831} 832array(1) { 833 [0]=> 834 float(3.4E-33) 835} 836array(1) { 837 [0]=> 838 float(-3.4E-33) 839} 840bool(false) 841 842-- iteration 7 -- 843 844Warning: fscanf(): Bad scan conversion character " " in %s on line %d 845NULL 846 847Warning: fscanf(): Bad scan conversion character " " in %s on line %d 848NULL 849 850Warning: fscanf(): Bad scan conversion character " " in %s on line %d 851NULL 852 853Warning: fscanf(): Bad scan conversion character " " in %s on line %d 854NULL 855 856Warning: fscanf(): Bad scan conversion character " " in %s on line %d 857NULL 858 859Warning: fscanf(): Bad scan conversion character " " in %s on line %d 860NULL 861 862Warning: fscanf(): Bad scan conversion character " " in %s on line %d 863NULL 864 865Warning: fscanf(): Bad scan conversion character " " in %s on line %d 866NULL 867 868Warning: fscanf(): Bad scan conversion character " " in %s on line %d 869NULL 870 871Warning: fscanf(): Bad scan conversion character " " in %s on line %d 872NULL 873 874Warning: fscanf(): Bad scan conversion character " " in %s on line %d 875NULL 876 877Warning: fscanf(): Bad scan conversion character " " in %s on line %d 878NULL 879 880Warning: fscanf(): Bad scan conversion character " " in %s on line %d 881NULL 882 883Warning: fscanf(): Bad scan conversion character " " in %s on line %d 884NULL 885 886Warning: fscanf(): Bad scan conversion character " " in %s on line %d 887NULL 888 889Warning: fscanf(): Bad scan conversion character " " in %s on line %d 890NULL 891 892Warning: fscanf(): Bad scan conversion character " " in %s on line %d 893NULL 894 895Warning: fscanf(): Bad scan conversion character " " in %s on line %d 896NULL 897 898Warning: fscanf(): Bad scan conversion character " " in %s on line %d 899NULL 900 901Warning: fscanf(): Bad scan conversion character " " in %s on line %d 902NULL 903 904Warning: fscanf(): Bad scan conversion character " " in %s on line %d 905NULL 906 907Warning: fscanf(): Bad scan conversion character " " in %s on line %d 908NULL 909 910Warning: fscanf(): Bad scan conversion character " " in %s on line %d 911NULL 912 913Warning: fscanf(): Bad scan conversion character " " in %s on line %d 914NULL 915 916Warning: fscanf(): Bad scan conversion character " " in %s on line %d 917NULL 918 919Warning: fscanf(): Bad scan conversion character " " in %s on line %d 920NULL 921 922Warning: fscanf(): Bad scan conversion character " " in %s on line %d 923NULL 924 925Warning: fscanf(): Bad scan conversion character " " in %s on line %d 926NULL 927 928Warning: fscanf(): Bad scan conversion character " " in %s on line %d 929NULL 930 931Warning: fscanf(): Bad scan conversion character " " in %s on line %d 932NULL 933bool(false) 934 935-- iteration 8 -- 936array(1) { 937 [0]=> 938 float(-2147483649) 939} 940array(1) { 941 [0]=> 942 float(2147483648) 943} 944array(1) { 945 [0]=> 946 float(-2147483649) 947} 948array(1) { 949 [0]=> 950 float(34359738369) 951} 952array(1) { 953 [0]=> 954 float(2147483649) 955} 956array(1) { 957 [0]=> 958 float(-2147483649) 959} 960array(1) { 961 [0]=> 962 float(0) 963} 964array(1) { 965 [0]=> 966 float(-0.1) 967} 968array(1) { 969 [0]=> 970 float(10) 971} 972array(1) { 973 [0]=> 974 float(1050000) 975} 976array(1) { 977 [0]=> 978 float(100000) 979} 980array(1) { 981 [0]=> 982 float(-100000) 983} 984array(1) { 985 [0]=> 986 float(1.0E-5) 987} 988array(1) { 989 [0]=> 990 float(-1.0E-5) 991} 992array(1) { 993 [0]=> 994 float(100000) 995} 996array(1) { 997 [0]=> 998 float(-100000) 999} 1000array(1) { 1001 [0]=> 1002 float(100000) 1003} 1004array(1) { 1005 [0]=> 1006 float(-100000) 1007} 1008array(1) { 1009 [0]=> 1010 float(100000) 1011} 1012array(1) { 1013 [0]=> 1014 float(-100000) 1015} 1016array(1) { 1017 [0]=> 1018 float(1.0E-5) 1019} 1020array(1) { 1021 [0]=> 1022 float(-1.0E-5) 1023} 1024array(1) { 1025 [0]=> 1026 float(5000000) 1027} 1028array(1) { 1029 [0]=> 1030 float(-5000000) 1031} 1032array(1) { 1033 [0]=> 1034 float(6.0E-20) 1035} 1036array(1) { 1037 [0]=> 1038 float(-6.0E-20) 1039} 1040array(1) { 1041 [0]=> 1042 float(5.0E+42) 1043} 1044array(1) { 1045 [0]=> 1046 float(-5.0E+42) 1047} 1048array(1) { 1049 [0]=> 1050 float(3.4E-33) 1051} 1052array(1) { 1053 [0]=> 1054 float(-3.4E-33) 1055} 1056bool(false) 1057 1058-- iteration 9 -- 1059array(1) { 1060 [0]=> 1061 float(-2147483649) 1062} 1063array(1) { 1064 [0]=> 1065 float(2147483648) 1066} 1067array(1) { 1068 [0]=> 1069 float(-2147483649) 1070} 1071array(1) { 1072 [0]=> 1073 float(34359738369) 1074} 1075array(1) { 1076 [0]=> 1077 float(2147483649) 1078} 1079array(1) { 1080 [0]=> 1081 float(-2147483649) 1082} 1083array(1) { 1084 [0]=> 1085 float(0) 1086} 1087array(1) { 1088 [0]=> 1089 float(-0.1) 1090} 1091array(1) { 1092 [0]=> 1093 float(10) 1094} 1095array(1) { 1096 [0]=> 1097 float(1050000) 1098} 1099array(1) { 1100 [0]=> 1101 float(100000) 1102} 1103array(1) { 1104 [0]=> 1105 float(-100000) 1106} 1107array(1) { 1108 [0]=> 1109 float(1.0E-5) 1110} 1111array(1) { 1112 [0]=> 1113 float(-1.0E-5) 1114} 1115array(1) { 1116 [0]=> 1117 float(100000) 1118} 1119array(1) { 1120 [0]=> 1121 float(-100000) 1122} 1123array(1) { 1124 [0]=> 1125 float(100000) 1126} 1127array(1) { 1128 [0]=> 1129 float(-100000) 1130} 1131array(1) { 1132 [0]=> 1133 float(100000) 1134} 1135array(1) { 1136 [0]=> 1137 float(-100000) 1138} 1139array(1) { 1140 [0]=> 1141 float(1.0E-5) 1142} 1143array(1) { 1144 [0]=> 1145 float(-1.0E-5) 1146} 1147array(1) { 1148 [0]=> 1149 float(5000000) 1150} 1151array(1) { 1152 [0]=> 1153 float(-5000000) 1154} 1155array(1) { 1156 [0]=> 1157 float(6.0E-20) 1158} 1159array(1) { 1160 [0]=> 1161 float(-6.0E-20) 1162} 1163array(1) { 1164 [0]=> 1165 float(5.0E+42) 1166} 1167array(1) { 1168 [0]=> 1169 float(-5.0E+42) 1170} 1171array(1) { 1172 [0]=> 1173 float(3.4E-33) 1174} 1175array(1) { 1176 [0]=> 1177 float(-3.4E-33) 1178} 1179bool(false) 1180 1181-- iteration 10 -- 1182array(1) { 1183 [0]=> 1184 float(-214) 1185} 1186array(1) { 1187 [0]=> 1188 float(2147) 1189} 1190array(1) { 1191 [0]=> 1192 float(-214) 1193} 1194array(1) { 1195 [0]=> 1196 float(3435) 1197} 1198array(1) { 1199 [0]=> 1200 float(2147) 1201} 1202array(1) { 1203 [0]=> 1204 float(-214) 1205} 1206array(1) { 1207 [0]=> 1208 float(0) 1209} 1210array(1) { 1211 [0]=> 1212 float(-0.1) 1213} 1214array(1) { 1215 [0]=> 1216 float(10) 1217} 1218array(1) { 1219 [0]=> 1220 float(1050) 1221} 1222array(1) { 1223 [0]=> 1224 float(1000) 1225} 1226array(1) { 1227 [0]=> 1228 float(-100) 1229} 1230array(1) { 1231 [0]=> 1232 float(1) 1233} 1234array(1) { 1235 [0]=> 1236 float(-1) 1237} 1238array(1) { 1239 [0]=> 1240 float(1000) 1241} 1242array(1) { 1243 [0]=> 1244 float(-100) 1245} 1246array(1) { 1247 [0]=> 1248 float(1000) 1249} 1250array(1) { 1251 [0]=> 1252 float(-100) 1253} 1254array(1) { 1255 [0]=> 1256 float(1000) 1257} 1258array(1) { 1259 [0]=> 1260 float(-100) 1261} 1262array(1) { 1263 [0]=> 1264 float(1) 1265} 1266array(1) { 1267 [0]=> 1268 float(-1) 1269} 1270array(1) { 1271 [0]=> 1272 float(5000) 1273} 1274array(1) { 1275 [0]=> 1276 float(-500) 1277} 1278array(1) { 1279 [0]=> 1280 float(6) 1281} 1282array(1) { 1283 [0]=> 1284 float(-6) 1285} 1286array(1) { 1287 [0]=> 1288 float(5) 1289} 1290array(1) { 1291 [0]=> 1292 float(-5) 1293} 1294array(1) { 1295 [0]=> 1296 float(3.4) 1297} 1298array(1) { 1299 [0]=> 1300 float(-3.4) 1301} 1302bool(false) 1303 1304-- iteration 11 -- 1305array(1) { 1306 [0]=> 1307 float(-2147483649) 1308} 1309array(1) { 1310 [0]=> 1311 float(2147483648) 1312} 1313array(1) { 1314 [0]=> 1315 float(-2147483649) 1316} 1317array(1) { 1318 [0]=> 1319 float(34359738369) 1320} 1321array(1) { 1322 [0]=> 1323 float(2147483649) 1324} 1325array(1) { 1326 [0]=> 1327 float(-2147483649) 1328} 1329array(1) { 1330 [0]=> 1331 float(0) 1332} 1333array(1) { 1334 [0]=> 1335 float(-0.1) 1336} 1337array(1) { 1338 [0]=> 1339 float(10) 1340} 1341array(1) { 1342 [0]=> 1343 float(1050000) 1344} 1345array(1) { 1346 [0]=> 1347 float(100000) 1348} 1349array(1) { 1350 [0]=> 1351 float(-100000) 1352} 1353array(1) { 1354 [0]=> 1355 float(1.0E-5) 1356} 1357array(1) { 1358 [0]=> 1359 float(-1.0E-5) 1360} 1361array(1) { 1362 [0]=> 1363 float(100000) 1364} 1365array(1) { 1366 [0]=> 1367 float(-100000) 1368} 1369array(1) { 1370 [0]=> 1371 float(100000) 1372} 1373array(1) { 1374 [0]=> 1375 float(-100000) 1376} 1377array(1) { 1378 [0]=> 1379 float(100000) 1380} 1381array(1) { 1382 [0]=> 1383 float(-100000) 1384} 1385array(1) { 1386 [0]=> 1387 float(1.0E-5) 1388} 1389array(1) { 1390 [0]=> 1391 float(-1.0E-5) 1392} 1393array(1) { 1394 [0]=> 1395 float(5000000) 1396} 1397array(1) { 1398 [0]=> 1399 float(-5000000) 1400} 1401array(1) { 1402 [0]=> 1403 float(6.0E-20) 1404} 1405array(1) { 1406 [0]=> 1407 float(-6.0E-20) 1408} 1409array(1) { 1410 [0]=> 1411 float(5.0E+42) 1412} 1413array(1) { 1414 [0]=> 1415 float(-5.0E+42) 1416} 1417array(1) { 1418 [0]=> 1419 float(3.4E-33) 1420} 1421array(1) { 1422 [0]=> 1423 float(-3.4E-33) 1424} 1425bool(false) 1426 1427-- iteration 12 -- 1428array(1) { 1429 [0]=> 1430 NULL 1431} 1432array(1) { 1433 [0]=> 1434 string(10) "2147483648" 1435} 1436array(1) { 1437 [0]=> 1438 NULL 1439} 1440array(1) { 1441 [0]=> 1442 string(11) "34359738369" 1443} 1444array(1) { 1445 [0]=> 1446 string(10) "2147483649" 1447} 1448array(1) { 1449 [0]=> 1450 NULL 1451} 1452array(1) { 1453 [0]=> 1454 string(1) "0" 1455} 1456array(1) { 1457 [0]=> 1458 NULL 1459} 1460array(1) { 1461 [0]=> 1462 string(2) "10" 1463} 1464array(1) { 1465 [0]=> 1466 string(7) "1050000" 1467} 1468array(1) { 1469 [0]=> 1470 string(6) "100000" 1471} 1472array(1) { 1473 [0]=> 1474 NULL 1475} 1476array(1) { 1477 [0]=> 1478 string(1) "1" 1479} 1480array(1) { 1481 [0]=> 1482 NULL 1483} 1484array(1) { 1485 [0]=> 1486 string(6) "100000" 1487} 1488array(1) { 1489 [0]=> 1490 NULL 1491} 1492array(1) { 1493 [0]=> 1494 string(6) "100000" 1495} 1496array(1) { 1497 [0]=> 1498 NULL 1499} 1500array(1) { 1501 [0]=> 1502 string(6) "100000" 1503} 1504array(1) { 1505 [0]=> 1506 NULL 1507} 1508array(1) { 1509 [0]=> 1510 string(1) "1" 1511} 1512array(1) { 1513 [0]=> 1514 NULL 1515} 1516array(1) { 1517 [0]=> 1518 string(7) "5000000" 1519} 1520array(1) { 1521 [0]=> 1522 NULL 1523} 1524array(1) { 1525 [0]=> 1526 string(1) "6" 1527} 1528array(1) { 1529 [0]=> 1530 NULL 1531} 1532array(1) { 1533 [0]=> 1534 string(1) "5" 1535} 1536array(1) { 1537 [0]=> 1538 NULL 1539} 1540array(1) { 1541 [0]=> 1542 string(1) "3" 1543} 1544array(1) { 1545 [0]=> 1546 NULL 1547} 1548bool(false) 1549 1550-- iteration 13 -- 1551array(0) { 1552} 1553array(0) { 1554} 1555array(0) { 1556} 1557array(0) { 1558} 1559array(0) { 1560} 1561array(0) { 1562} 1563array(0) { 1564} 1565array(0) { 1566} 1567array(0) { 1568} 1569array(0) { 1570} 1571array(0) { 1572} 1573array(0) { 1574} 1575array(0) { 1576} 1577array(0) { 1578} 1579array(0) { 1580} 1581array(0) { 1582} 1583array(0) { 1584} 1585array(0) { 1586} 1587array(0) { 1588} 1589array(0) { 1590} 1591array(0) { 1592} 1593array(0) { 1594} 1595array(0) { 1596} 1597array(0) { 1598} 1599array(0) { 1600} 1601array(0) { 1602} 1603array(0) { 1604} 1605array(0) { 1606} 1607array(0) { 1608} 1609array(0) { 1610} 1611bool(false) 1612 1613*** Done *** 1614 1615