From: Derick Rethans Date: Fri, 25 Jan 2002 07:40:38 +0000 (+0000) Subject: - Fix for bug #14934: type property not set in comment nodes (domxml) X-Git-Tag: PRE_ISSET_PATCH~84 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22b1b4547fc640cc0757145bb250732d1d1dd141;p=php - Fix for bug #14934: type property not set in comment nodes (domxml) --- 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; }