Remove max line length when reading CSV files (#399)

This commit is contained in:
Adrien Loison 2017-03-28 13:55:06 +02:00 committed by GitHub
parent d898f91917
commit 3128f86769

View File

@ -14,10 +14,9 @@ use Box\Spout\Common\Helper\EncodingHelper;
class RowIterator implements IteratorInterface class RowIterator implements IteratorInterface
{ {
/** /**
* If no value is given to fgetcsv(), it defaults to 8192 (which may be too low). * Value passed to fgetcsv. 0 means "unlimited" (slightly slower but accomodates for very long lines).
* Alignement with other functions like fgets() is discussed here: https://bugs.php.net/bug.php?id=48421
*/ */
const MAX_READ_BYTES_PER_LINE = 32768; const MAX_READ_BYTES_PER_LINE = 0;
/** @var resource Pointer to the CSV file to read */ /** @var resource Pointer to the CSV file to read */
protected $filePointer; protected $filePointer;