Let's try to figure out why we're having an issue with a temp csv file
This commit is contained in:
parent
ee13533db3
commit
6e6c68e7b3
|
@ -522,6 +522,7 @@ class Csv extends BaseReader
|
||||||
|
|
||||||
// Attempt to guess mimetype
|
// Attempt to guess mimetype
|
||||||
$type = mime_content_type($pFilename);
|
$type = mime_content_type($pFilename);
|
||||||
|
var_dump($type);
|
||||||
$supportedTypes = [
|
$supportedTypes = [
|
||||||
'text/csv',
|
'text/csv',
|
||||||
'text/plain',
|
'text/plain',
|
||||||
|
|
|
@ -153,6 +153,7 @@ class CsvEnclosureTest extends Functional\AbstractFunctional
|
||||||
$writer->save($filename);
|
$writer->save($filename);
|
||||||
$filedata = file_get_contents($filename);
|
$filedata = file_get_contents($filename);
|
||||||
$filedata = preg_replace('/\\r/', '', $filedata);
|
$filedata = preg_replace('/\\r/', '', $filedata);
|
||||||
|
var_dump($filedata);
|
||||||
$reader = new CsvReader();
|
$reader = new CsvReader();
|
||||||
$reader->setDelimiter($delimiter);
|
$reader->setDelimiter($delimiter);
|
||||||
$reader->setEnclosure($enclosure);
|
$reader->setEnclosure($enclosure);
|
||||||
|
|
Loading…
Reference in New Issue