Commit af0452ca authored by Anton Smirnov's avatar Anton Smirnov
Browse files

Fix feof not triggered in 7.0

parent e0fac8e3
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -115,6 +115,7 @@ class Decoder
                return $int;
            }

            fread($this->stream, 1); // trigger feof
            $readLength *= $readLength; // grow exponentially
        } while (!feof($this->stream) && $readLength < PHP_INT_MAX);