From 22b1b4547fc640cc0757145bb250732d1d1dd141 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 25 Jan 2002 07:40:38 +0000 Subject: [PATCH] - Fix for bug #14934: type property not set in comment nodes (domxml) --- ext/domxml/php_domxml.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/domxml/php_domxml.c b/ext/domxml/php_domxml.c index 50e0ec9461..0979fd4541 100644 --- a/ext/domxml/php_domxml.c +++ b/ext/domxml/php_domxml.c @@ -960,8 +960,10 @@ static zval *php_domobject_new(xmlNodePtr obj, int *found TSRMLS_DC) object_init_ex(wrapper, domxmlcomment_class_entry); rsrc_type = le_domxmlcommentp; content = xmlNodeGetContent(nodep); - if (content) + if (content) { + add_property_long(wrapper, "type", Z_TYPE_P(nodep)); add_property_stringl(wrapper, "content", (char *) content, strlen(content), 1); + } break; } -- 2.40.0