cvs: php-src(PHP_5_3) /ext/xml compat.c
| From: | Rob Richards | Date: | Sun, 11 Jan 2009 12:01:16 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/xml compat.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-55530@lists.php.net to get a copy of this message | ||
rrichards Sun Jan 11 12:01:16 2009 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/xml compat.c
Log:
MFH: fix bug #45996 (libxml2 2.7 causes breakage with character data in xml_parse())
http://cvs.php.net/viewvc.cgi/php-src/ext/xml/compat.c?r1=1.44.2.4.2.1.2.3&r2=1.44.2.4.2.1.2.4&diff_format=u
Index: php-src/ext/xml/compat.c
diff -u php-src/ext/xml/compat.c:1.44.2.4.2.1.2.3 php-src/ext/xml/compat.c:1.44.2.4.2.1.2.4
--- php-src/ext/xml/compat.c:1.44.2.4.2.1.2.3 Wed Dec 31 11:15:46 2008
+++ php-src/ext/xml/compat.c Sun Jan 11 12:01:16 2009
@@ -482,6 +482,10 @@
parser->parser->charset = XML_CHAR_ENCODING_NONE;
#endif
+#if LIBXML_VERSION >= 20703
+ xmlCtxtUseOptions(parser->parser, XML_PARSE_OLDSAX);
+#endif
+
parser->parser->replaceEntities = 1;
parser->parser->wellFormed = 0;
if (sep != NULL) {