mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-28 07:46:30 +00:00
Make csv reader binary safe
This commit is contained in:
parent
12d0adda62
commit
c4f0d1e3b0
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user