We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://3v4l.org/tL8n9
This bug is reported to PHP bug system https://bugs.php.net/bug.php?id=75917&edit=2
A workaround should be made available in the Reader class to keep setHeader work as intended
Reader
protected function setHeader(int $offset): array { $this->document->setFlags(SplFileObject::READ_CSV | SplFileObject::READ_AHEAD | SplFileObject::SKIP_EMPTY); $this->document->setCsvControl($this->delimiter, $this->enclosure, $this->escape); $this->document->seek($offset); //THIS NO LONGER WORKS if (empty($header = $this->document->current())) { throw new Exception(sprintf('The header record does not exist or is empty at offset: `%s`', $offset)); } if (0 === $offset) { return $this->removeBOM($header, mb_strlen($this->getInputBOM()), $this->enclosure); } return $header; }
The text was updated successfully, but these errors were encountered:
bugfix issue #279
9050afb
using LimitIterator does not work as it uses the broken seek method.
LimitIterator
seek
Sorry, something went wrong.
work around while waiting for PHP fix for #279
92f7d62
patch landed on master...
improve patch for SplFileObject::seek bug #279
2881536
improve patch #279
6dba48d
bug fix PHP7.2 bug see #279
d99c1c4
nyamsprod
No branches or pull requests
https://3v4l.org/tL8n9
This bug is reported to PHP bug system https://bugs.php.net/bug.php?id=75917&edit=2
A workaround should be made available in the
Reader
class to keep setHeader work as intendedThe text was updated successfully, but these errors were encountered: