Bug #14934: type property not set in comment nodes
| From: | jtate at mi-corporation dot com | Date: | Tue, 08 Jan 2002 20:17:19 +0000 |
| Subject: | Bug #14934: type property not set in comment nodes | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-76280@lists.php.net to get a copy of this message | ||
From: jtate@mi-corporation.com
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