We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64945e9 commit f2a8a8cCopy full SHA for f2a8a8c
ext/xml/compat.c
@@ -593,13 +593,13 @@ has been defined and none can be detected */
593
}
594
#endif
595
596
+ if (parser->parser->lastError.level >= XML_ERR_WARNING) {
597
+ return 0;
598
+ }
599
+
600
error = xmlParseChunk(parser->parser, (char *) data, data_len, is_final);
601
if (!error) {
602
return 1;
- } else if (parser->parser->lastError.level > XML_ERR_WARNING ){
- return 0;
- } else {
- return 1;
603
604
605
0 commit comments