Make csv reader binary safe

This commit is contained in:
Arkadiusz Kondas 2016-12-06 08:46:55 +01:00
parent 12d0adda62
commit c4f0d1e3b0

View File

@ -21,7 +21,7 @@ class CsvDataset extends ArrayDataset
throw DatasetException::missingFile(basename($filepath));
}
if (false === $handle = fopen($filepath, 'r')) {
if (false === $handle = fopen($filepath, 'rb')) {
throw DatasetException::cantOpenFile(basename($filepath));
}