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