1--TEST-- 2SplFileObject::fputcsv(): Checking data after calling the function 3--FILE-- 4<?php 5$fo = new SplFileObject(__DIR__ . '/SplFileObject_fputcsv1.csv', 'w'); 6$fo->setCsvControl(escape: ''); 7 8$data = array(1, 2, 'foo', 'haha', array(4, 5, 6), 1.3, null); 9 10$fo->fputcsv($data); 11 12var_dump($data); 13?> 14--CLEAN-- 15<?php 16$file = __DIR__ . '/SplFileObject_fputcsv1.csv'; 17unlink($file); 18?> 19--EXPECTF-- 20Warning: 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