Commit 0d677301 authored by Anton Smirnov's avatar Anton Smirnov
Browse files

Move fseek to the string method

parent a61b11d4
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -92,8 +92,6 @@ class Decoder
                return;

            default:
                // rewind back 1 character because it's a part of string length
                fseek($this->stream, -1, SEEK_CUR);
                $this->processString();
        }
    }
@@ -134,6 +132,9 @@ class Decoder

    private function processString()
    {
        // rewind back 1 character because it's a part of string length
        fseek($this->stream, -1, SEEK_CUR);

        $lenStr = $this->readInteger(':');

        if ($lenStr === false) {