Skip to content

Commit f2a8a8c

Browse files
committed
fixes bug #73135
1 parent 64945e9 commit f2a8a8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/xml/compat.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -593,13 +593,13 @@ has been defined and none can be detected */
593593
}
594594
#endif
595595

596+
if (parser->parser->lastError.level >= XML_ERR_WARNING) {
597+
return 0;
598+
}
599+
596600
error = xmlParseChunk(parser->parser, (char *) data, data_len, is_final);
597601
if (!error) {
598602
return 1;
599-
} else if (parser->parser->lastError.level > XML_ERR_WARNING ){
600-
return 0;
601-
} else {
602-
return 1;
603603
}
604604
}
605605

0 commit comments

Comments
 (0)