pattr = php_domobject_new((xmlNodePtr) attr, &ret TSRMLS_CC);
/** XXX FIXME XXX */
/* if(0 <= (n = node_children(&children, attr->children TSRMLS_CC))) {
- zend_hash_update(pattr->value.obj.properties, "children", sizeof("children"), (void *) &children, sizeof(zval *), NULL);
+ zend_hash_update(Z_OBJPROP_P(value), "children", sizeof("children"), (void *) &children, sizeof(zval *), NULL);
}
*/ add_property_string(pattr, "name", (char *) (attr->name), 1);
add_property_string(pattr, "value", xmlNodeGetContent((xmlNodePtr) attr), 1);
/* Get the namespace of the current node and add it as a property */
/* XXX FIXME XXX */
/* if(!node_namespace(&namespace, last))
- zend_hash_update(child->value.obj.properties, "namespace", sizeof("namespace"), (void *) &namespace, sizeof(zval *), NULL);
+ zend_hash_update(Z_OBJPROP_P(child), "namespace", sizeof("namespace"), (void *) &namespace, sizeof(zval *), NULL);
*/
/* Get the attributes of the current node and add it as a property */
HashTable *symtable;
if (arg->type == IS_OBJECT) {
- symtable = arg->value.obj.properties;
+ symtable = Z_OBJPROP_P(arg);
} else {
symtable = arg->value.ht;
}
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 );
}
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 );