We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e5b36a commit 1d74f11Copy full SHA for 1d74f11
log/logiterator.php
@@ -68,8 +68,8 @@ function next() {
68
while ($this->position >= 0) {
69
fseek($this->handle, $this->position);
70
$ch = fgetc($this->handle);
71
- if ($ch == "\n" || $this->position === 0) {
72
- if ($line != '') {
+ if ($ch === "\n" || $this->position === 0) {
+ if ($line !== '') {
73
// Add the first character if at the start of the file,
74
// because it doesn't hit the else in the loop
75
if ($this->position === 0) {
0 commit comments