summaryrefslogtreecommitdiff
path: root/ext/domxml
diff options
context:
space:
mode:
authorUwe Steinmann <steinm@php.net>2000-03-06 13:11:21 +0000
committerUwe Steinmann <steinm@php.net>2000-03-06 13:11:21 +0000
commit92943a0c3f808fe4e7664c53768783b6394df8b8 (patch)
tree2b5c7b3cad3d5c1e6f35b601d47f972e777479c9 /ext/domxml
parentfc173b6acec07008b498f5145606cef065e80346 (diff)
downloadphp-git-92943a0c3f808fe4e7664c53768783b6394df8b8.tar.gz
- root property in Dom Doc class is now reference to array element in
children property
Diffstat (limited to 'ext/domxml')
-rw-r--r--ext/domxml/domxml.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/domxml/domxml.c b/ext/domxml/domxml.c
index 3af9b851a4..70e12ebaa5 100644
--- a/ext/domxml/domxml.c
+++ b/ext/domxml/domxml.c
@@ -1317,9 +1317,9 @@ PHP_FUNCTION(xmltree)
if((*keydata)->type == IS_OBJECT) {
if (zend_hash_find((*keydata)->value.obj.properties, "type", sizeof("type"), (void **)&prop) == SUCCESS) {
if((*prop)->value.lval == XML_ELEMENT_NODE) {
- zend_hash_update(return_value->value.obj.properties, "root", strlen("root")+1, (void *) &(*keydata), sizeof(zval *), NULL);
-// (*keydata)->is_ref = 1;
-// (*keydata)->refcount = 2;
+ zend_hash_update(return_value->value.obj.properties, "root", sizeof("root"), (void **) keydata, sizeof(zval *), NULL);
+ (*keydata)->is_ref = 1;
+ (*keydata)->refcount++;
}
}
}