diff options
author | Zeev Suraski <zeev@php.net> | 1999-07-09 17:24:47 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-07-09 17:24:47 +0000 |
commit | 81d901b14dd87285977ba7947a0268adb6519089 (patch) | |
tree | a94bc7f17920fd62d2de5fccd984bfba388d5475 /Zend/zend_API.c | |
parent | db1e0bc8201a1f6667094205dc14b3af248ddbd1 (diff) | |
download | php-git-81d901b14dd87285977ba7947a0268adb6519089.tar.gz |
Step 1 in nuking the garbage collector:
- Change the hash destructor to return int
- Don't kill the bucket on hash_destroy if the destructor returns 0
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r-- | Zend/zend_API.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 6e30d592c7..fdda38c109 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -767,7 +767,7 @@ ZEND_API zend_class_entry *register_internal_class(zend_class_entry *class_entry class_entry->refcount = (int *) malloc(sizeof(int)); *class_entry->refcount = 1; zend_hash_init(&class_entry->default_properties, 0, NULL, PVAL_PTR_DTOR, 1); - zend_hash_init(&class_entry->function_table, 0, NULL, (void (*)(void *)) destroy_zend_function, 1); + zend_hash_init(&class_entry->function_table, 0, NULL, ZEND_FUNCTION_DTOR, 1); zend_hash_update(CG(class_table), lowercase_name, class_entry->name_length+1, class_entry, sizeof(zend_class_entry), (void **) ®ister_class); free(lowercase_name); |