summaryrefslogtreecommitdiff
path: root/main/php_ini.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-08-13 21:03:27 +0000
committerZeev Suraski <zeev@php.net>1999-08-13 21:03:27 +0000
commit58e24ac18a06944791cebf606042e92128abc7b7 (patch)
treeb37103a4c8ec02a83bb0230211d68188ceadfcdb /main/php_ini.h
parent5ae3f32b24b45512c96e89ff3162725ddef09cc8 (diff)
downloadphp-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.h')
-rw-r--r--main/php_ini.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/php_ini.h b/main/php_ini.h
index 4ccd84c46e..4dfd0b40bd 100644
--- a/main/php_ini.h
+++ b/main/php_ini.h
@@ -57,6 +57,7 @@ int php_ini_rshutdown();
PHPAPI int php_register_ini_entries(php_ini_entry *ini_entry, int module_number);
PHPAPI void php_unregister_ini_entries(int module_number);
+PHPAPI void php_ini_refresh_caches();
PHPAPI int php_alter_ini_entry(char *name, uint name_length, char *new_value, uint new_value_length, int modify_type);
PHPAPI int php_restore_ini_entry(char *name, uint name_length);
PHPAPI void display_ini_entries(zend_module_entry *module);
@@ -100,11 +101,15 @@ PHPAPI PHP_INI_DISP(php_ini_color_displayer_cb);
#ifdef ZTS
#define STD_PHP_INI_ENTRY(name, default_value, modifyable, on_modify, property_name, struct_type, struct_ptr) \
PHP_INI_ENTRY2(name, default_value, modifyable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr##_id)
+#define STD_PHP_INI_ENTRY_EX(name, default_value, modifyable, on_modify, property_name, struct_type, struct_ptr, displayer) \
+ PHP_INI_ENTRY2_EX(name, default_value, modifyable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr##_id, displayer)
#define STD_PHP_INI_BOOLEAN(name, default_value, modifyable, on_modify, property_name, struct_type, struct_ptr) \
PHP_INI_ENTRY3_EX(name, default_value, modifyable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr##_id, NULL, php_ini_boolean_displayer_cb)
#else
#define STD_PHP_INI_ENTRY(name, default_value, modifyable, on_modify, property_name, struct_type, struct_ptr) \
PHP_INI_ENTRY2(name, default_value, modifyable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr)
+#define STD_PHP_INI_ENTRY_EX(name, default_value, modifyable, on_modify, property_name, struct_type, struct_ptr, display) \
+ PHP_INI_ENTRY2_EX(name, default_value, modifyable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr, displayer)
#define STD_PHP_INI_BOOLEAN(name, default_value, modifyable, on_modify, property_name, struct_type, struct_ptr) \
PHP_INI_ENTRY3_EX(name, default_value, modifyable, on_modify, (void *) XtOffsetOf(struct_type, property_name), (void *) &struct_ptr, NULL, php_ini_boolean_displayer_cb)
#endif