diff options
| author | Zeev Suraski <zeev@php.net> | 1999-08-13 21:03:27 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 1999-08-13 21:03:27 +0000 |
| commit | 58e24ac18a06944791cebf606042e92128abc7b7 (patch) | |
| tree | b37103a4c8ec02a83bb0230211d68188ceadfcdb /main/php_ini.c | |
| parent | 5ae3f32b24b45512c96e89ff3162725ddef09cc8 (diff) | |
| download | php-git-58e24ac18a06944791cebf606042e92128abc7b7.tar.gz | |
- Add PHP Modules workspace
- Get the MySQL module to compile&work under thread-safe Win32
- Fix various thread safety issues with dynamic modules
Diffstat (limited to 'main/php_ini.c')
| -rw-r--r-- | main/php_ini.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/main/php_ini.c b/main/php_ini.c index 4c25faf5b8..bd73ef6b58 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -125,6 +125,21 @@ PHPAPI void php_unregister_ini_entries(int module_number) } +static int php_ini_refresh_cache(php_ini_entry *p) +{ + if (p->on_modify) { + p->on_modify(p, p->value, p->value_length, p->mh_arg1, p->mh_arg2, p->mh_arg3); + } + return 0; +} + + +PHPAPI void php_ini_refresh_caches() +{ + zend_hash_apply(&known_directives, (int (*)(void *)) php_ini_refresh_cache); +} + + PHPAPI int php_alter_ini_entry(char *name, uint name_length, char *new_value, uint new_value_length, int modify_type) { php_ini_entry *ini_entry; |
