mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
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:
@@ -405,7 +405,7 @@ class parseCSV {
|
|||||||
$this->conditions = $conditions;
|
$this->conditions = $conditions;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_readable($input)) {
|
if (strlen($input) <= PHP_MAXPATHLEN && is_readable($input)) {
|
||||||
$this->data = $this->parse_file($input);
|
$this->data = $this->parse_file($input);
|
||||||
} else {
|
} else {
|
||||||
$this->file_data = &$input;
|
$this->file_data = &$input;
|
||||||
|
|||||||
Reference in New Issue
Block a user