]> granicus.if.org Git - php/commitdiff
Add missing destructors
authorZeev Suraski <zeev@php.net>
Mon, 10 Feb 2003 11:03:22 +0000 (11:03 +0000)
committerZeev Suraski <zeev@php.net>
Mon, 10 Feb 2003 11:03:22 +0000 (11:03 +0000)
Zend/zend_API.c
Zend/zend_compile.c

index 81b01a199f17eabaa37f3d67dda05ad1de4bf2d8..43df5d6c9aeceef3021981bb4ae4ec9c7855adad 100644 (file)
@@ -1366,7 +1366,7 @@ ZEND_API zend_class_entry *zend_register_internal_class(zend_class_entry *orig_c
        class_entry->constants_updated = 0;
        class_entry->ce_flags = 0;
        zend_hash_init(&class_entry->default_properties, 0, NULL, ZVAL_PTR_DTOR, 1);
-       zend_hash_init(&class_entry->properties_info, 0, NULL, NULL, 1);
+       zend_hash_init(&class_entry->properties_info, 0, NULL, (dtor_func_t) zend_destroy_property_info, 1);
        class_entry->static_members = (HashTable *) malloc(sizeof(HashTable));
        zend_hash_init(class_entry->static_members, 0, NULL, ZVAL_PTR_DTOR, 1);
        zend_hash_init(&class_entry->constants_table, 0, NULL, ZVAL_PTR_DTOR, 1);
index 35dcd3094e9edd6ce020970c2c1d15b5384d76a1..df345cbcb1645185534a17b2726384b57d23653d 100644 (file)
@@ -1660,7 +1660,7 @@ static void create_class(HashTable *class_table, char *name, int name_length, ze
        zend_hash_init(&new_class_entry->function_table, 10, NULL, ZEND_FUNCTION_DTOR, 0);
        zend_hash_init(&new_class_entry->class_table, 10, NULL, ZEND_CLASS_DTOR, 0);
        zend_hash_init(&new_class_entry->default_properties, 10, NULL, ZVAL_PTR_DTOR, 0);
-       zend_hash_init(&new_class_entry->properties_info, 10, NULL, NULL, 0);
+       zend_hash_init(&new_class_entry->properties_info, 10, NULL, (dtor_func_t) zend_destroy_property_info, 0);
        ALLOC_HASHTABLE(new_class_entry->static_members);
        zend_hash_init(new_class_entry->static_members, 10, NULL, ZVAL_PTR_DTOR, 0);
        zend_hash_init(&new_class_entry->constants_table, 10, NULL, ZVAL_PTR_DTOR, 0);
@@ -2140,7 +2140,7 @@ void zend_do_begin_class_declaration(znode *class_token, znode *class_name, znod
        zend_hash_init(&new_class_entry->function_table, 10, NULL, ZEND_FUNCTION_DTOR, 0);
        zend_hash_init(&new_class_entry->class_table, 10, NULL, ZEND_CLASS_DTOR, 0);
        zend_hash_init(&new_class_entry->default_properties, 10, NULL, ZVAL_PTR_DTOR, 0);
-       zend_hash_init(&new_class_entry->properties_info, 10, NULL, NULL, 0);
+       zend_hash_init(&new_class_entry->properties_info, 10, NULL, (dtor_func_t) zend_destroy_property_info, 0);
        ALLOC_HASHTABLE(new_class_entry->static_members);
        zend_hash_init(new_class_entry->static_members, 10, NULL, ZVAL_PTR_DTOR, 0);
        zend_hash_init(&new_class_entry->constants_table, 10, NULL, ZVAL_PTR_DTOR, 0);