cvs: /php4/sapi/apache mod_php4.c

From: Date: Mon, 17 Jan 2000 17:33:37 +0000
Subject: cvs: /php4/sapi/apache mod_php4.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-9193@lists.php.net to get a copy of this message
zeev Mon Jan 17 09:33:37 2000 EDT Modified files: /php4/sapi/apache mod_php4.c Log: Destructors no longer return ints, the low level problem it was intended to solve is long gone now... Index: php4/sapi/apache/mod_php4.c diff -u php4/sapi/apache/mod_php4.c:1.12 php4/sapi/apache/mod_php4.c:1.13 --- php4/sapi/apache/mod_php4.c:1.12 Thu Jan 13 09:37:21 2000 +++ php4/sapi/apache/mod_php4.c Mon Jan 17 09:33:37 2000 @@ -17,7 +17,7 @@ | PHP 4.0 patches by Zeev Suraski <zeev@zend.com> | +----------------------------------------------------------------------+ */ -/* $Id: mod_php4.c,v 1.12 2000/01/13 17:37:21 zeev Exp $ */ +/* $Id: mod_php4.c,v 1.13 2000/01/17 17:33:37 zeev Exp $ */ #include "zend.h" #include "php.h" @@ -389,11 +389,10 @@ } -static int destroy_per_dir_entry(php_per_dir_entry *per_dir_entry) +static void 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) @@ -421,7 +420,7 @@ HashTable *per_dir_info; per_dir_info = (HashTable *) malloc(sizeof(HashTable)); - zend_hash_init(per_dir_info, 5, NULL, (int (*)(void *)) destroy_per_dir_entry, 1); + zend_hash_init(per_dir_info, 5, NULL, (void (*)(void *)) destroy_per_dir_entry, 1); register_cleanup(p, (void *) per_dir_info, (void (*)(void *)) php_destroy_per_dir_info, (void (*)(void *)) zend_hash_destroy); return per_dir_info;

« previous php.version4 (#9193) next »