ID: 38823 Updated by: [EMAIL PROTECTED] Reported By: ladislav dot prosek at matfyz dot cz Status: Bogus Bug Type: DOM XML related Operating System: Windows XP SP2 Pro PHP Version: 5.1.6 New Comment:
(Rob also implemented workaround for it in PHP: http://news.php.net/php.cvs/40543) Previous Comments: ------------------------------------------------------------------------ [2006-09-16 19:09:42] ladislav dot prosek at matfyz dot cz http://bugzilla.gnome.org/show_bug.cgi?id=355962 ------------------------------------------------------------------------ [2006-09-16 19:09:04] ladislav dot prosek at matfyz dot cz Should be fixed in libxml2 now. ------------------------------------------------------------------------ [2006-09-14 13:02:37] [EMAIL PROTECTED] Yes, please report it to libxml2 developers. ------------------------------------------------------------------------ [2006-09-14 12:57:02] ladislav dot prosek at matfyz dot cz If you replace $x->appendData("b") with $x->insertData(1, "b"), it will produce the expected output. Clearly it is a bug, in PHP or libxml2 (and definitely not bogus). If you're convinced that it's not in PHP, then someone should report it to libxml2. Will you do it or should I? ------------------------------------------------------------------------ [2006-09-14 12:51:05] [EMAIL PROTECTED] Tell that to libxml2 authors? tree.c: .... int xmlTextConcat(xmlNodePtr node, const xmlChar *content, int len) { if (node == NULL) return(-1); if ((node->type != XML_TEXT_NODE) && (node->type != XML_CDATA_SECTION_NODE)) { #ifdef DEBUG_TREE xmlGenericError(xmlGenericErrorContext, "xmlTextConcat: node is not text nor CDATA\n"); #endif return(-1); } .... ------------------------------------------------------------------------ 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/38823 -- Edit this bug report at http://bugs.php.net/?id=38823&edit=1