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