mirror of
https://github.com/php/php-src.git
synced 2025-01-23 12:13:37 +08:00
give sapi modules the possibility to overwrite default ini settings
This commit is contained in:
parent
267db80b21
commit
63739c7db8
@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user