diff --git a/bindzonefile.php b/bindzonefile.php index b6c8be1..7af1c11 100644 --- a/bindzonefile.php +++ b/bindzonefile.php @@ -69,6 +69,8 @@ public function parse_into_rrsets(Zone $zone, $comment_handling) { $line_number++; $line = rtrim($line); if($continuation) { + assert(isset($comment)); + assert(isset($content_parsed)); try { list($content_parsed, $more_comment, $continuation) = $this->parse_content(trim($line), $type, $content_parsed); $comment .= " $more_comment"; @@ -223,6 +225,7 @@ private function parse_content($input, $type, $content = array()) { if($in_comment) { $comment .= $char; } elseif($in_string) { + assert(isset($string)); if($escape) { $string .= $char; $escape = false;