diff options
author | David Eriksson <eriksson@php.net> | 2001-08-12 09:48:07 +0000 |
---|---|---|
committer | David Eriksson <eriksson@php.net> | 2001-08-12 09:48:07 +0000 |
commit | 4fee32fac9ed9bdb9beadbc9f1a0ac99e71ee1bf (patch) | |
tree | 5bca58b70e2c806b18fe25a43c64720283d9c294 /ext/satellite/struct.c | |
parent | 224600786c0d4afb4e4e44689024c6be237d58ae (diff) | |
download | php-git-4fee32fac9ed9bdb9beadbc9f1a0ac99e71ee1bf.tar.gz |
adjusted Satellite for Zend 2
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); |