From 3edb99e8acc3f2c720f7f8d490b9535b6e6b67a5 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Thu, 8 Apr 1999 23:14:56 +0000 Subject: [PATCH] Type library support in COM module --- main/php_ini.c | 7 +++++-- main/php_ini.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/main/php_ini.c b/main/php_ini.c index 32d18e2fe2..163021bd86 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -73,8 +73,11 @@ int php_register_ini_entries(php_ini_entry *ini_entry, int module_number) 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++; diff --git a/main/php_ini.h b/main/php_ini.h index 38c6c7a771..d4cf1eada2 100644 --- a/main/php_ini.h +++ b/main/php_ini.h @@ -15,7 +15,7 @@ struct _php_ini_entry { 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; -- 2.40.0