_status) && $prevChar == Unserialize_Parser::SYMBOL_COLON) { $this->_status = self::READING_LENGTH; } if ($this->_status == self::READING_LENGTH) { if ($char != Unserialize_Parser::SYMBOL_COLON) { $this->_length .= $char; } else { $this->_length = (int)$this->_length; $this->_status = self::FINISHED_LENGTH; } } if ($this->_status == self::FINISHED_LENGTH) { if ($char == Unserialize_Parser::SYMBOL_QUOTE) { $this->_status = self::READING_VALUE; return null; } } if ($this->_status == self::READING_VALUE) { if (strlen($this->_value) < $this->_length) { $this->_value .= $char; return null; } if (strlen($this->_value) == $this->_length) { if ($char == Unserialize_Parser::SYMBOL_SEMICOLON && $prevChar == Unserialize_Parser::SYMBOL_QUOTE) { return (string)$this->_value; } } } return null; } }