1--TEST-- 2Test fgetcsv() : usage variations - with delimiter & enclosure as NULL 3--FILE-- 4<?php 5/* 6 Prototype: array fgetcsv ( resource $handle [, int $length [, string $delimiter [, string $enclosure]]] ); 7 Description: Gets line from file pointer and parse for CSV fields 8*/ 9 10/* 11 Testing fgetcsv() to read from a file when provided with delimiter and 12 enclosure values both as NULL 13 */ 14 15echo "*** Testing fgetcsv() : with delimiter & enclosure as NULL ***\n"; 16 17/* the array is with three elements in it. Each element should be read as 18 1st element is delimiter, 2nd element is enclosure 19 and 3rd element is csv fields 20*/ 21$csv_lists = array ( 22 array(',', '"', '"water",fruit'), 23 array(',', '"', '"water","fruit"'), 24 array(' ', '^', '^water^ ^fruit^'), 25 array(':', '&', '&water&:&fruit&'), 26 array('=', '=', '=water===fruit='), 27 array('-', '-', '-water--fruit-air'), 28 array('-', '-', '-water---fruit---air-'), 29 array(':', '&', '&""""&:&"&:,:":&,&:,,,,') 30); 31 32$filename = dirname(__FILE__) . '/fgetcsv_variation5.tmp'; 33@unlink($filename); 34 35$file_modes = array ("r","rb", "rt", "r+", "r+b", "r+t", 36 "a+", "a+b", "a+t", 37 "w+", "w+b", "w+t", 38 "x+", "x+b", "x+t"); 39 40$loop_counter = 1; 41foreach ($csv_lists as $csv_list) { 42 for($mode_counter = 0; $mode_counter < count($file_modes); $mode_counter++) { 43 // create the file and add the content with has csv fields 44 if ( strstr($file_modes[$mode_counter], "r") ) { 45 $file_handle = fopen($filename, "w"); 46 } else { 47 $file_handle = fopen($filename, $file_modes[$mode_counter] ); 48 } 49 if ( !$file_handle ) { 50 echo "Error: failed to create file $filename!\n"; 51 exit(); 52 } 53 $delimiter = $csv_list[0]; 54 $enclosure = $csv_list[1]; 55 $csv_field = $csv_list[2]; 56 fwrite($file_handle, $csv_field . "\n"); 57 // write another line of text and a blank line 58 // this will be used to test, if the fgetcsv() read more than a line and its 59 // working when only a blank line is read 60 fwrite($file_handle, "This is line of text without csv fields\n"); 61 fwrite($file_handle, "\n"); // blank line 62 63 // close the file if the mode to be used is read mode and re-open using read mode 64 // else rewind the file pointer to begining of the file 65 if ( strstr($file_modes[$mode_counter], "r" ) ) { 66 fclose($file_handle); 67 $file_handle = fopen($filename, $file_modes[$mode_counter]); 68 } else { 69 // rewind the file pointer to bof 70 rewind($file_handle); 71 } 72 73 echo "\n-- Testing fgetcsv() with file opened using $file_modes[$mode_counter] mode --\n"; 74 75 // call fgetcsv() to parse csv fields 76 77 fseek($file_handle, 0, SEEK_SET); 78 var_dump( fgetcsv($file_handle, 1024, NULL, NULL) ); 79 // check the file pointer position and if eof 80 var_dump( ftell($file_handle) ); 81 var_dump( feof($file_handle) ); 82 83 // close the file 84 fclose($file_handle); 85 //delete file 86 unlink($filename); 87 } //end of mode loop 88} // end of foreach 89 90echo "Done\n"; 91?> 92--EXPECTF-- 93*** Testing fgetcsv() : with delimiter & enclosure as NULL *** 94 95-- Testing fgetcsv() with file opened using r mode -- 96 97Warning: fgetcsv(): delimiter must be a character in %s on line %d 98bool(false) 99int(0) 100bool(false) 101 102-- Testing fgetcsv() with file opened using rb mode -- 103 104Warning: fgetcsv(): delimiter must be a character in %s on line %d 105bool(false) 106int(0) 107bool(false) 108 109-- Testing fgetcsv() with file opened using rt mode -- 110 111Warning: fgetcsv(): delimiter must be a character in %s on line %d 112bool(false) 113int(0) 114bool(false) 115 116-- Testing fgetcsv() with file opened using r+ mode -- 117 118Warning: fgetcsv(): delimiter must be a character in %s on line %d 119bool(false) 120int(0) 121bool(false) 122 123-- Testing fgetcsv() with file opened using r+b mode -- 124 125Warning: fgetcsv(): delimiter must be a character in %s on line %d 126bool(false) 127int(0) 128bool(false) 129 130-- Testing fgetcsv() with file opened using r+t mode -- 131 132Warning: fgetcsv(): delimiter must be a character in %s on line %d 133bool(false) 134int(0) 135bool(false) 136 137-- Testing fgetcsv() with file opened using a+ mode -- 138 139Warning: fgetcsv(): delimiter must be a character in %s on line %d 140bool(false) 141int(0) 142bool(false) 143 144-- Testing fgetcsv() with file opened using a+b mode -- 145 146Warning: fgetcsv(): delimiter must be a character in %s on line %d 147bool(false) 148int(0) 149bool(false) 150 151-- Testing fgetcsv() with file opened using a+t mode -- 152 153Warning: fgetcsv(): delimiter must be a character in %s on line %d 154bool(false) 155int(0) 156bool(false) 157 158-- Testing fgetcsv() with file opened using w+ mode -- 159 160Warning: fgetcsv(): delimiter must be a character in %s on line %d 161bool(false) 162int(0) 163bool(false) 164 165-- Testing fgetcsv() with file opened using w+b mode -- 166 167Warning: fgetcsv(): delimiter must be a character in %s on line %d 168bool(false) 169int(0) 170bool(false) 171 172-- Testing fgetcsv() with file opened using w+t mode -- 173 174Warning: fgetcsv(): delimiter must be a character in %s on line %d 175bool(false) 176int(0) 177bool(false) 178 179-- Testing fgetcsv() with file opened using x+ mode -- 180 181Warning: fgetcsv(): delimiter must be a character in %s on line %d 182bool(false) 183int(0) 184bool(false) 185 186-- Testing fgetcsv() with file opened using x+b mode -- 187 188Warning: fgetcsv(): delimiter must be a character in %s on line %d 189bool(false) 190int(0) 191bool(false) 192 193-- Testing fgetcsv() with file opened using x+t mode -- 194 195Warning: fgetcsv(): delimiter must be a character in %s on line %d 196bool(false) 197int(0) 198bool(false) 199 200-- Testing fgetcsv() with file opened using r mode -- 201 202Warning: fgetcsv(): delimiter must be a character in %s on line %d 203bool(false) 204int(0) 205bool(false) 206 207-- Testing fgetcsv() with file opened using rb mode -- 208 209Warning: fgetcsv(): delimiter must be a character in %s on line %d 210bool(false) 211int(0) 212bool(false) 213 214-- Testing fgetcsv() with file opened using rt mode -- 215 216Warning: fgetcsv(): delimiter must be a character in %s on line %d 217bool(false) 218int(0) 219bool(false) 220 221-- Testing fgetcsv() with file opened using r+ mode -- 222 223Warning: fgetcsv(): delimiter must be a character in %s on line %d 224bool(false) 225int(0) 226bool(false) 227 228-- Testing fgetcsv() with file opened using r+b mode -- 229 230Warning: fgetcsv(): delimiter must be a character in %s on line %d 231bool(false) 232int(0) 233bool(false) 234 235-- Testing fgetcsv() with file opened using r+t mode -- 236 237Warning: fgetcsv(): delimiter must be a character in %s on line %d 238bool(false) 239int(0) 240bool(false) 241 242-- Testing fgetcsv() with file opened using a+ mode -- 243 244Warning: fgetcsv(): delimiter must be a character in %s on line %d 245bool(false) 246int(0) 247bool(false) 248 249-- Testing fgetcsv() with file opened using a+b mode -- 250 251Warning: fgetcsv(): delimiter must be a character in %s on line %d 252bool(false) 253int(0) 254bool(false) 255 256-- Testing fgetcsv() with file opened using a+t mode -- 257 258Warning: fgetcsv(): delimiter must be a character in %s on line %d 259bool(false) 260int(0) 261bool(false) 262 263-- Testing fgetcsv() with file opened using w+ mode -- 264 265Warning: fgetcsv(): delimiter must be a character in %s on line %d 266bool(false) 267int(0) 268bool(false) 269 270-- Testing fgetcsv() with file opened using w+b mode -- 271 272Warning: fgetcsv(): delimiter must be a character in %s on line %d 273bool(false) 274int(0) 275bool(false) 276 277-- Testing fgetcsv() with file opened using w+t mode -- 278 279Warning: fgetcsv(): delimiter must be a character in %s on line %d 280bool(false) 281int(0) 282bool(false) 283 284-- Testing fgetcsv() with file opened using x+ mode -- 285 286Warning: fgetcsv(): delimiter must be a character in %s on line %d 287bool(false) 288int(0) 289bool(false) 290 291-- Testing fgetcsv() with file opened using x+b mode -- 292 293Warning: fgetcsv(): delimiter must be a character in %s on line %d 294bool(false) 295int(0) 296bool(false) 297 298-- Testing fgetcsv() with file opened using x+t mode -- 299 300Warning: fgetcsv(): delimiter must be a character in %s on line %d 301bool(false) 302int(0) 303bool(false) 304 305-- Testing fgetcsv() with file opened using r mode -- 306 307Warning: fgetcsv(): delimiter must be a character in %s on line %d 308bool(false) 309int(0) 310bool(false) 311 312-- Testing fgetcsv() with file opened using rb mode -- 313 314Warning: fgetcsv(): delimiter must be a character in %s on line %d 315bool(false) 316int(0) 317bool(false) 318 319-- Testing fgetcsv() with file opened using rt mode -- 320 321Warning: fgetcsv(): delimiter must be a character in %s on line %d 322bool(false) 323int(0) 324bool(false) 325 326-- Testing fgetcsv() with file opened using r+ mode -- 327 328Warning: fgetcsv(): delimiter must be a character in %s on line %d 329bool(false) 330int(0) 331bool(false) 332 333-- Testing fgetcsv() with file opened using r+b mode -- 334 335Warning: fgetcsv(): delimiter must be a character in %s on line %d 336bool(false) 337int(0) 338bool(false) 339 340-- Testing fgetcsv() with file opened using r+t mode -- 341 342Warning: fgetcsv(): delimiter must be a character in %s on line %d 343bool(false) 344int(0) 345bool(false) 346 347-- Testing fgetcsv() with file opened using a+ mode -- 348 349Warning: fgetcsv(): delimiter must be a character in %s on line %d 350bool(false) 351int(0) 352bool(false) 353 354-- Testing fgetcsv() with file opened using a+b mode -- 355 356Warning: fgetcsv(): delimiter must be a character in %s on line %d 357bool(false) 358int(0) 359bool(false) 360 361-- Testing fgetcsv() with file opened using a+t mode -- 362 363Warning: fgetcsv(): delimiter must be a character in %s on line %d 364bool(false) 365int(0) 366bool(false) 367 368-- Testing fgetcsv() with file opened using w+ mode -- 369 370Warning: fgetcsv(): delimiter must be a character in %s on line %d 371bool(false) 372int(0) 373bool(false) 374 375-- Testing fgetcsv() with file opened using w+b mode -- 376 377Warning: fgetcsv(): delimiter must be a character in %s on line %d 378bool(false) 379int(0) 380bool(false) 381 382-- Testing fgetcsv() with file opened using w+t mode -- 383 384Warning: fgetcsv(): delimiter must be a character in %s on line %d 385bool(false) 386int(0) 387bool(false) 388 389-- Testing fgetcsv() with file opened using x+ mode -- 390 391Warning: fgetcsv(): delimiter must be a character in %s on line %d 392bool(false) 393int(0) 394bool(false) 395 396-- Testing fgetcsv() with file opened using x+b mode -- 397 398Warning: fgetcsv(): delimiter must be a character in %s on line %d 399bool(false) 400int(0) 401bool(false) 402 403-- Testing fgetcsv() with file opened using x+t mode -- 404 405Warning: fgetcsv(): delimiter must be a character in %s on line %d 406bool(false) 407int(0) 408bool(false) 409 410-- Testing fgetcsv() with file opened using r mode -- 411 412Warning: fgetcsv(): delimiter must be a character in %s on line %d 413bool(false) 414int(0) 415bool(false) 416 417-- Testing fgetcsv() with file opened using rb mode -- 418 419Warning: fgetcsv(): delimiter must be a character in %s on line %d 420bool(false) 421int(0) 422bool(false) 423 424-- Testing fgetcsv() with file opened using rt mode -- 425 426Warning: fgetcsv(): delimiter must be a character in %s on line %d 427bool(false) 428int(0) 429bool(false) 430 431-- Testing fgetcsv() with file opened using r+ mode -- 432 433Warning: fgetcsv(): delimiter must be a character in %s on line %d 434bool(false) 435int(0) 436bool(false) 437 438-- Testing fgetcsv() with file opened using r+b mode -- 439 440Warning: fgetcsv(): delimiter must be a character in %s on line %d 441bool(false) 442int(0) 443bool(false) 444 445-- Testing fgetcsv() with file opened using r+t mode -- 446 447Warning: fgetcsv(): delimiter must be a character in %s on line %d 448bool(false) 449int(0) 450bool(false) 451 452-- Testing fgetcsv() with file opened using a+ mode -- 453 454Warning: fgetcsv(): delimiter must be a character in %s on line %d 455bool(false) 456int(0) 457bool(false) 458 459-- Testing fgetcsv() with file opened using a+b mode -- 460 461Warning: fgetcsv(): delimiter must be a character in %s on line %d 462bool(false) 463int(0) 464bool(false) 465 466-- Testing fgetcsv() with file opened using a+t mode -- 467 468Warning: fgetcsv(): delimiter must be a character in %s on line %d 469bool(false) 470int(0) 471bool(false) 472 473-- Testing fgetcsv() with file opened using w+ mode -- 474 475Warning: fgetcsv(): delimiter must be a character in %s on line %d 476bool(false) 477int(0) 478bool(false) 479 480-- Testing fgetcsv() with file opened using w+b mode -- 481 482Warning: fgetcsv(): delimiter must be a character in %s on line %d 483bool(false) 484int(0) 485bool(false) 486 487-- Testing fgetcsv() with file opened using w+t mode -- 488 489Warning: fgetcsv(): delimiter must be a character in %s on line %d 490bool(false) 491int(0) 492bool(false) 493 494-- Testing fgetcsv() with file opened using x+ mode -- 495 496Warning: fgetcsv(): delimiter must be a character in %s on line %d 497bool(false) 498int(0) 499bool(false) 500 501-- Testing fgetcsv() with file opened using x+b mode -- 502 503Warning: fgetcsv(): delimiter must be a character in %s on line %d 504bool(false) 505int(0) 506bool(false) 507 508-- Testing fgetcsv() with file opened using x+t mode -- 509 510Warning: fgetcsv(): delimiter must be a character in %s on line %d 511bool(false) 512int(0) 513bool(false) 514 515-- Testing fgetcsv() with file opened using r mode -- 516 517Warning: fgetcsv(): delimiter must be a character in %s on line %d 518bool(false) 519int(0) 520bool(false) 521 522-- Testing fgetcsv() with file opened using rb mode -- 523 524Warning: fgetcsv(): delimiter must be a character in %s on line %d 525bool(false) 526int(0) 527bool(false) 528 529-- Testing fgetcsv() with file opened using rt mode -- 530 531Warning: fgetcsv(): delimiter must be a character in %s on line %d 532bool(false) 533int(0) 534bool(false) 535 536-- Testing fgetcsv() with file opened using r+ mode -- 537 538Warning: fgetcsv(): delimiter must be a character in %s on line %d 539bool(false) 540int(0) 541bool(false) 542 543-- Testing fgetcsv() with file opened using r+b mode -- 544 545Warning: fgetcsv(): delimiter must be a character in %s on line %d 546bool(false) 547int(0) 548bool(false) 549 550-- Testing fgetcsv() with file opened using r+t mode -- 551 552Warning: fgetcsv(): delimiter must be a character in %s on line %d 553bool(false) 554int(0) 555bool(false) 556 557-- Testing fgetcsv() with file opened using a+ mode -- 558 559Warning: fgetcsv(): delimiter must be a character in %s on line %d 560bool(false) 561int(0) 562bool(false) 563 564-- Testing fgetcsv() with file opened using a+b mode -- 565 566Warning: fgetcsv(): delimiter must be a character in %s on line %d 567bool(false) 568int(0) 569bool(false) 570 571-- Testing fgetcsv() with file opened using a+t mode -- 572 573Warning: fgetcsv(): delimiter must be a character in %s on line %d 574bool(false) 575int(0) 576bool(false) 577 578-- Testing fgetcsv() with file opened using w+ mode -- 579 580Warning: fgetcsv(): delimiter must be a character in %s on line %d 581bool(false) 582int(0) 583bool(false) 584 585-- Testing fgetcsv() with file opened using w+b mode -- 586 587Warning: fgetcsv(): delimiter must be a character in %s on line %d 588bool(false) 589int(0) 590bool(false) 591 592-- Testing fgetcsv() with file opened using w+t mode -- 593 594Warning: fgetcsv(): delimiter must be a character in %s on line %d 595bool(false) 596int(0) 597bool(false) 598 599-- Testing fgetcsv() with file opened using x+ mode -- 600 601Warning: fgetcsv(): delimiter must be a character in %s on line %d 602bool(false) 603int(0) 604bool(false) 605 606-- Testing fgetcsv() with file opened using x+b mode -- 607 608Warning: fgetcsv(): delimiter must be a character in %s on line %d 609bool(false) 610int(0) 611bool(false) 612 613-- Testing fgetcsv() with file opened using x+t mode -- 614 615Warning: fgetcsv(): delimiter must be a character in %s on line %d 616bool(false) 617int(0) 618bool(false) 619 620-- Testing fgetcsv() with file opened using r mode -- 621 622Warning: fgetcsv(): delimiter must be a character in %s on line %d 623bool(false) 624int(0) 625bool(false) 626 627-- Testing fgetcsv() with file opened using rb mode -- 628 629Warning: fgetcsv(): delimiter must be a character in %s on line %d 630bool(false) 631int(0) 632bool(false) 633 634-- Testing fgetcsv() with file opened using rt mode -- 635 636Warning: fgetcsv(): delimiter must be a character in %s on line %d 637bool(false) 638int(0) 639bool(false) 640 641-- Testing fgetcsv() with file opened using r+ mode -- 642 643Warning: fgetcsv(): delimiter must be a character in %s on line %d 644bool(false) 645int(0) 646bool(false) 647 648-- Testing fgetcsv() with file opened using r+b mode -- 649 650Warning: fgetcsv(): delimiter must be a character in %s on line %d 651bool(false) 652int(0) 653bool(false) 654 655-- Testing fgetcsv() with file opened using r+t mode -- 656 657Warning: fgetcsv(): delimiter must be a character in %s on line %d 658bool(false) 659int(0) 660bool(false) 661 662-- Testing fgetcsv() with file opened using a+ mode -- 663 664Warning: fgetcsv(): delimiter must be a character in %s on line %d 665bool(false) 666int(0) 667bool(false) 668 669-- Testing fgetcsv() with file opened using a+b mode -- 670 671Warning: fgetcsv(): delimiter must be a character in %s on line %d 672bool(false) 673int(0) 674bool(false) 675 676-- Testing fgetcsv() with file opened using a+t mode -- 677 678Warning: fgetcsv(): delimiter must be a character in %s on line %d 679bool(false) 680int(0) 681bool(false) 682 683-- Testing fgetcsv() with file opened using w+ mode -- 684 685Warning: fgetcsv(): delimiter must be a character in %s on line %d 686bool(false) 687int(0) 688bool(false) 689 690-- Testing fgetcsv() with file opened using w+b mode -- 691 692Warning: fgetcsv(): delimiter must be a character in %s on line %d 693bool(false) 694int(0) 695bool(false) 696 697-- Testing fgetcsv() with file opened using w+t mode -- 698 699Warning: fgetcsv(): delimiter must be a character in %s on line %d 700bool(false) 701int(0) 702bool(false) 703 704-- Testing fgetcsv() with file opened using x+ mode -- 705 706Warning: fgetcsv(): delimiter must be a character in %s on line %d 707bool(false) 708int(0) 709bool(false) 710 711-- Testing fgetcsv() with file opened using x+b mode -- 712 713Warning: fgetcsv(): delimiter must be a character in %s on line %d 714bool(false) 715int(0) 716bool(false) 717 718-- Testing fgetcsv() with file opened using x+t mode -- 719 720Warning: fgetcsv(): delimiter must be a character in %s on line %d 721bool(false) 722int(0) 723bool(false) 724 725-- Testing fgetcsv() with file opened using r mode -- 726 727Warning: fgetcsv(): delimiter must be a character in %s on line %d 728bool(false) 729int(0) 730bool(false) 731 732-- Testing fgetcsv() with file opened using rb mode -- 733 734Warning: fgetcsv(): delimiter must be a character in %s on line %d 735bool(false) 736int(0) 737bool(false) 738 739-- Testing fgetcsv() with file opened using rt mode -- 740 741Warning: fgetcsv(): delimiter must be a character in %s on line %d 742bool(false) 743int(0) 744bool(false) 745 746-- Testing fgetcsv() with file opened using r+ mode -- 747 748Warning: fgetcsv(): delimiter must be a character in %s on line %d 749bool(false) 750int(0) 751bool(false) 752 753-- Testing fgetcsv() with file opened using r+b mode -- 754 755Warning: fgetcsv(): delimiter must be a character in %s on line %d 756bool(false) 757int(0) 758bool(false) 759 760-- Testing fgetcsv() with file opened using r+t mode -- 761 762Warning: fgetcsv(): delimiter must be a character in %s on line %d 763bool(false) 764int(0) 765bool(false) 766 767-- Testing fgetcsv() with file opened using a+ mode -- 768 769Warning: fgetcsv(): delimiter must be a character in %s on line %d 770bool(false) 771int(0) 772bool(false) 773 774-- Testing fgetcsv() with file opened using a+b mode -- 775 776Warning: fgetcsv(): delimiter must be a character in %s on line %d 777bool(false) 778int(0) 779bool(false) 780 781-- Testing fgetcsv() with file opened using a+t mode -- 782 783Warning: fgetcsv(): delimiter must be a character in %s on line %d 784bool(false) 785int(0) 786bool(false) 787 788-- Testing fgetcsv() with file opened using w+ mode -- 789 790Warning: fgetcsv(): delimiter must be a character in %s on line %d 791bool(false) 792int(0) 793bool(false) 794 795-- Testing fgetcsv() with file opened using w+b mode -- 796 797Warning: fgetcsv(): delimiter must be a character in %s on line %d 798bool(false) 799int(0) 800bool(false) 801 802-- Testing fgetcsv() with file opened using w+t mode -- 803 804Warning: fgetcsv(): delimiter must be a character in %s on line %d 805bool(false) 806int(0) 807bool(false) 808 809-- Testing fgetcsv() with file opened using x+ mode -- 810 811Warning: fgetcsv(): delimiter must be a character in %s on line %d 812bool(false) 813int(0) 814bool(false) 815 816-- Testing fgetcsv() with file opened using x+b mode -- 817 818Warning: fgetcsv(): delimiter must be a character in %s on line %d 819bool(false) 820int(0) 821bool(false) 822 823-- Testing fgetcsv() with file opened using x+t mode -- 824 825Warning: fgetcsv(): delimiter must be a character in %s on line %d 826bool(false) 827int(0) 828bool(false) 829 830-- Testing fgetcsv() with file opened using r mode -- 831 832Warning: fgetcsv(): delimiter must be a character in %s on line %d 833bool(false) 834int(0) 835bool(false) 836 837-- Testing fgetcsv() with file opened using rb mode -- 838 839Warning: fgetcsv(): delimiter must be a character in %s on line %d 840bool(false) 841int(0) 842bool(false) 843 844-- Testing fgetcsv() with file opened using rt mode -- 845 846Warning: fgetcsv(): delimiter must be a character in %s on line %d 847bool(false) 848int(0) 849bool(false) 850 851-- Testing fgetcsv() with file opened using r+ mode -- 852 853Warning: fgetcsv(): delimiter must be a character in %s on line %d 854bool(false) 855int(0) 856bool(false) 857 858-- Testing fgetcsv() with file opened using r+b mode -- 859 860Warning: fgetcsv(): delimiter must be a character in %s on line %d 861bool(false) 862int(0) 863bool(false) 864 865-- Testing fgetcsv() with file opened using r+t mode -- 866 867Warning: fgetcsv(): delimiter must be a character in %s on line %d 868bool(false) 869int(0) 870bool(false) 871 872-- Testing fgetcsv() with file opened using a+ mode -- 873 874Warning: fgetcsv(): delimiter must be a character in %s on line %d 875bool(false) 876int(0) 877bool(false) 878 879-- Testing fgetcsv() with file opened using a+b mode -- 880 881Warning: fgetcsv(): delimiter must be a character in %s on line %d 882bool(false) 883int(0) 884bool(false) 885 886-- Testing fgetcsv() with file opened using a+t mode -- 887 888Warning: fgetcsv(): delimiter must be a character in %s on line %d 889bool(false) 890int(0) 891bool(false) 892 893-- Testing fgetcsv() with file opened using w+ mode -- 894 895Warning: fgetcsv(): delimiter must be a character in %s on line %d 896bool(false) 897int(0) 898bool(false) 899 900-- Testing fgetcsv() with file opened using w+b mode -- 901 902Warning: fgetcsv(): delimiter must be a character in %s on line %d 903bool(false) 904int(0) 905bool(false) 906 907-- Testing fgetcsv() with file opened using w+t mode -- 908 909Warning: fgetcsv(): delimiter must be a character in %s on line %d 910bool(false) 911int(0) 912bool(false) 913 914-- Testing fgetcsv() with file opened using x+ mode -- 915 916Warning: fgetcsv(): delimiter must be a character in %s on line %d 917bool(false) 918int(0) 919bool(false) 920 921-- Testing fgetcsv() with file opened using x+b mode -- 922 923Warning: fgetcsv(): delimiter must be a character in %s on line %d 924bool(false) 925int(0) 926bool(false) 927 928-- Testing fgetcsv() with file opened using x+t mode -- 929 930Warning: fgetcsv(): delimiter must be a character in %s on line %d 931bool(false) 932int(0) 933bool(false) 934Done 935