]> granicus.if.org Git - php/commitdiff
- More Engine 2 work.
authorAndi Gutmans <andi@php.net>
Mon, 13 Aug 2001 18:47:52 +0000 (18:47 +0000)
committerAndi Gutmans <andi@php.net>
Mon, 13 Aug 2001 18:47:52 +0000 (18:47 +0000)
ext/domxml/php_domxml.c
ext/icap/php_icap.c
ext/qtdom/qtdom.c

index aac047f1d8d8c53d4e15235d3f41e5d97b630d99..71b577157331296694a56c616f0263b0e8e7a433 100644 (file)
@@ -2325,7 +2325,7 @@ static int node_attributes(zval **attributes, xmlNode *nodep TSRMLS_DC)
                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);
@@ -2365,7 +2365,7 @@ static int node_children(zval **children, xmlNode *nodep TSRMLS_DC)
                /* 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 */
index 692206a49633d5281b76731338d5371d1970c25b..327e6d120a49414f85be5126502d5f43e9d677d1 100644 (file)
@@ -141,7 +141,7 @@ static int add_assoc_object(pval *arg, char *key, pval *tmp)
         HashTable *symtable;
         
         if (arg->type == IS_OBJECT) {
-                symtable = arg->value.obj.properties;
+                symtable = Z_OBJPROP_P(arg);
         } else {
                 symtable = arg->value.ht;
         }
index 7c4bb4386ecfe8e0cab01d7105651ee2cee33255..0fa2093abdaa296d023046a29a8449f9f0efe3a1 100644 (file)
@@ -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 );