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