ID: 45996 Comment by: sanepit at o2 dot pl Reported By: phpbugs at colin dot guthr dot ie Status: Assigned Bug Type: XML related Operating System: Mandriva Linux PHP Version: 5.2.6 Assigned To: rrichards New Comment:
I have the same problem on Gentoo with new libxml2-2.6.32 In moodle platform this problem disable to restore courses backup. Previous Comments: ------------------------------------------------------------------------ [2008-10-22 11:39:48] markus dot gevers at contenit dot de Hallo, is there a solution yet? I have the same problem on Fedora Core 9. I also have this problem using libxml2-2.6.32 Can anyone help me? Best regards, Markus ------------------------------------------------------------------------ [2008-10-17 14:08:57] [EMAIL PROTECTED] Changing the flag fixes internally defined entities, but breaks the rest of the entity handling. ------------------------------------------------------------------------ [2008-10-17 13:40:27] [EMAIL PROTECTED] So far as I can tell the only problem here is that libxml2 is bailing in parser.c:xmlParseReference() because the ctxt->wellFormed flag is cleared. It is set to zero by compat.c, which seems simply wrong; xmlCreate*ParserContext initialize it to non-zero. If I apply this patch it works fine: http://people.apache.org/~jorton/php-5.2.6-xmlwformed.patch Rob? ------------------------------------------------------------------------ [2008-10-16 14:56:03] mike at kogan dot org Nevermind we got it - libexpat is in and workaround is fine. Thanks again and happy coding! ------------------------------------------------------------------------ [2008-10-16 02:01:00] mike at Kogan dot org Thanks Col - unfortunately after thrashing on this for a day I either have gotten libexpat built in and it hasn't worked, or my efforts to build it into Apache2 have not worked. How can I tell once I've rebuilt apache whether it's in or not? Will it show up on phpinfo? I see libexpat.so on the system and configured apache --with-expat=builtin and tried using the expat on the system but I'm not sure if it's actually getting there. Sorry in advance if this is not the place to ask such a question but googling libexpat has not been fruitful. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/45996 -- Edit this bug report at http://bugs.php.net/?id=45996&edit=1