We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3b4cbe8 + ccf0f40 commit bc0d909Copy full SHA for bc0d909
src/Parser.php
@@ -146,6 +146,8 @@ public function parse(): void
146
147
while (!feof($this->stream) && !$eof) {
148
$pos = ftell($this->stream);
149
+ // set the underlying streams chunk size, so it delivers according to the request from stream_get_line
150
+ stream_set_chunk_size($this->stream, $this->bufferSize);
151
$line = stream_get_line($this->stream, $this->bufferSize, $this->lineEnding);
152
153
if (false === $line) {
0 commit comments