com php-src: fixed bug generated by fixes bug #73135: ext/xml/compat.c
| From: | Joe Watkins | Date: | Sat, 12 Nov 2016 17:43:16 +0000 |
| Subject: | com php-src: fixed bug generated by fixes bug #73135: ext/xml/compat.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-95728@lists.php.net to get a copy of this message | ||
Commit: 72be8de39f81e492c7854793cce7f90d1d5900e2
Author: Edgar R. Sandi <edgar.r.sandi@gmail.com> Sun, 16 Oct 2016 04:15:47 -0200
Committer: Joe Watkins <krakjoe@php.net> Sat, 12 Nov 2016 17:43:16 +0000
Parents: 1631c61feb088f4ea31dbec42896624a50c578f6
Branches: PHP-7.0
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=72be8de39f81e492c7854793cce7f90d1d5900e2
Log:
fixed bug generated by fixes bug #73135
Bugs:
https://bugs.php.net/73135
Changed paths:
M ext/xml/compat.c
Diff:
diff --git a/ext/xml/compat.c b/ext/xml/compat.c
index 23db0ca..d39afac 100644
--- a/ext/xml/compat.c
+++ b/ext/xml/compat.c
@@ -598,7 +598,9 @@ has been defined and none can be detected */
}
error = xmlParseChunk(parser->parser, (char *) data, data_len, is_final);
- if (!error) {
+ if (error) {
+ return 0;
+ } else {
return 1;
}
}