summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/internal_functions_win32.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/internal_functions_win32.c b/main/internal_functions_win32.c
index df72b65fea..23af73d303 100644
--- a/main/internal_functions_win32.c
+++ b/main/internal_functions_win32.c
@@ -99,6 +99,38 @@ int module_startup_modules(void)
return SUCCESS;
}
+int module_global_startup_modules(void)
+{
+ zend_module_entry **ptr = php3_builtin_modules, **end = ptr+(sizeof(php3_builtin_modules)/sizeof(zend_module_entry *));
+
+ while (ptr < end) {
+ if (*ptr) {
+ if ((*ptr)->global_startup_func &&
+ (*ptr)->global_startup_func()==FAILURE) {
+ return FAILURE;
+ }
+ }
+ ptr++;
+ }
+ return SUCCESS;
+}
+
+int module_global_shutdown_modules(void)
+{
+ zend_module_entry **ptr = php3_builtin_modules, **end = ptr+(sizeof(php3_builtin_modules)/sizeof(zend_module_entry *));
+
+ while (ptr < end) {
+ if (*ptr) {
+ if ((*ptr)->global_shutdown_func &&
+ (*ptr)->global_shutdown_func()==FAILURE) {
+ return FAILURE;
+ }
+ }
+ ptr++;
+ }
+ return SUCCESS;
+}
+
/*
* Local variables: