Merge pull request #67 from BreyndotEchse/patch-1

Suppress file name too long warning
This commit is contained in:
Fonata
2017-11-02 15:09:33 -06:00
committed by GitHub

View File

@@ -405,7 +405,7 @@ class parseCSV {
$this->conditions = $conditions;
}
if (is_readable($input)) {
if (strlen($input) <= PHP_MAXPATHLEN && is_readable($input)) {
$this->data = $this->parse_file($input);
} else {
$this->file_data = &$input;