diff options
author | Marcus Boerger <helly@php.net> | 2005-02-22 12:06:59 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2005-02-22 12:06:59 +0000 |
commit | 3096f1edac09b1cd1b9461a1ee8e2c4d5685e7f7 (patch) | |
tree | 50795f76a1396eed795c24d1a1d4dfa333a96dfc /Zend/zend_objects.c | |
parent | 93e13aff053eb8266729a78efeb8240e49514566 (diff) | |
download | php-git-3096f1edac09b1cd1b9461a1ee8e2c4d5685e7f7.tar.gz |
- Fix signatures they are all meant to be able to deal with any type in any
object storage (though we are still missing several parts)
Diffstat (limited to 'Zend/zend_objects.c')
-rw-r--r-- | Zend/zend_objects.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Zend/zend_objects.c b/Zend/zend_objects.c index 30f6297c3d..d5579108c9 100644 --- a/Zend/zend_objects.c +++ b/Zend/zend_objects.c @@ -26,8 +26,9 @@ #include "zend_interfaces.h" -ZEND_API void zend_objects_destroy_object(zend_object *object, zend_object_handle handle TSRMLS_DC) +ZEND_API void zend_objects_destroy_object(void *_object, zend_object_handle handle TSRMLS_DC) { + zend_object *object = (zend_object*)_object; zend_function *destructor = object->ce->destructor; if (destructor) { @@ -86,8 +87,10 @@ ZEND_API void zend_objects_destroy_object(zend_object *object, zend_object_handl } } -ZEND_API void zend_objects_free_object_storage(zend_object *object TSRMLS_DC) +ZEND_API void zend_objects_free_object_storage(void *_object TSRMLS_DC) { + zend_object *object = (zend_object*)_object; + zend_hash_destroy(object->properties); FREE_HASHTABLE(object->properties); efree(object); |