Clear parsing_heredoc at the end of file

This commit is contained in:
Yukihiro "Matz" Matsumoto
2016-12-10 12:34:23 +09:00
parent 8c26efd7ed
commit 7b968ca893
+1
View File
@@ -3946,6 +3946,7 @@ parse_string(parser_state *p)
}
}
if ((len-1 == hinf->term_len) && (strncmp(s, hinf->term, len-1) == 0)) {
if (c < 0) p->parsing_heredoc = NULL;
return tHEREDOC_END;
}
}