1--TEST--
2fputcsv(): Checking data after calling the function
3--FILE--
4<?php
5
6$file = dirname(__FILE__) .'/fgetcsv-test.csv';
7
8$data = array(1, 2, 'foo', 'haha', array(4, 5, 6), 1.3, null);
9
10$fp = fopen($file, 'w');
11
12fputcsv($fp, $data);
13
14var_dump($data);
15
16@unlink($file);
17
18?>
19--EXPECTF--
20Notice: Array to string conversion in %s on line %d
21array(7) {
22  [0]=>
23  int(1)
24  [1]=>
25  int(2)
26  [2]=>
27  string(3) "foo"
28  [3]=>
29  string(4) "haha"
30  [4]=>
31  array(3) {
32    [0]=>
33    int(4)
34    [1]=>
35    int(5)
36    [2]=>
37    int(6)
38  }
39  [5]=>
40  float(1.3)
41  [6]=>
42  NULL
43}
44