give sapi modules the possibility to overwrite default ini settings

This commit is contained in:
Marcus Boerger 2003-03-18 15:53:33 +00:00
parent 267db80b21
commit 63739c7db8
2 changed files with 6 additions and 0 deletions

View File

@ -241,6 +241,8 @@ struct _sapi_module_struct {
int (*get_target_gid)(gid_t * TSRMLS_DC);
unsigned int (*input_filter)(int arg, char *var, char **val, unsigned int val_len TSRMLS_DC);
void (*ini_defaults)(HashTable *configuration_hash);
};

View File

@ -276,6 +276,10 @@ int php_init_config()
return FAILURE;
}
if (sapi_module.ini_defaults) {
sapi_module.ini_defaults(&configuration_hash);
}
zend_llist_init(&extension_lists.engine, sizeof(char *), (llist_dtor_func_t) free_estring, 1);
zend_llist_init(&extension_lists.functions, sizeof(zval), (llist_dtor_func_t) ZVAL_DESTRUCTOR, 1);
zend_llist_init(&scanned_ini_list, sizeof(char *), (llist_dtor_func_t) free_estring, 1);