Add global startup/shutdown functions in Win32 version as well
authorSascha Schumann <sas@php.net>
Fri, 3 Sep 1999 18:33:30 +0000 (18:33 +0000)
committerSascha Schumann <sas@php.net>
Fri, 3 Sep 1999 18:33:30 +0000 (18:33 +0000)
main/internal_functions_win32.c

index df72b65feac937a8ec5bbb7c11c80e51dc65ee25..23af73d303071f020f0ffbf28988c8f86319ef95 100644 (file)
@@ -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: