Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
Remove max line length when reading CSV files (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrilo authored Mar 28, 2017
1 parent d898f91 commit 3128f86
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Spout/Reader/CSV/RowIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
class RowIterator implements IteratorInterface
{
/**
* If no value is given to fgetcsv(), it defaults to 8192 (which may be too low).
* Alignement with other functions like fgets() is discussed here: https://bugs.php.net/bug.php?id=48421
* Value passed to fgetcsv. 0 means "unlimited" (slightly slower but accomodates for very long lines).
*/
const MAX_READ_BYTES_PER_LINE = 32768;
const MAX_READ_BYTES_PER_LINE = 0;

/** @var resource Pointer to the CSV file to read */
protected $filePointer;
Expand Down

0 comments on commit 3128f86

Please sign in to comment.