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?>
17--CLEAN--
18<?php
19$file = dirname(__FILE__) .'/fgetcsv-test.csv';
20unlink($file);
21?>
22--EXPECTF--
23Notice: Array to string conversion in %s on line %d
24array(7) {
25  [0]=>
26  int(1)
27  [1]=>
28  int(2)
29  [2]=>
30  string(3) "foo"
31  [3]=>
32  string(4) "haha"
33  [4]=>
34  array(3) {
35    [0]=>
36    int(4)
37    [1]=>
38    int(5)
39    [2]=>
40    int(6)
41  }
42  [5]=>
43  float(1.3)
44  [6]=>
45  NULL
46}
47