diff options
author | Derick Rethans <derick@php.net> | 2002-01-25 07:40:38 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2002-01-25 07:40:38 +0000 |
commit | 22b1b4547fc640cc0757145bb250732d1d1dd141 (patch) | |
tree | a3fd7062c43672f827b4d654b08cee8c13c110db /ext/domxml/php_domxml.c | |
parent | d9692f7896847f96a2517cbbb7d8a95b73098a3d (diff) | |
download | php-git-22b1b4547fc640cc0757145bb250732d1d1dd141.tar.gz |
- Fix for bug #14934: type property not set in comment nodes (domxml)
Diffstat (limited to 'ext/domxml/php_domxml.c')
-rw-r--r-- | ext/domxml/php_domxml.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |