summaryrefslogtreecommitdiff
path: root/sapi/apache/mod_php4.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-02-04 20:54:17 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-02-04 20:54:17 +0000
commit13f8b211c417574d3e4f1f54d8a5a37b15e2a66b (patch)
tree401cdc9b9e41b241ad3373b6de678600029fa0ec /sapi/apache/mod_php4.c
parentafc673b61d845567b4ca112fc07999ad57c6f095 (diff)
downloadphp-git-13f8b211c417574d3e4f1f54d8a5a37b15e2a66b.tar.gz
Fixed compilation of Apache & Apache Hooks SAPIs.
Diffstat (limited to 'sapi/apache/mod_php4.c')
-rw-r--r--sapi/apache/mod_php4.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c
index 1514db72d6..a2447800d2 100644
--- a/sapi/apache/mod_php4.c
+++ b/sapi/apache/mod_php4.c
@@ -674,7 +674,6 @@ static void copy_per_dir_entry(php_per_dir_entry *per_dir_entry)
*/
static zend_bool should_overwrite_per_dir_entry(HashTable *target_ht, php_per_dir_entry *orig_per_dir_entry, zend_hash_key *hash_key, void *pData)
{
- php_per_dir_entry *orig_per_dir_entry;
php_per_dir_entry *new_per_dir_entry;
if (zend_hash_find(target_ht, hash_key->arKey, hash_key->nKeyLength, (void **) &new_per_dir_entry)==FAILURE) {
@@ -718,7 +717,7 @@ static void *php_create_dir(pool *p, char *dummy)
static void *php_merge_dir(pool *p, void *basev, void *addv)
{
/* This function *must* return addv, and not modify basev */
- zend_hash_merge_ex((HashTable *) addv, (HashTable *) basev, (copy_ctor_func_t) copy_per_dir_entry, sizeof(php_per_dir_entry), (merge_checker_func_t) should_overwrite_per_dir_entry, NULL);
+ zend_hash_merge_ex((HashTable *) addv, (HashTable *) basev, (copy_ctor_func_t) copy_per_dir_entry, sizeof(php_per_dir_entry), (zend_bool (*)(void *, void *)) should_overwrite_per_dir_entry);
return addv;
}
/* }}} */