From:             [EMAIL PROTECTED]
Operating system: Linux 2.4.9-RH 7.2
PHP version:      4.1.1
PHP Bug Type:     DOM XML related
Bug description:  type property not set in comment nodes

The domxml_node->type property is not set for nodes of type
XML_COMMENT_NODE.  The following patch fixes the problem.

--- ext/domxml/php_domxml.c.orig        Tue Jan  8 15:09:30 2002
+++ ext/domxml/php_domxml.c     Tue Jan  8 15:10:12 2002
@@ -819,6 +819,7 @@
                        rsrc_type = le_domxmlcommentp;
                        content = xmlNodeGetContent(nodep);
                        if (content)
+                                add_property_long(wrapper, "type",
Z_TYPE_P(nodep
));
                                add_property_stringl(wrapper, "content",
(char *)
content, strlen(content), 1);
                        break;
                }


Please e-mail if you wish more information.
-- 
Edit bug report at: http://bugs.php.net/?id=14934&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to