summaryrefslogtreecommitdiff
path: root/main/php_ini.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-09-05 21:18:00 +0000
committerZeev Suraski <zeev@php.net>2000-09-05 21:18:00 +0000
commit12adebbc3a2972a7cbbf9662fd69edb9c854a8f6 (patch)
tree1221d9297b7dde6f8db36fd52e5d6601a9984f93 /main/php_ini.c
parent4647bbb71a29319869c151d29bb5c271cd794082 (diff)
downloadphp-git-12adebbc3a2972a7cbbf9662fd69edb9c854a8f6.tar.gz
- Fix leak
- Remove redundant php_ini code
Diffstat (limited to 'main/php_ini.c')
-rw-r--r--main/php_ini.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/main/php_ini.c b/main/php_ini.c
index dc5ebf1e24..6f4c870d1f 100644
--- a/main/php_ini.c
+++ b/main/php_ini.c
@@ -124,9 +124,6 @@ PHPAPI 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_arg1, hashed_ini_entry->mh_arg2, hashed_ini_entry->mh_arg3, PHP_INI_STAGE_STARTUP);
- }
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_arg1, hashed_ini_entry->mh_arg2, hashed_ini_entry->mh_arg3, PHP_INI_STAGE_STARTUP)==SUCCESS) {
@@ -138,7 +135,6 @@ PHPAPI int php_register_ini_entries(php_ini_entry *ini_entry, int module_number)
hashed_ini_entry->on_modify(hashed_ini_entry, hashed_ini_entry->value, hashed_ini_entry->value_length, hashed_ini_entry->mh_arg1, hashed_ini_entry->mh_arg2, hashed_ini_entry->mh_arg3, PHP_INI_STAGE_STARTUP);
}
}
- hashed_ini_entry->modified = 0;
p++;
}
return SUCCESS;