summaryrefslogtreecommitdiff
path: root/main/php_ini.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-04-21 17:28:54 +0000
committerZeev Suraski <zeev@php.net>1999-04-21 17:28:54 +0000
commit7aad23132703ae2ab35b9faf1bc955af8376e03e (patch)
tree812302a2cff847519b05a468d3f811ce6c68e449 /main/php_ini.c
parenta9f9ae792030e99b6552ff9090cc8e808d148fc1 (diff)
downloadphp-git-7aad23132703ae2ab35b9faf1bc955af8376e03e.tar.gz
Thread safety patch. It works now with just-in-time resource initialization!
Diffstat (limited to 'main/php_ini.c')
-rw-r--r--main/php_ini.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/php_ini.c b/main/php_ini.c
index 406f5ac79b..a58c0ba9d9 100644
--- a/main/php_ini.c
+++ b/main/php_ini.c
@@ -105,6 +105,9 @@ int php_register_ini_entries(php_ini_entry *ini_entry, int module_number)
php_unregister_ini_entries(module_number);
return FAILURE;
}
+ 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);
+ }
if ((default_value=cfg_get_entry(p->name, p->name_length))) {
if (!hashed_ini_entry->on_modify
|| hashed_ini_entry->on_modify(hashed_ini_entry, default_value->value.str.val, default_value->value.str.len, hashed_ini_entry->mh_arg)==SUCCESS) {