1--TEST--
2Test fputcsv() : usage variations - two chars as enclosure & delimiter
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
11/* Testing fputcsv() to write to a file when delimiter and enclosure are of two chars each */
12
13echo "*** Testing fputcsv() : with two chars as enclosure & delimiter ***\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_variation9.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;
40foreach ($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) );
61    // check the file pointer position and eof
62    var_dump( ftell($file_handle) );
63    var_dump( feof($file_handle) );
64    //close the file
65    fclose($file_handle);
66
67    // print the file contents
68    var_dump( file_get_contents($filename) );
69
70    //delete file
71    unlink($filename);
72  } //end of mode loop
73} // end of foreach
74
75echo "Done\n";
76?>
77--EXPECTF--
78*** Testing fputcsv() : with two chars as enclosure & delimiter ***
79
80-- file opened in r+ --
81
82Notice: fputcsv(): delimiter must be a single character in %s on line %d
83
84Notice: fputcsv(): enclosure must be a single character in %s on line %d
85int(12)
86int(12)
87bool(false)
88string(12) "water,fruit
89"
90
91-- file opened in r+b --
92
93Notice: fputcsv(): delimiter must be a single character in %s on line %d
94
95Notice: fputcsv(): enclosure must be a single character in %s on line %d
96int(12)
97int(12)
98bool(false)
99string(12) "water,fruit
100"
101
102-- file opened in r+t --
103
104Notice: fputcsv(): delimiter must be a single character in %s on line %d
105
106Notice: fputcsv(): enclosure must be a single character in %s on line %d
107int(12)
108int(12)
109bool(false)
110string(%d) "water,fruit
111"
112
113-- file opened in a+ --
114
115Notice: fputcsv(): delimiter must be a single character in %s on line %d
116
117Notice: fputcsv(): enclosure must be a single character in %s on line %d
118int(12)
119int(12)
120bool(false)
121string(12) "water,fruit
122"
123
124-- file opened in a+b --
125
126Notice: fputcsv(): delimiter must be a single character in %s on line %d
127
128Notice: fputcsv(): enclosure must be a single character in %s on line %d
129int(12)
130int(12)
131bool(false)
132string(12) "water,fruit
133"
134
135-- file opened in a+t --
136
137Notice: fputcsv(): delimiter must be a single character in %s on line %d
138
139Notice: fputcsv(): enclosure must be a single character in %s on line %d
140int(12)
141int(12)
142bool(false)
143string(%d) "water,fruit
144"
145
146-- file opened in w+ --
147
148Notice: fputcsv(): delimiter must be a single character in %s on line %d
149
150Notice: fputcsv(): enclosure must be a single character in %s on line %d
151int(12)
152int(12)
153bool(false)
154string(12) "water,fruit
155"
156
157-- file opened in w+b --
158
159Notice: fputcsv(): delimiter must be a single character in %s on line %d
160
161Notice: fputcsv(): enclosure must be a single character in %s on line %d
162int(12)
163int(12)
164bool(false)
165string(12) "water,fruit
166"
167
168-- file opened in w+t --
169
170Notice: fputcsv(): delimiter must be a single character in %s on line %d
171
172Notice: fputcsv(): enclosure must be a single character in %s on line %d
173int(12)
174int(12)
175bool(false)
176string(%d) "water,fruit
177"
178
179-- file opened in x+ --
180
181Notice: fputcsv(): delimiter must be a single character in %s on line %d
182
183Notice: fputcsv(): enclosure must be a single character in %s on line %d
184int(12)
185int(12)
186bool(false)
187string(12) "water,fruit
188"
189
190-- file opened in x+b --
191
192Notice: fputcsv(): delimiter must be a single character in %s on line %d
193
194Notice: fputcsv(): enclosure must be a single character in %s on line %d
195int(12)
196int(12)
197bool(false)
198string(12) "water,fruit
199"
200
201-- file opened in x+t --
202
203Notice: fputcsv(): delimiter must be a single character in %s on line %d
204
205Notice: fputcsv(): enclosure must be a single character in %s on line %d
206int(12)
207int(12)
208bool(false)
209string(%d) "water,fruit
210"
211
212-- file opened in r+ --
213
214Notice: fputcsv(): delimiter must be a single character in %s on line %d
215
216Notice: fputcsv(): enclosure must be a single character in %s on line %d
217int(15)
218int(15)
219bool(false)
220string(15) ""water","fruit
221"
222
223-- file opened in r+b --
224
225Notice: fputcsv(): delimiter must be a single character in %s on line %d
226
227Notice: fputcsv(): enclosure must be a single character in %s on line %d
228int(15)
229int(15)
230bool(false)
231string(15) ""water","fruit
232"
233
234-- file opened in r+t --
235
236Notice: fputcsv(): delimiter must be a single character in %s on line %d
237
238Notice: fputcsv(): enclosure must be a single character in %s on line %d
239int(15)
240int(15)
241bool(false)
242string(%d) ""water","fruit
243"
244
245-- file opened in a+ --
246
247Notice: fputcsv(): delimiter must be a single character in %s on line %d
248
249Notice: fputcsv(): enclosure must be a single character in %s on line %d
250int(15)
251int(15)
252bool(false)
253string(15) ""water","fruit
254"
255
256-- file opened in a+b --
257
258Notice: fputcsv(): delimiter must be a single character in %s on line %d
259
260Notice: fputcsv(): enclosure must be a single character in %s on line %d
261int(15)
262int(15)
263bool(false)
264string(15) ""water","fruit
265"
266
267-- file opened in a+t --
268
269Notice: fputcsv(): delimiter must be a single character in %s on line %d
270
271Notice: fputcsv(): enclosure must be a single character in %s on line %d
272int(15)
273int(15)
274bool(false)
275string(%d) ""water","fruit
276"
277
278-- file opened in w+ --
279
280Notice: fputcsv(): delimiter must be a single character in %s on line %d
281
282Notice: fputcsv(): enclosure must be a single character in %s on line %d
283int(15)
284int(15)
285bool(false)
286string(15) ""water","fruit
287"
288
289-- file opened in w+b --
290
291Notice: fputcsv(): delimiter must be a single character in %s on line %d
292
293Notice: fputcsv(): enclosure must be a single character in %s on line %d
294int(15)
295int(15)
296bool(false)
297string(15) ""water","fruit
298"
299
300-- file opened in w+t --
301
302Notice: fputcsv(): delimiter must be a single character in %s on line %d
303
304Notice: fputcsv(): enclosure must be a single character in %s on line %d
305int(15)
306int(15)
307bool(false)
308string(%d) ""water","fruit
309"
310
311-- file opened in x+ --
312
313Notice: fputcsv(): delimiter must be a single character in %s on line %d
314
315Notice: fputcsv(): enclosure must be a single character in %s on line %d
316int(15)
317int(15)
318bool(false)
319string(15) ""water","fruit
320"
321
322-- file opened in x+b --
323
324Notice: fputcsv(): delimiter must be a single character in %s on line %d
325
326Notice: fputcsv(): enclosure must be a single character in %s on line %d
327int(15)
328int(15)
329bool(false)
330string(15) ""water","fruit
331"
332
333-- file opened in x+t --
334
335Notice: fputcsv(): delimiter must be a single character in %s on line %d
336
337Notice: fputcsv(): enclosure must be a single character in %s on line %d
338int(15)
339int(15)
340bool(false)
341string(%d) ""water","fruit
342"
343
344-- file opened in r+ --
345
346Notice: fputcsv(): delimiter must be a single character in %s on line %d
347
348Notice: fputcsv(): enclosure must be a single character in %s on line %d
349int(16)
350int(16)
351bool(false)
352string(16) ""water","fruit"
353"
354
355-- file opened in r+b --
356
357Notice: fputcsv(): delimiter must be a single character in %s on line %d
358
359Notice: fputcsv(): enclosure must be a single character in %s on line %d
360int(16)
361int(16)
362bool(false)
363string(16) ""water","fruit"
364"
365
366-- file opened in r+t --
367
368Notice: fputcsv(): delimiter must be a single character in %s on line %d
369
370Notice: fputcsv(): enclosure must be a single character in %s on line %d
371int(16)
372int(16)
373bool(false)
374string(%d) ""water","fruit"
375"
376
377-- file opened in a+ --
378
379Notice: fputcsv(): delimiter must be a single character in %s on line %d
380
381Notice: fputcsv(): enclosure must be a single character in %s on line %d
382int(16)
383int(16)
384bool(false)
385string(16) ""water","fruit"
386"
387
388-- file opened in a+b --
389
390Notice: fputcsv(): delimiter must be a single character in %s on line %d
391
392Notice: fputcsv(): enclosure must be a single character in %s on line %d
393int(16)
394int(16)
395bool(false)
396string(16) ""water","fruit"
397"
398
399-- file opened in a+t --
400
401Notice: fputcsv(): delimiter must be a single character in %s on line %d
402
403Notice: fputcsv(): enclosure must be a single character in %s on line %d
404int(16)
405int(16)
406bool(false)
407string(%d) ""water","fruit"
408"
409
410-- file opened in w+ --
411
412Notice: fputcsv(): delimiter must be a single character in %s on line %d
413
414Notice: fputcsv(): enclosure must be a single character in %s on line %d
415int(16)
416int(16)
417bool(false)
418string(16) ""water","fruit"
419"
420
421-- file opened in w+b --
422
423Notice: fputcsv(): delimiter must be a single character in %s on line %d
424
425Notice: fputcsv(): enclosure must be a single character in %s on line %d
426int(16)
427int(16)
428bool(false)
429string(16) ""water","fruit"
430"
431
432-- file opened in w+t --
433
434Notice: fputcsv(): delimiter must be a single character in %s on line %d
435
436Notice: fputcsv(): enclosure must be a single character in %s on line %d
437int(16)
438int(16)
439bool(false)
440string(%d) ""water","fruit"
441"
442
443-- file opened in x+ --
444
445Notice: fputcsv(): delimiter must be a single character in %s on line %d
446
447Notice: fputcsv(): enclosure must be a single character in %s on line %d
448int(16)
449int(16)
450bool(false)
451string(16) ""water","fruit"
452"
453
454-- file opened in x+b --
455
456Notice: fputcsv(): delimiter must be a single character in %s on line %d
457
458Notice: fputcsv(): enclosure must be a single character in %s on line %d
459int(16)
460int(16)
461bool(false)
462string(16) ""water","fruit"
463"
464
465-- file opened in x+t --
466
467Notice: fputcsv(): delimiter must be a single character in %s on line %d
468
469Notice: fputcsv(): enclosure must be a single character in %s on line %d
470int(16)
471int(16)
472bool(false)
473string(%d) ""water","fruit"
474"
475
476-- file opened in r+ --
477
478Notice: fputcsv(): delimiter must be a single character in %s on line %d
479
480Notice: fputcsv(): enclosure must be a single character in %s on line %d
481int(18)
482int(18)
483bool(false)
484string(18) "%^water^ ^fruit^%
485"
486
487-- file opened in r+b --
488
489Notice: fputcsv(): delimiter must be a single character in %s on line %d
490
491Notice: fputcsv(): enclosure must be a single character in %s on line %d
492int(18)
493int(18)
494bool(false)
495string(18) "%^water^ ^fruit^%
496"
497
498-- file opened in r+t --
499
500Notice: fputcsv(): delimiter must be a single character in %s on line %d
501
502Notice: fputcsv(): enclosure must be a single character in %s on line %d
503int(18)
504int(18)
505bool(false)
506string(%d) "%^water^ ^fruit^%
507"
508
509-- file opened in a+ --
510
511Notice: fputcsv(): delimiter must be a single character in %s on line %d
512
513Notice: fputcsv(): enclosure must be a single character in %s on line %d
514int(18)
515int(18)
516bool(false)
517string(18) "%^water^ ^fruit^%
518"
519
520-- file opened in a+b --
521
522Notice: fputcsv(): delimiter must be a single character in %s on line %d
523
524Notice: fputcsv(): enclosure must be a single character in %s on line %d
525int(18)
526int(18)
527bool(false)
528string(18) "%^water^ ^fruit^%
529"
530
531-- file opened in a+t --
532
533Notice: fputcsv(): delimiter must be a single character in %s on line %d
534
535Notice: fputcsv(): enclosure must be a single character in %s on line %d
536int(18)
537int(18)
538bool(false)
539string(%d) "%^water^ ^fruit^%
540"
541
542-- file opened in w+ --
543
544Notice: fputcsv(): delimiter must be a single character in %s on line %d
545
546Notice: fputcsv(): enclosure must be a single character in %s on line %d
547int(18)
548int(18)
549bool(false)
550string(18) "%^water^ ^fruit^%
551"
552
553-- file opened in w+b --
554
555Notice: fputcsv(): delimiter must be a single character in %s on line %d
556
557Notice: fputcsv(): enclosure must be a single character in %s on line %d
558int(18)
559int(18)
560bool(false)
561string(18) "%^water^ ^fruit^%
562"
563
564-- file opened in w+t --
565
566Notice: fputcsv(): delimiter must be a single character in %s on line %d
567
568Notice: fputcsv(): enclosure must be a single character in %s on line %d
569int(18)
570int(18)
571bool(false)
572string(%d) "%^water^ ^fruit^%
573"
574
575-- file opened in x+ --
576
577Notice: fputcsv(): delimiter must be a single character in %s on line %d
578
579Notice: fputcsv(): enclosure must be a single character in %s on line %d
580int(18)
581int(18)
582bool(false)
583string(18) "%^water^ ^fruit^%
584"
585
586-- file opened in x+b --
587
588Notice: fputcsv(): delimiter must be a single character in %s on line %d
589
590Notice: fputcsv(): enclosure must be a single character in %s on line %d
591int(18)
592int(18)
593bool(false)
594string(18) "%^water^ ^fruit^%
595"
596
597-- file opened in x+t --
598
599Notice: fputcsv(): delimiter must be a single character in %s on line %d
600
601Notice: fputcsv(): enclosure must be a single character in %s on line %d
602int(18)
603int(18)
604bool(false)
605string(%d) "%^water^ ^fruit^%
606"
607
608-- file opened in r+ --
609
610Notice: fputcsv(): delimiter must be a single character in %s on line %d
611
612Notice: fputcsv(): enclosure must be a single character in %s on line %d
613int(16)
614int(16)
615bool(false)
616string(16) "&water&:&fruit&
617"
618
619-- file opened in r+b --
620
621Notice: fputcsv(): delimiter must be a single character in %s on line %d
622
623Notice: fputcsv(): enclosure must be a single character in %s on line %d
624int(16)
625int(16)
626bool(false)
627string(16) "&water&:&fruit&
628"
629
630-- file opened in r+t --
631
632Notice: fputcsv(): delimiter must be a single character in %s on line %d
633
634Notice: fputcsv(): enclosure must be a single character in %s on line %d
635int(16)
636int(16)
637bool(false)
638string(%d) "&water&:&fruit&
639"
640
641-- file opened in a+ --
642
643Notice: fputcsv(): delimiter must be a single character in %s on line %d
644
645Notice: fputcsv(): enclosure must be a single character in %s on line %d
646int(16)
647int(16)
648bool(false)
649string(16) "&water&:&fruit&
650"
651
652-- file opened in a+b --
653
654Notice: fputcsv(): delimiter must be a single character in %s on line %d
655
656Notice: fputcsv(): enclosure must be a single character in %s on line %d
657int(16)
658int(16)
659bool(false)
660string(16) "&water&:&fruit&
661"
662
663-- file opened in a+t --
664
665Notice: fputcsv(): delimiter must be a single character in %s on line %d
666
667Notice: fputcsv(): enclosure must be a single character in %s on line %d
668int(16)
669int(16)
670bool(false)
671string(%d) "&water&:&fruit&
672"
673
674-- file opened in w+ --
675
676Notice: fputcsv(): delimiter must be a single character in %s on line %d
677
678Notice: fputcsv(): enclosure must be a single character in %s on line %d
679int(16)
680int(16)
681bool(false)
682string(16) "&water&:&fruit&
683"
684
685-- file opened in w+b --
686
687Notice: fputcsv(): delimiter must be a single character in %s on line %d
688
689Notice: fputcsv(): enclosure must be a single character in %s on line %d
690int(16)
691int(16)
692bool(false)
693string(16) "&water&:&fruit&
694"
695
696-- file opened in w+t --
697
698Notice: fputcsv(): delimiter must be a single character in %s on line %d
699
700Notice: fputcsv(): enclosure must be a single character in %s on line %d
701int(16)
702int(16)
703bool(false)
704string(%d) "&water&:&fruit&
705"
706
707-- file opened in x+ --
708
709Notice: fputcsv(): delimiter must be a single character in %s on line %d
710
711Notice: fputcsv(): enclosure must be a single character in %s on line %d
712int(16)
713int(16)
714bool(false)
715string(16) "&water&:&fruit&
716"
717
718-- file opened in x+b --
719
720Notice: fputcsv(): delimiter must be a single character in %s on line %d
721
722Notice: fputcsv(): enclosure must be a single character in %s on line %d
723int(16)
724int(16)
725bool(false)
726string(16) "&water&:&fruit&
727"
728
729-- file opened in x+t --
730
731Notice: fputcsv(): delimiter must be a single character in %s on line %d
732
733Notice: fputcsv(): enclosure must be a single character in %s on line %d
734int(16)
735int(16)
736bool(false)
737string(%d) "&water&:&fruit&
738"
739
740-- file opened in r+ --
741
742Notice: fputcsv(): delimiter must be a single character in %s on line %d
743
744Notice: fputcsv(): enclosure must be a single character in %s on line %d
745int(16)
746int(16)
747bool(false)
748string(16) "=water===fruit=
749"
750
751-- file opened in r+b --
752
753Notice: fputcsv(): delimiter must be a single character in %s on line %d
754
755Notice: fputcsv(): enclosure must be a single character in %s on line %d
756int(16)
757int(16)
758bool(false)
759string(16) "=water===fruit=
760"
761
762-- file opened in r+t --
763
764Notice: fputcsv(): delimiter must be a single character in %s on line %d
765
766Notice: fputcsv(): enclosure must be a single character in %s on line %d
767int(16)
768int(16)
769bool(false)
770string(%d) "=water===fruit=
771"
772
773-- file opened in a+ --
774
775Notice: fputcsv(): delimiter must be a single character in %s on line %d
776
777Notice: fputcsv(): enclosure must be a single character in %s on line %d
778int(16)
779int(16)
780bool(false)
781string(16) "=water===fruit=
782"
783
784-- file opened in a+b --
785
786Notice: fputcsv(): delimiter must be a single character in %s on line %d
787
788Notice: fputcsv(): enclosure must be a single character in %s on line %d
789int(16)
790int(16)
791bool(false)
792string(16) "=water===fruit=
793"
794
795-- file opened in a+t --
796
797Notice: fputcsv(): delimiter must be a single character in %s on line %d
798
799Notice: fputcsv(): enclosure must be a single character in %s on line %d
800int(16)
801int(16)
802bool(false)
803string(%d) "=water===fruit=
804"
805
806-- file opened in w+ --
807
808Notice: fputcsv(): delimiter must be a single character in %s on line %d
809
810Notice: fputcsv(): enclosure must be a single character in %s on line %d
811int(16)
812int(16)
813bool(false)
814string(16) "=water===fruit=
815"
816
817-- file opened in w+b --
818
819Notice: fputcsv(): delimiter must be a single character in %s on line %d
820
821Notice: fputcsv(): enclosure must be a single character in %s on line %d
822int(16)
823int(16)
824bool(false)
825string(16) "=water===fruit=
826"
827
828-- file opened in w+t --
829
830Notice: fputcsv(): delimiter must be a single character in %s on line %d
831
832Notice: fputcsv(): enclosure must be a single character in %s on line %d
833int(16)
834int(16)
835bool(false)
836string(%d) "=water===fruit=
837"
838
839-- file opened in x+ --
840
841Notice: fputcsv(): delimiter must be a single character in %s on line %d
842
843Notice: fputcsv(): enclosure must be a single character in %s on line %d
844int(16)
845int(16)
846bool(false)
847string(16) "=water===fruit=
848"
849
850-- file opened in x+b --
851
852Notice: fputcsv(): delimiter must be a single character in %s on line %d
853
854Notice: fputcsv(): enclosure must be a single character in %s on line %d
855int(16)
856int(16)
857bool(false)
858string(16) "=water===fruit=
859"
860
861-- file opened in x+t --
862
863Notice: fputcsv(): delimiter must be a single character in %s on line %d
864
865Notice: fputcsv(): enclosure must be a single character in %s on line %d
866int(16)
867int(16)
868bool(false)
869string(%d) "=water===fruit=
870"
871
872-- file opened in r+ --
873
874Notice: fputcsv(): delimiter must be a single character in %s on line %d
875
876Notice: fputcsv(): enclosure must be a single character in %s on line %d
877int(18)
878int(18)
879bool(false)
880string(18) "-water--fruit-air
881"
882
883-- file opened in r+b --
884
885Notice: fputcsv(): delimiter must be a single character in %s on line %d
886
887Notice: fputcsv(): enclosure must be a single character in %s on line %d
888int(18)
889int(18)
890bool(false)
891string(18) "-water--fruit-air
892"
893
894-- file opened in r+t --
895
896Notice: fputcsv(): delimiter must be a single character in %s on line %d
897
898Notice: fputcsv(): enclosure must be a single character in %s on line %d
899int(18)
900int(18)
901bool(false)
902string(%d) "-water--fruit-air
903"
904
905-- file opened in a+ --
906
907Notice: fputcsv(): delimiter must be a single character in %s on line %d
908
909Notice: fputcsv(): enclosure must be a single character in %s on line %d
910int(18)
911int(18)
912bool(false)
913string(18) "-water--fruit-air
914"
915
916-- file opened in a+b --
917
918Notice: fputcsv(): delimiter must be a single character in %s on line %d
919
920Notice: fputcsv(): enclosure must be a single character in %s on line %d
921int(18)
922int(18)
923bool(false)
924string(18) "-water--fruit-air
925"
926
927-- file opened in a+t --
928
929Notice: fputcsv(): delimiter must be a single character in %s on line %d
930
931Notice: fputcsv(): enclosure must be a single character in %s on line %d
932int(18)
933int(18)
934bool(false)
935string(%d) "-water--fruit-air
936"
937
938-- file opened in w+ --
939
940Notice: fputcsv(): delimiter must be a single character in %s on line %d
941
942Notice: fputcsv(): enclosure must be a single character in %s on line %d
943int(18)
944int(18)
945bool(false)
946string(18) "-water--fruit-air
947"
948
949-- file opened in w+b --
950
951Notice: fputcsv(): delimiter must be a single character in %s on line %d
952
953Notice: fputcsv(): enclosure must be a single character in %s on line %d
954int(18)
955int(18)
956bool(false)
957string(18) "-water--fruit-air
958"
959
960-- file opened in w+t --
961
962Notice: fputcsv(): delimiter must be a single character in %s on line %d
963
964Notice: fputcsv(): enclosure must be a single character in %s on line %d
965int(18)
966int(18)
967bool(false)
968string(%d) "-water--fruit-air
969"
970
971-- file opened in x+ --
972
973Notice: fputcsv(): delimiter must be a single character in %s on line %d
974
975Notice: fputcsv(): enclosure must be a single character in %s on line %d
976int(18)
977int(18)
978bool(false)
979string(18) "-water--fruit-air
980"
981
982-- file opened in x+b --
983
984Notice: fputcsv(): delimiter must be a single character in %s on line %d
985
986Notice: fputcsv(): enclosure must be a single character in %s on line %d
987int(18)
988int(18)
989bool(false)
990string(18) "-water--fruit-air
991"
992
993-- file opened in x+t --
994
995Notice: fputcsv(): delimiter must be a single character in %s on line %d
996
997Notice: fputcsv(): enclosure must be a single character in %s on line %d
998int(18)
999int(18)
1000bool(false)
1001string(%d) "-water--fruit-air
1002"
1003
1004-- file opened in r+ --
1005
1006Notice: fputcsv(): delimiter must be a single character in %s on line %d
1007
1008Notice: fputcsv(): enclosure must be a single character in %s on line %d
1009int(22)
1010int(22)
1011bool(false)
1012string(22) "-water---fruit---air-
1013"
1014
1015-- file opened in r+b --
1016
1017Notice: fputcsv(): delimiter must be a single character in %s on line %d
1018
1019Notice: fputcsv(): enclosure must be a single character in %s on line %d
1020int(22)
1021int(22)
1022bool(false)
1023string(22) "-water---fruit---air-
1024"
1025
1026-- file opened in r+t --
1027
1028Notice: fputcsv(): delimiter must be a single character in %s on line %d
1029
1030Notice: fputcsv(): enclosure must be a single character in %s on line %d
1031int(22)
1032int(22)
1033bool(false)
1034string(%d) "-water---fruit---air-
1035"
1036
1037-- file opened in a+ --
1038
1039Notice: fputcsv(): delimiter must be a single character in %s on line %d
1040
1041Notice: fputcsv(): enclosure must be a single character in %s on line %d
1042int(22)
1043int(22)
1044bool(false)
1045string(22) "-water---fruit---air-
1046"
1047
1048-- file opened in a+b --
1049
1050Notice: fputcsv(): delimiter must be a single character in %s on line %d
1051
1052Notice: fputcsv(): enclosure must be a single character in %s on line %d
1053int(22)
1054int(22)
1055bool(false)
1056string(22) "-water---fruit---air-
1057"
1058
1059-- file opened in a+t --
1060
1061Notice: fputcsv(): delimiter must be a single character in %s on line %d
1062
1063Notice: fputcsv(): enclosure must be a single character in %s on line %d
1064int(22)
1065int(22)
1066bool(false)
1067string(%d) "-water---fruit---air-
1068"
1069
1070-- file opened in w+ --
1071
1072Notice: fputcsv(): delimiter must be a single character in %s on line %d
1073
1074Notice: fputcsv(): enclosure must be a single character in %s on line %d
1075int(22)
1076int(22)
1077bool(false)
1078string(22) "-water---fruit---air-
1079"
1080
1081-- file opened in w+b --
1082
1083Notice: fputcsv(): delimiter must be a single character in %s on line %d
1084
1085Notice: fputcsv(): enclosure must be a single character in %s on line %d
1086int(22)
1087int(22)
1088bool(false)
1089string(22) "-water---fruit---air-
1090"
1091
1092-- file opened in w+t --
1093
1094Notice: fputcsv(): delimiter must be a single character in %s on line %d
1095
1096Notice: fputcsv(): enclosure must be a single character in %s on line %d
1097int(22)
1098int(22)
1099bool(false)
1100string(%d) "-water---fruit---air-
1101"
1102
1103-- file opened in x+ --
1104
1105Notice: fputcsv(): delimiter must be a single character in %s on line %d
1106
1107Notice: fputcsv(): enclosure must be a single character in %s on line %d
1108int(22)
1109int(22)
1110bool(false)
1111string(22) "-water---fruit---air-
1112"
1113
1114-- file opened in x+b --
1115
1116Notice: fputcsv(): delimiter must be a single character in %s on line %d
1117
1118Notice: fputcsv(): enclosure must be a single character in %s on line %d
1119int(22)
1120int(22)
1121bool(false)
1122string(22) "-water---fruit---air-
1123"
1124
1125-- file opened in x+t --
1126
1127Notice: fputcsv(): delimiter must be a single character in %s on line %d
1128
1129Notice: fputcsv(): enclosure must be a single character in %s on line %d
1130int(22)
1131int(22)
1132bool(false)
1133string(%d) "-water---fruit---air-
1134"
1135
1136-- file opened in r+ --
1137
1138Notice: fputcsv(): delimiter must be a single character in %s on line %d
1139
1140Notice: fputcsv(): enclosure must be a single character in %s on line %d
1141int(24)
1142int(24)
1143bool(false)
1144string(24) "&""""&:&"&:,:":&,&:,,,,
1145"
1146
1147-- file opened in r+b --
1148
1149Notice: fputcsv(): delimiter must be a single character in %s on line %d
1150
1151Notice: fputcsv(): enclosure must be a single character in %s on line %d
1152int(24)
1153int(24)
1154bool(false)
1155string(24) "&""""&:&"&:,:":&,&:,,,,
1156"
1157
1158-- file opened in r+t --
1159
1160Notice: fputcsv(): delimiter must be a single character in %s on line %d
1161
1162Notice: fputcsv(): enclosure must be a single character in %s on line %d
1163int(24)
1164int(24)
1165bool(false)
1166string(%d) "&""""&:&"&:,:":&,&:,,,,
1167"
1168
1169-- file opened in a+ --
1170
1171Notice: fputcsv(): delimiter must be a single character in %s on line %d
1172
1173Notice: fputcsv(): enclosure must be a single character in %s on line %d
1174int(24)
1175int(24)
1176bool(false)
1177string(24) "&""""&:&"&:,:":&,&:,,,,
1178"
1179
1180-- file opened in a+b --
1181
1182Notice: fputcsv(): delimiter must be a single character in %s on line %d
1183
1184Notice: fputcsv(): enclosure must be a single character in %s on line %d
1185int(24)
1186int(24)
1187bool(false)
1188string(24) "&""""&:&"&:,:":&,&:,,,,
1189"
1190
1191-- file opened in a+t --
1192
1193Notice: fputcsv(): delimiter must be a single character in %s on line %d
1194
1195Notice: fputcsv(): enclosure must be a single character in %s on line %d
1196int(24)
1197int(24)
1198bool(false)
1199string(%d) "&""""&:&"&:,:":&,&:,,,,
1200"
1201
1202-- file opened in w+ --
1203
1204Notice: fputcsv(): delimiter must be a single character in %s on line %d
1205
1206Notice: fputcsv(): enclosure must be a single character in %s on line %d
1207int(24)
1208int(24)
1209bool(false)
1210string(24) "&""""&:&"&:,:":&,&:,,,,
1211"
1212
1213-- file opened in w+b --
1214
1215Notice: fputcsv(): delimiter must be a single character in %s on line %d
1216
1217Notice: fputcsv(): enclosure must be a single character in %s on line %d
1218int(24)
1219int(24)
1220bool(false)
1221string(24) "&""""&:&"&:,:":&,&:,,,,
1222"
1223
1224-- file opened in w+t --
1225
1226Notice: fputcsv(): delimiter must be a single character in %s on line %d
1227
1228Notice: fputcsv(): enclosure must be a single character in %s on line %d
1229int(24)
1230int(24)
1231bool(false)
1232string(%d) "&""""&:&"&:,:":&,&:,,,,
1233"
1234
1235-- file opened in x+ --
1236
1237Notice: fputcsv(): delimiter must be a single character in %s on line %d
1238
1239Notice: fputcsv(): enclosure must be a single character in %s on line %d
1240int(24)
1241int(24)
1242bool(false)
1243string(24) "&""""&:&"&:,:":&,&:,,,,
1244"
1245
1246-- file opened in x+b --
1247
1248Notice: fputcsv(): delimiter must be a single character in %s on line %d
1249
1250Notice: fputcsv(): enclosure must be a single character in %s on line %d
1251int(24)
1252int(24)
1253bool(false)
1254string(24) "&""""&:&"&:,:":&,&:,,,,
1255"
1256
1257-- file opened in x+t --
1258
1259Notice: fputcsv(): delimiter must be a single character in %s on line %d
1260
1261Notice: fputcsv(): enclosure must be a single character in %s on line %d
1262int(24)
1263int(24)
1264bool(false)
1265string(%d) "&""""&:&"&:,:":&,&:,,,,
1266"
1267Done
1268