diff options
author | Nikita Popov <nikic@php.net> | 2016-11-12 22:17:21 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-11-12 22:17:21 +0100 |
commit | 547ad56b3194d0f1fb266948ecc24730e16784e3 (patch) | |
tree | 74d6b5aa2ef1c9675240cacfc06f4823c628daa5 | |
parent | 450a596ed3b724e60fa55f73bde4a47e05030538 (diff) | |
download | php-git-547ad56b3194d0f1fb266948ecc24730e16784e3.tar.gz |
Fix build
-rw-r--r-- | ext/xml/compat.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ext/xml/compat.c b/ext/xml/compat.c index 0bb7b28410..22f2abee24 100644 --- a/ext/xml/compat.c +++ b/ext/xml/compat.c @@ -593,15 +593,16 @@ has been defined and none can be detected */ } #endif + + if (parser->parser->lastError.level >= XML_ERR_WARNING) { + return 0; + } + error = xmlParseChunk(parser->parser, (char *) data, data_len, is_final); if (error) { return 0; } else { return 1; - } else if (parser->parser->lastError.level > XML_ERR_WARNING ){ - return 0; - } else { - return 1; } } |