return FAILURE;
}
if ((default_value=cfg_get_entry(p->name, p->name_length))) {
- hashed_ini_entry->value = default_value->value.str.val;
- hashed_ini_entry->value_length = default_value->value.str.len;
+ if (!hashed_ini_entry->on_modify
+ || hashed_ini_entry->on_modify(hashed_ini_entry, default_value->value.str.val, default_value->value.str.len)==SUCCESS) {
+ hashed_ini_entry->value = default_value->value.str.val;
+ hashed_ini_entry->value_length = default_value->value.str.len;
+ }
}
hashed_ini_entry->modified = 0;
p++;
int modifyable;
char *name;
uint name_length;
- int (*on_modify)(php_ini_entry *entry, pval *new_value);
+ int (*on_modify)(php_ini_entry *entry, char *new_value, uint new_value_length);
char *value;
uint value_length;