summaryrefslogtreecommitdiff
path: root/ext/domxml/domxml.c
diff options
context:
space:
mode:
authorUwe Steinmann <steinm@php.net>2000-03-08 17:51:58 +0000
committerUwe Steinmann <steinm@php.net>2000-03-08 17:51:58 +0000
commitd037fdc8be1e5a299c019ecd33123ee7c17b70e3 (patch)
tree923cbd40ef84cd966d850fcaba28402de937ed7f /ext/domxml/domxml.c
parentb5e13a0f97423d6e8cb43089cc2f5d13e823bb81 (diff)
downloadphp-git-d037fdc8be1e5a299c019ecd33123ee7c17b70e3.tar.gz
- several fixes and cleanups in hw module
Diffstat (limited to 'ext/domxml/domxml.c')
-rw-r--r--ext/domxml/domxml.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ext/domxml/domxml.c b/ext/domxml/domxml.c
index 87e9adf9ec..f430f0f1e3 100644
--- a/ext/domxml/domxml.c
+++ b/ext/domxml/domxml.c
@@ -1201,7 +1201,7 @@ static int node_attributes(zval **attributes, xmlNode *nodep)
add_property_stringl(pattr, "content", (char *) attr->val->content, strlen(attr->val->content), 1);
else {
if(0 == node_children(&children, attr->val))
- zend_hash_update(pattr->value.obj.properties, "content", strlen("content")+1, (void *) &children, sizeof(zval *), NULL);
+ zend_hash_update(pattr->value.obj.properties, "content", sizeof("content"), (void *) &children, sizeof(zval *), NULL);
}
zend_hash_next_index_insert((*attributes)->value.ht, &pattr, sizeof(zval *), NULL);
attr = attr->next;
@@ -1250,15 +1250,15 @@ static int node_children(zval **children, xmlNode *nodep)
/* Get the namespace of the current node and add it as a property */
if(!node_namespace(&namespace, last))
- zend_hash_update(child->value.obj.properties, "namespace", strlen("namespace")+1, (void *) &namespace, sizeof(zval *), NULL);
+ zend_hash_update(child->value.obj.properties, "namespace", sizeof("namespace"), (void *) &namespace, sizeof(zval *), NULL);
/* Get the attributes of the current node and add it as a property */
if(!node_attributes(&attributes, last))
- zend_hash_update(child->value.obj.properties, "attributes", strlen("attributes")+1, (void *) &attributes, sizeof(zval *), NULL);
+ zend_hash_update(child->value.obj.properties, "attributes", sizeof("attributes"), (void *) &attributes, sizeof(zval *), NULL);
/* Get recursively the children of the current node and add it as a property */
if(!node_children(&mchildren, last->childs))
- zend_hash_update(child->value.obj.properties, "children", strlen("children")+1, (void *) &mchildren, sizeof(zval *), NULL);
+ zend_hash_update(child->value.obj.properties, "children", sizeof("children"), (void *) &mchildren, sizeof(zval *), NULL);
last = last->next;
}
@@ -1305,7 +1305,7 @@ PHP_FUNCTION(xmltree)
if(0 == node_children(&children, root)) {
int i, count;
HashTable *lht;
- zend_hash_update(return_value->value.obj.properties, "children", strlen("children")+1, (void *) &children, sizeof(zval *), NULL);
+ zend_hash_update(return_value->value.obj.properties, "children", sizeof("children"), (void *) &children, sizeof(zval *), NULL);
/* Find the child of xml type element */
lht = children->value.ht;