INIT_PZVAL(orbit_data_handle); /* set reference count */
zend_hash_index_update(
- php_object->value.obj.properties, /* hashtable */
+ Z_OBJPROP_P(php_object), /* hashtable */
0, /* hash??? */
&orbit_data_handle, /* data */
sizeof(pval *), /* data size */
/* get handle to corba data */
zend_hash_index_find(
- php_object->value.obj.properties, /* hash table */
+ Z_OBJPROP_P(php_object), /* hash table */
0, /* hash??? */
(void **)&orbit_data_handle /* data */
);
/* find IOR property */
if (zend_hash_find(
- this_ptr->value.obj.properties,
+ Z_OBJPROP_P(this_ptr),
IOR_PROPERTY_KEY,
sizeof(IOR_PROPERTY_KEY),
(void**)&pp_ior) != SUCCESS)
goto error;
}
- /* set zval members */
- pDestination->type = IS_OBJECT;
- pDestination->is_ref = 1;
- pDestination->refcount = 1;
-
- pDestination->value.obj.ce = &OrbitObject_class_entry;
- pDestination->value.obj.properties = orbit_new(HashTable);
-
- zend_hash_init(
- pDestination->value.obj.properties, /* hash table */
- 0, /* size */
- NULL, /* hash function */
- ZVAL_PTR_DTOR, /* destructor */
- 0); /* persistent */
+ object_init_ex(pDestination, &OrbitObject_class_entry);
/* save orbit data */
OrbitObject_SaveData(pDestination, p_object);
if (!OrbitStruct_Initialize(pId, p_struct))
goto error;
- /* set zval members */
- pDestination->type = IS_OBJECT;
- pDestination->is_ref = 1;
- pDestination->refcount = 1;
-
- pDestination->value.obj.ce = &OrbitStruct_class_entry;
- pDestination->value.obj.properties = orbit_new(HashTable);
-
- zend_hash_init(
- pDestination->value.obj.properties, /* hash table */
- 0, /* size */
- NULL, /* hash function */
- ZVAL_PTR_DTOR, /* destructor */
- 0); /* persistent */
+ object_init_ex(pDestination, &OrbitStruct_class_entry);
/* save orbit data */
OrbitStruct_SaveData(pDestination, p_struct);
goto error;
/* see that it's a corba object */
- if (strcmp(pSource->value.obj.ce->name, "OrbitObject") != 0)
+ if (strcmp(Z_OBJCE_P(pSource)->name, "OrbitObject") != 0)
goto error; /* bad class type */
pObject = OrbitObject_RetrieveData(pSource);
goto error; /* bad source type */
/* see that it's a structure object */
- if (strcmp(pSource->value.obj.ce->name, "OrbitStruct") != 0)
+ if (strcmp(Z_OBJCE_P(pSource)->name, "OrbitStruct") != 0)
goto error; /* bad class type */
/* get struct info */