summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-09-03 18:33:30 +0000
committerSascha Schumann <sas@php.net>1999-09-03 18:33:30 +0000
commit3e591dabbd19cd0e2ab1106b377a228bf3ae4287 (patch)
treef902828f8780fdfe9d61a582f58af722e868f434
parent8e8d923feadba8c35baa0587ec6c9f8ed00af68a (diff)
downloadphp-git-3e591dabbd19cd0e2ab1106b377a228bf3ae4287.tar.gz
Add global startup/shutdown functions in Win32 version as well
-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: