mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 00:36:38 +00:00
Merge pull request #67 from BreyndotEchse/patch-1
Suppress file name too long warning
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user