diff options
author | Zeev Suraski <zeev@php.net> | 2000-10-31 16:06:30 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-10-31 16:06:30 +0000 |
commit | dfe57b01a226613de3ee2b02ac3b7c46e98d040a (patch) | |
tree | bd7bb01919c48c2ec3355da50d3179ef72d1c8b5 /Zend/zend_ini.c | |
parent | 9e2a591ac68da153408723ce914474a4c1c3f033 (diff) | |
download | php-git-dfe57b01a226613de3ee2b02ac3b7c46e98d040a.tar.gz |
Remove unnecessary code, fix phpinfo()
Diffstat (limited to 'Zend/zend_ini.c')
-rw-r--r-- | Zend/zend_ini.c | 37 |
1 files changed, 3 insertions, 34 deletions
diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c index 4c48209c74..c72d0795f0 100644 --- a/Zend/zend_ini.c +++ b/Zend/zend_ini.c @@ -375,42 +375,10 @@ ZEND_INI_DISP(display_link_numbers) } -#if 0 -static int zend_ini_displayer(zend_ini_entry *ini_entry, int module_number) +ZEND_API zend_ini_apply_with_argument(apply_func_arg_t apply_func, void *arg) { - if (ini_entry->module_number != module_number) { - return 0; - } - - ZEND_PUTS("<TR VALIGN=\"baseline\" BGCOLOR=\"" ZEND_CONTENTS_COLOR "\">"); - ZEND_PUTS("<TD BGCOLOR=\"" ZEND_ENTRY_NAME_COLOR "\"><B>"); - ZEND_WRITE(ini_entry->name, ini_entry->name_length-1); - ZEND_PUTS("</B><BR></TD><TD ALIGN=\"center\">"); - zend_ini_displayer_cb(ini_entry, ZEND_INI_DISPLAY_ACTIVE); - ZEND_PUTS("</TD><TD ALIGN=\"center\">"); - zend_ini_displayer_cb(ini_entry, ZEND_INI_DISPLAY_ORIG); - ZEND_PUTS("</TD></TR>\n"); - return 0; -} - - -ZEND_API void display_ini_entries(zend_module_entry *module) -{ - int module_number; - - if (module) { - module_number = module->module_number; - } else { - module_number = 0; - } -#if 0 /* FIXME */ - php_info_print_table_start(); - php_info_print_table_header(3, "Directive", "Local Value", "Master Value"); - zend_hash_apply_with_argument(&known_directives, (int (*)(void *, void *)) zend_ini_displayer, (void *) (long) module_number); - php_info_print_table_end(); -#endif + zend_hash_apply_with_argument(&known_directives, apply_func, arg); } -#endif /* Standard message handlers */ @@ -508,6 +476,7 @@ ZEND_API ZEND_INI_MH(OnUpdateStringUnempty) return SUCCESS; } + /* * Local variables: * tab-width: 4 |