Suppress file name too long warning

Suppress Warning: "File name is longer than the maximum allowed path length on this platform (4096)"
This commit is contained in:
Marvin Feldmann
2015-09-14 17:15:10 +02:00
parent 4f144f2662
commit fa5aea7631

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;