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