diff options
Diffstat (limited to 'ext/satellite/struct.c')
-rw-r--r-- | ext/satellite/struct.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/ext/satellite/struct.c b/ext/satellite/struct.c index 47f377e9cd..e7ffbf7daa 100644 --- a/ext/satellite/struct.c +++ b/ext/satellite/struct.c @@ -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); |