summaryrefslogtreecommitdiff
path: root/main/php_ini.h
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>2000-02-26 15:36:23 +0000
committerZeev Suraski <zeev@php.net>2000-02-26 15:36:23 +0000
commit1261271839aa515a30685ccf1fba5d0b3811b866 (patch)
treec977cb48c69a5ad9693396b863ecba803d5d3872 /main/php_ini.h
parentfd344d36026b0f9d8f91be968284b4755d9eed76 (diff)
downloadphp-git-1261271839aa515a30685ccf1fba5d0b3811b866.tar.gz
Allow the INI callbacks to know at what stage PHP is
Diffstat (limited to 'main/php_ini.h')
-rw-r--r--main/php_ini.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/main/php_ini.h b/main/php_ini.h
index f8266e802e..58fbd539ff 100644
--- a/main/php_ini.h
+++ b/main/php_ini.h
@@ -27,7 +27,7 @@
typedef struct _php_ini_entry php_ini_entry;
-#define PHP_INI_MH(name) int name(php_ini_entry *entry, char *new_value, uint new_value_length, void *mh_arg1, void *mh_arg2, void *mh_arg3)
+#define PHP_INI_MH(name) int name(php_ini_entry *entry, char *new_value, uint new_value_length, void *mh_arg1, void *mh_arg2, void *mh_arg3, int stage)
#define PHP_INI_DISP(name) void name(php_ini_entry *ini_entry, int type)
struct _php_ini_entry {
@@ -57,9 +57,9 @@ int php_ini_rshutdown(void);
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(void);
-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 php_ini_refresh_caches(int stage);
+PHPAPI int php_alter_ini_entry(char *name, uint name_length, char *new_value, uint new_value_length, int modify_type, int stage);
+PHPAPI int php_restore_ini_entry(char *name, uint name_length, int stage);
PHPAPI void display_ini_entries(zend_module_entry *module);
PHPAPI long php_ini_long(char *name, uint name_length, int orig);
@@ -147,4 +147,10 @@ PHPAPI PHP_INI_MH(OnUpdateStringUnempty);
#define PHP_INI_DISPLAY_ORIG 1
#define PHP_INI_DISPLAY_ACTIVE 2
+#define PHP_INI_STAGE_STARTUP (1<<0)
+#define PHP_INI_STAGE_SHUTDOWN (1<<1)
+#define PHP_INI_STAGE_ACTIVATE (1<<2)
+#define PHP_INI_STAGE_DEACTIVATE (1<<3)
+#define PHP_INI_STAGE_RUNTIME (1<<4)
+
#endif /* _PHP_INI_H */