summaryrefslogtreecommitdiff
path: root/ext/qtdom/qtdom.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2001-08-13 18:47:52 +0000
committerAndi Gutmans <andi@php.net>2001-08-13 18:47:52 +0000
commitad18bd07f1892e9c3445e4b6acb4e6ada70c1a45 (patch)
tree69a2d15caf06e7065e8c366af2d5517f7c1f261d /ext/qtdom/qtdom.c
parent33539126d0511b4178443724a68de43dc8d228a4 (diff)
downloadphp-git-ad18bd07f1892e9c3445e4b6acb4e6ada70c1a45.tar.gz
- More Engine 2 work.
Diffstat (limited to 'ext/qtdom/qtdom.c')
-rw-r--r--ext/qtdom/qtdom.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/qtdom/qtdom.c b/ext/qtdom/qtdom.c
index 7c4bb4386e..0fa2093abd 100644
--- a/ext/qtdom/qtdom.c
+++ b/ext/qtdom/qtdom.c
@@ -190,10 +190,7 @@ static int qdom_find_children( zval **children, struct qdom_node *orig_node TSRM
child_node = qdom_do_first_child( child_node );
if ( qdom_find_children( &n_children, child_node TSRMLS_CC) > 0 )
{
- zend_hash_update(child->value.obj.properties,
- "children", sizeof("children"),
- (void *) &n_children, sizeof(zval *),
- NULL);
+ zend_hash_update(Z_OBJPROP_P(child), "children", sizeof("children"), (void *) &n_children, sizeof(zval *), NULL);
}
qdom_do_node_free( child_node );
}
@@ -242,7 +239,7 @@ PHP_FUNCTION(qdom_tree)
if ( qdom_find_children( &children, node TSRMLS_CC) > 0 )
{
add_property_long(return_value, "type", node->Type);
- zend_hash_update(return_value->value.obj.properties, "children", sizeof("children"), (void *) &children, sizeof(zval *), NULL);
+ zend_hash_update(Z_OBJPROP_P(return_value), "children", sizeof("children"), (void *) &children, sizeof(zval *), NULL);
}
qdom_do_free( doc );