diff options
author | Thies C. Arntzen <thies@php.net> | 1999-07-12 13:56:29 +0000 |
---|---|---|
committer | Thies C. Arntzen <thies@php.net> | 1999-07-12 13:56:29 +0000 |
commit | f40a16bac9782ee720814bd7ef59bc97a148074c (patch) | |
tree | 6c53d61deba4e23d7a08aaf3a1e2c00af3f91851 /mod_php4.c | |
parent | 9b85ba490ea4df9e3d8bdabc44369c2851c77b79 (diff) | |
download | php-git-f40a16bac9782ee720814bd7ef59bc97a148074c.tar.gz |
destructors should return 1, shouldn't they?
Diffstat (limited to 'mod_php4.c')
-rw-r--r-- | mod_php4.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod_php4.c b/mod_php4.c index 4ad7055a98..423a33483d 100644 --- a/mod_php4.c +++ b/mod_php4.c @@ -341,10 +341,11 @@ int send_parsed_php_source(request_rec * r) } -static void destroy_per_dir_entry(php_per_dir_entry *per_dir_entry) +static int destroy_per_dir_entry(php_per_dir_entry *per_dir_entry) { free(per_dir_entry->key); free(per_dir_entry->value); + return 1; } static void copy_per_dir_entry(php_per_dir_entry *per_dir_entry) @@ -368,7 +369,7 @@ static void *php_create_dir(pool *p, char *dummy) HashTable *per_dir_info; per_dir_info = (HashTable *) malloc(sizeof(HashTable)); - zend_hash_init(per_dir_info, 5, NULL, (void (*)(void *)) destroy_per_dir_entry, 1); + zend_hash_init(per_dir_info, 5, NULL, (int (*)(void *)) destroy_per_dir_entry, 1); register_cleanup(p, (void *) per_dir_info, (void (*)(void *)) zend_hash_destroy, (void (*)(void *)) zend_hash_destroy); return per_dir_info; |