mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
20 lines
299 B
PHP
20 lines
299 B
PHP
--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--
|
|
\
|
|
"\"""
|