summaryrefslogtreecommitdiff
path: root/ext/spl/tests/SplFileObject_fputcsv_variation15.phpt
blob: 0762af9f214b4746ff23cb78aa0d8e184ce6de59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--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;
}
?>
--EXPECT--
\
"\"""