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