1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 19:23:22 +02:00

adjusted Satellite for Zend 2

This commit is contained in:
David Eriksson
2001-08-12 09:48:07 +00:00
parent 224600786c
commit 4fee32fac9
4 changed files with 7 additions and 33 deletions
+2 -2
View File
@@ -138,7 +138,7 @@ void orbit_save_data(zval * php_object, int type, void * data)
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 */
@@ -160,7 +160,7 @@ void * orbit_retrieve_data(const zval * php_object, int wanted_type)
/* 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 */
);
+2 -15
View File
@@ -179,7 +179,7 @@ static void OrbitObject_Wakeup(INTERNAL_FUNCTION_PARAMETERS)
/* 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)
@@ -242,20 +242,7 @@ zend_bool OrbitObject_Create(CORBA_Object source, zval * pDestination)
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);
+1 -14
View File
@@ -209,20 +209,7 @@ zend_bool OrbitStruct_Create(const char * pId, zval * pDestination)
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);
+2 -2
View File
@@ -145,7 +145,7 @@ static zend_bool satellite_zval_to_namedvalue_objref(const zval * pSource,
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);
@@ -308,7 +308,7 @@ static zend_bool satellite_zval_to_namedvalue_struct(const zval * 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 */