diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-11-08 11:04:27 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-11-08 11:04:27 +0000 |
commit | a84a2eae6a2d8f47728bad933381fc82cd354f3d (patch) | |
tree | 78e4ee4ddf7c77417695949d11b003470f590189 /Zend/zend_ini.c | |
parent | 84b9dcb73f11ea4fd29a9cecc31accf3757b61a6 (diff) | |
download | php-git-a84a2eae6a2d8f47728bad933381fc82cd354f3d.tar.gz |
Fixed bug #39344 (Unnecessary calls to OnModify callback routine for an extension INI directive). (wharmby at uk dot ibm dot com, Dmitry)
Diffstat (limited to 'Zend/zend_ini.c')
-rw-r--r-- | Zend/zend_ini.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c index 1cade26d6a..c4951acee9 100644 --- a/Zend/zend_ini.c +++ b/Zend/zend_ini.c @@ -126,7 +126,6 @@ ZEND_API int zend_copy_ini_directives(TSRMLS_D) return FAILURE; } zend_hash_copy(EG(ini_directives), registered_zend_ini_directives, NULL, &ini_entry, sizeof(zend_ini_entry)); - zend_ini_refresh_caches(ZEND_INI_STAGE_STARTUP TSRMLS_CC); return SUCCESS; } #endif @@ -214,6 +213,7 @@ ZEND_API void zend_unregister_ini_entries(int module_number TSRMLS_DC) } +#ifdef ZTS static int zend_ini_refresh_cache(zend_ini_entry *p, int stage TSRMLS_DC) { if (p->on_modify) { @@ -227,6 +227,7 @@ ZEND_API void zend_ini_refresh_caches(int stage TSRMLS_DC) { zend_hash_apply_with_argument(EG(ini_directives), (apply_func_arg_t) zend_ini_refresh_cache, (void *)(long) stage TSRMLS_CC); } +#endif ZEND_API int zend_alter_ini_entry(char *name, uint name_length, char *new_value, uint new_value_length, int modify_type, int stage) |