diff options
author | Zeev Suraski <zeev@php.net> | 2000-02-05 15:11:24 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-02-05 15:11:24 +0000 |
commit | 9f51f154aa5e40baabd3b605675edef5772778a8 (patch) | |
tree | 913caedad44228494f4fd13c7ea9b337d499660f /Zend/zend_variables.c | |
parent | 5ac1ee403bed25e0a0b6c515991692df07c41ddb (diff) | |
download | php-git-9f51f154aa5e40baabd3b605675edef5772778a8.tar.gz |
- Stop passing list/plist to internal functions
- Add a typedef for the pCopyConstructor function pointer
- Minor hacks
Diffstat (limited to 'Zend/zend_variables.c')
-rw-r--r-- | Zend/zend_variables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_variables.c b/Zend/zend_variables.c index 028f0b7cdf..640e6e9f72 100644 --- a/Zend/zend_variables.c +++ b/Zend/zend_variables.c @@ -138,7 +138,7 @@ ZEND_API int _zval_copy_ctor(zval *zvalue ZEND_FILE_LINE_DC) } zvalue->value.ht = (HashTable *) emalloc_rel(sizeof(HashTable)); zend_hash_init(zvalue->value.ht, 0, NULL, ZVAL_PTR_DTOR, 0); - zend_hash_copy(zvalue->value.ht, original_ht, (void (*)(void *)) zval_add_ref, (void *) &tmp, sizeof(zval *)); + zend_hash_copy(zvalue->value.ht, original_ht, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *)); } break; case IS_OBJECT: { @@ -147,7 +147,7 @@ ZEND_API int _zval_copy_ctor(zval *zvalue ZEND_FILE_LINE_DC) zvalue->value.obj.properties = (HashTable *) emalloc_rel(sizeof(HashTable)); zend_hash_init(zvalue->value.obj.properties, 0, NULL, ZVAL_PTR_DTOR, 0); - zend_hash_copy(zvalue->value.obj.properties, original_ht, (void (*)(void *)) zval_add_ref, (void *) &tmp, sizeof(zval *)); + zend_hash_copy(zvalue->value.obj.properties, original_ht, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *)); } break; } |