summaryrefslogtreecommitdiff
path: root/main/php_ini.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/php_ini.c')
-rw-r--r--main/php_ini.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main/php_ini.c b/main/php_ini.c
index 4a329a9717..e57db71a69 100644
--- a/main/php_ini.c
+++ b/main/php_ini.c
@@ -58,6 +58,8 @@ static int php_restore_ini_entry_cb(php_ini_entry *ini_entry)
ini_entry->value = ini_entry->orig_value;
ini_entry->value_length = ini_entry->orig_value_length;
ini_entry->modified = 0;
+ ini_entry->orig_value = NULL;
+ ini_entry->orig_value_length = 0;
}
return 0;
}
@@ -109,6 +111,10 @@ int php_register_ini_entries(php_ini_entry *ini_entry, int module_number)
hashed_ini_entry->value = default_value->value.str.val;
hashed_ini_entry->value_length = default_value->value.str.len;
}
+ } else {
+ if (hashed_ini_entry->on_modify) {
+ hashed_ini_entry->on_modify(hashed_ini_entry, hashed_ini_entry->value, hashed_ini_entry->value_length, hashed_ini_entry->mh_arg);
+ }
}
hashed_ini_entry->modified = 0;
p++;