summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplFileObject_fputcsv_variation15.phpt
blob: 1cde292e28dbda7a9874f6d7b6b49a01bbf4e1da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
SplFileObject::fputcsv() with empty $escape
--FILE--
<?php
$data = array(
    ['\\'],
    ['\\"']
);
$file = new SplTempFileObject;
foreach ($data as $record) {
    $file->fputcsv($record, ',', '"', '');
}
$file->rewind();
foreach ($file as $line) {
    echo $line;
}
?>
===DONE===
--EXPECT--
\
"\"""
===DONE===