]> granicus.if.org Git - php/commitdiff
Namespace protect dir_cmds and kill some warnings
authorSascha Schumann <sas@php.net>
Thu, 2 Nov 2000 15:19:54 +0000 (15:19 +0000)
committerSascha Schumann <sas@php.net>
Thu, 2 Nov 2000 15:19:54 +0000 (15:19 +0000)
sapi/apache2filter/apache_config.c
sapi/apache2filter/php_apache.h
sapi/apache2filter/sapi_apache2.c

index 6b4db83482b2b23bcc269e91b3e529a720fea86a..c15c2e2931c130ba22c16f6c106b5616f0c99035 100644 (file)
@@ -56,7 +56,7 @@ static const char *real_value_hnd(cmd_parms *cmd, void *dummy, const char *name,
        
        str_len = strlen(name);
        
-       if (zend_hash_find(&d->config, name, str_len + 1, &pe) == SUCCESS) {
+       if (zend_hash_find(&d->config, name, str_len + 1, (void **) &pe) == SUCCESS) {
                if (pe->status > status)
                        return NULL;
        }
@@ -90,8 +90,8 @@ void *merge_php_config(apr_pool_t *p, void *base_conf, void *new_conf)
                        zend_hash_get_current_key_ex(&d->config, &str, &str_len, &num_index, NULL) == HASH_KEY_IS_STRING;
                        zend_hash_move_forward(&d->config)) {
                pe = NULL;
-               zend_hash_get_current_data(&d->config, &data);
-               if (zend_hash_find(&e->config, str, str_len, &pe) == SUCCESS) {
+               zend_hash_get_current_data(&d->config, (void **) &data);
+               if (zend_hash_find(&e->config, str, str_len, (void **) &pe) == SUCCESS) {
                        if (pe->status >= data->status) continue;
                }
                zend_hash_update(&e->config, str, str_len, data, sizeof(*data), NULL);
@@ -110,7 +110,7 @@ void apply_config(void *dummy)
        for (zend_hash_internal_pointer_reset(&d->config);
                        zend_hash_get_current_key_ex(&d->config, &str, &str_len, NULL, NULL) == HASH_KEY_IS_STRING;
                        zend_hash_move_forward(&d->config)) {
-               zend_hash_get_current_data(&d->config, &data);
+               zend_hash_get_current_data(&d->config, (void **) &data);
                fprintf(stderr, "APPLYING (%s)(%s)\n", str, data->value);
                if (zend_alter_ini_entry(str, str_len, data->value, data->value_len + 1, 
                                data->status, PHP_INI_STAGE_RUNTIME) == FAILURE)
@@ -118,7 +118,7 @@ void apply_config(void *dummy)
        }
 }
 
-const command_rec dir_cmds[] =
+const command_rec php_dir_cmds[] =
 {
        AP_INIT_TAKE2("php_value", php_apache_value_handler, NULL, OR_OPTIONS,
                   "PHP Value Modifier"),
index 3b606dde45fb57f0b373a663a847067bc63b3246..6320ffd90bcc5e6489e4a552570c3e422023e790 100644 (file)
@@ -34,6 +34,6 @@ typedef struct php_struct {
 void *merge_php_config(apr_pool_t *p, void *base_conf, void *new_conf);
 void *create_php_config(apr_pool_t *p, char *dummy);
 void apply_config(void *);
-extern const command_rec dir_cmds[];
+extern const command_rec php_dir_cmds[];
 
 #endif /* PHP_APACHE_H */
index 1a784cf52883cbc9294f9fd5c8c9165dc711e5bc..00f2b9228441b4afb220dc0e6b9146f4177b6502 100644 (file)
@@ -427,10 +427,10 @@ static void php_register_hook(void)
 module MODULE_VAR_EXPORT php4_module = {
     STANDARD20_MODULE_STUFF,
     create_php_config,         /* create per-directory config structure */
-    merge_php_config,                  /* merge per-directory config structures */
+    merge_php_config,                  /* merge per-directory config structures */
     NULL,                      /* create per-server config structure */
     NULL,                      /* merge per-server config structures */
-    dir_cmds,                  /* command apr_table_t */
+    php_dir_cmds,                      /* command apr_table_t */
     NULL,                      /* handlers */
     php_register_hook          /* register hooks */
 };