cvs: php-src /ext/xml compat.c
| From: | Rob Richards | Date: | Sun, 11 Jan 2009 12:00:31 +0000 |
| Subject: | cvs: php-src /ext/xml compat.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-55529@lists.php.net to get a copy of this message | ||
rrichards Sun Jan 11 12:00:31 2009 UTC
Modified files:
/php-src/ext/xml compat.c
Log:
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.52&r2=1.53&diff_format=u
Index: php-src/ext/xml/compat.c
diff -u php-src/ext/xml/compat.c:1.52 php-src/ext/xml/compat.c:1.53
--- php-src/ext/xml/compat.c:1.52 Wed Dec 31 11:12:38 2008
+++ php-src/ext/xml/compat.c Sun Jan 11 12:00:30 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) {