1--TEST-- 2SplFileObject::fputcsv() with empty $escape 3--FILE-- 4<?php 5$data = array( 6 ['\\'], 7 ['\\"'] 8); 9$file = new SplTempFileObject; 10foreach ($data as $record) { 11 $file->fputcsv($record, ',', '"', ''); 12} 13$file->rewind(); 14foreach ($file as $line) { 15 echo $line; 16} 17?> 18--EXPECT-- 19\ 20"\""" 21