]> granicus.if.org Git - php/commitdiff
- Fix for bug #14934: type property not set in comment nodes (domxml)
authorDerick Rethans <derick@php.net>
Fri, 25 Jan 2002 07:40:38 +0000 (07:40 +0000)
committerDerick Rethans <derick@php.net>
Fri, 25 Jan 2002 07:40:38 +0000 (07:40 +0000)
ext/domxml/php_domxml.c

index 50e0ec94619684de404694635132239844e316e7..0979fd4541e19bce1961b39d0df04755fbbcc7ce 100644 (file)
@@ -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;
                }