cvs commit

From: Date: Mon, 12 Jul 1999 09:56:29 +0000
Subject: cvs commit
Groups: php.version4 
Request: Send a blank email to php-version4+get-1972@lists.php.net to get a copy of this message
From: thies Date: Mon Jul 12 09:56:29 1999 Modified files: php4 mod_php4.c Log message: destructors should return 1, shouldn't they? Index: php4/mod_php4.c diff -u php4/mod_php4.c:1.8 php4/mod_php4.c:1.9 --- php4/mod_php4.c:1.8 Sat Jul 3 14:13:43 1999 +++ php4/mod_php4.c Mon Jul 12 09:56:29 1999 @@ -28,7 +28,7 @@ | PHP 4.0 patches by Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: mod_php4.c,v 1.8 1999/07/03 18:13:43 sas Exp $ */ +/* $Id: mod_php4.c,v 1.9 1999/07/12 13:56:29 thies Exp $ */ #include "httpd.h" #include "http_config.h" @@ -341,10 +341,11 @@ } -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 @@ 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;

« previous php.version4 (#1972) next »