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===DONE===
19--EXPECT--
20\
21"\"""
22===DONE===
23