rrichards               Sun Jan 11 12:01:55 2009 UTC

  Modified files:              (Branch: PHP_5_2)
    /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.4&r2=1.44.2.4.2.5&diff_format=u
Index: php-src/ext/xml/compat.c
diff -u php-src/ext/xml/compat.c:1.44.2.4.2.4 
php-src/ext/xml/compat.c:1.44.2.4.2.5
--- php-src/ext/xml/compat.c:1.44.2.4.2.4       Wed Dec 31 11:17:46 2008
+++ php-src/ext/xml/compat.c    Sun Jan 11 12:01:55 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) {



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to