diff options
author | Andi Gutmans <andi@php.net> | 2001-08-12 04:31:14 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2001-08-12 04:31:14 +0000 |
commit | ff39e51fdf5b17a20b4ac447e66c3048f03c29d3 (patch) | |
tree | 7fb854b406b6bf9ead66f3c44cb9c2253888058f /ext/com/com.h | |
parent | 1388a3a396140174712929e297d737b381ec29dc (diff) | |
download | php-git-ff39e51fdf5b17a20b4ac447e66c3048f03c29d3.tar.gz |
- Make com work with new object model
Diffstat (limited to 'ext/com/com.h')
-rw-r--r-- | ext/com/com.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/ext/com/com.h b/ext/com/com.h index e1f04c75c7..13ac1d68b8 100644 --- a/ext/com/com.h +++ b/ext/com/com.h @@ -21,20 +21,18 @@ typedef struct comval_ { #define ZVAL_COM(z,o) { \ zval *handle; \ + HashTable *properties; \ \ - /* OBJECTS_FIXME */ \ - Z_TYPE_P(z) = IS_OBJECT; \ - Z_OBJCE_P(z) = &com_class_entry; \ - \ - ALLOC_HASHTABLE(Z_OBJPROP_P(z)); \ - zend_hash_init(Z_OBJPROP_P(z), 0, NULL, ZVAL_PTR_DTOR, 0); \ + ALLOC_HASHTABLE(properties); \ + zend_hash_init(properties, 0, NULL, ZVAL_PTR_DTOR, 0); \ \ ALLOC_ZVAL(handle); \ INIT_PZVAL(handle); \ ZVAL_LONG(handle, zend_list_insert((o), IS_COM)); \ \ zval_copy_ctor(handle); \ - zend_hash_index_update(Z_OBJPROP_P(z), 0, &handle, sizeof(zval *), NULL); \ + zend_hash_index_update(properties, 0, &handle, sizeof(zval *), NULL); \ + object_and_properties_init(z, &com_class_entry, properties); \ } #define RETVAL_COM(o) ZVAL_COM(&return_value, o) |